| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00bb":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)t[e+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i,r),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);n.call(this,t,e,i,r),this._prevBlock=o}}),e}(),t.mode.CFB}))},"00dc":function(t,e,n){(function(t){var r=n("58a2"),i=n("c24d"),o=n("561d");function a(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new o(n,r)}var s={binary:!0,hex:!0,base64:!0};function u(e,n,i,a){return t.isBuffer(n)||void 0===s[n]?u(e,"binary",n,i):(n=n||"binary",a=a||"binary",i=i||new t([2]),t.isBuffer(i)||(i=new t(i,a)),"number"===typeof e?new o(r(e,i),i,!0):(t.isBuffer(e)||(e=new t(e,n)),new o(e,i,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=a,e.createDiffieHellman=e.DiffieHellman=u}).call(this,n("b639").Buffer)},"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0106":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(14).Buffer}catch(M){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],h=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(t);p=p.idivn(h),n=p.isZero()?m+n:c[d-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new v;return r.mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):g(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,y),i(x,y),i(C,y),C.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}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 _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},"0145":function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},"0184":function(t,e,n){"use strict";var r=n("da3e");function i(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=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<n;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,n=0,r=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,n=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;while(e<t.length)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},"0211":function(t,e,n){"use strict";const r=e;r._reverse=function(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const r=t[n];e[r]=n})),e},r.der=n("8b71")},"030f":function(t,e,n){(function(t){(function(){"use strict";var e=function(){},n=function(t){return function(){return t()}},r=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},i=function(t,e){return function(n){return t(e(n))}},o=function(t){return function(){return t}},a=function(t){return t};function s(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.concat(n);return t.apply(null,i)}}var u=function(t){return function(e){return!t(e)}},c=function(t){return function(){throw new Error(t)}},l=o(!1),f=o(!0),d=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=function(){return h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},h.apply(this,arguments)};function p(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var g,v=function(){return b},b=function(){var t=function(t){return t.isNone()},n=function(t){return t()},r=function(t){return t},i={fold:function(t,e){return t()},is:l,isSome:l,isNone:f,getOr:r,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:r,orThunk:n,map:v,each:e,bind:v,exists:l,forall:f,filter:v,equals:t,equals_:t,toArray:function(){return[]},toString:o("none()")};return i}(),y=function(t){var e=o(t),n=function(){return i},r=function(e){return e(t)},i={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:f,isNone:l,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return y(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?i:b},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(l,(function(e){return n(t,e)}))}};return i},w=function(t){return null===t||void 0===t?b:y(t)},_={some:y,none:v,from:w},x=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},C=function(t){return function(e){return x(e)===t}},S=function(t){return function(e){return typeof e===t}},k=function(t){return function(e){return t===e}},M=C("string"),E=C("object"),O=C("array"),T=S("boolean"),A=k(void 0),D=function(t){return null===t||void 0===t},N=function(t){return!D(t)},R=S("function"),P=S("number"),I=function(t,e){if(O(t)){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}return!1},B=Array.prototype.slice,L=Array.prototype.indexOf,z=Array.prototype.push,j=function(t,e){return L.call(t,e)},F=function(t,e){var n=j(t,e);return-1===n?_.none():_.some(n)},$=function(t,e){return j(t,e)>-1},H=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(e(i,n))return!0}return!1},V=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},U=function(t,e){for(var n=[],r=0;r<t.length;r+=e){var i=B.call(t,r,r+e);n.push(i)}return n},q=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},W=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];e(i,n)}},K=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];e(r,n)}},G=function(t,e){for(var n=[],r=[],i=0,o=t.length;i<o;i++){var a=t[i],s=e(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},Y=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];e(o,r)&&n.push(o)}return n},X=function(t,e,n){return K(t,(function(t){n=e(n,t)})),n},Z=function(t,e,n){return W(t,(function(t){n=e(n,t)})),n},J=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(e(o,r))return _.some(o);if(n(o,r))break}return _.none()},Q=function(t,e){return J(t,e,l)},tt=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(e(i,n))return _.some(n)}return _.none()},et=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!O(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);z.apply(e,t[n])}return e},nt=function(t,e){return et(q(t,e))},rt=function(t,e){for(var n=0,r=t.length;n<r;++n){var i=t[n];if(!0!==e(i,n))return!1}return!0},it=function(t){var e=B.call(t,0);return e.reverse(),e},ot=function(t,e){return Y(t,(function(t){return!$(e,t)}))},at=function(t,e){for(var n={},r=0,i=t.length;r<i;r++){var o=t[r];n[String(o)]=e(o,r)}return n},st=function(t,e){var n=B.call(t,0);return n.sort(e),n},ut=function(t,e){return e>=0&&e<t.length?_.some(t[e]):_.none()},ct=function(t){return ut(t,0)},lt=function(t){return ut(t,t.length-1)},ft=R(Array.from)?Array.from:function(t){return B.call(t)},dt=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return _.none()},ht=function(t){var e=function(e){return t===e},n=function(e){return ht(t)},r=function(e){return ht(t)},i=function(e){return ht(e(t))},a=function(e){return ht(t)},s=function(e){e(t)},u=function(e){return e(t)},c=function(e,n){return n(t)},d=function(e){return e(t)},h=function(e){return e(t)},p=function(){return _.some(t)};return{is:e,isValue:f,isError:l,getOr:o(t),getOrThunk:o(t),getOrDie:o(t),or:n,orThunk:r,fold:c,map:i,mapError:a,each:s,bind:u,exists:d,forall:h,toOptional:p}},pt=function(t){var n=function(t){return t()},r=function(){return c(String(t))()},i=function(t){return t},o=function(t){return t()},s=function(e){return pt(t)},u=function(e){return pt(e(t))},d=function(e){return pt(t)},h=function(e,n){return e(t)};return{is:l,isValue:l,isError:f,getOr:a,getOrThunk:n,getOrDie:r,or:i,orThunk:o,fold:h,map:s,mapError:u,each:e,bind:d,exists:l,forall:f,toOptional:_.none}},mt=function(t,e){return t.fold((function(){return pt(e)}),ht)},gt={value:ht,error:pt,fromOption:mt};(function(t){t[t["Error"]=0]="Error",t[t["Value"]=1]="Value"})(g||(g={}));var vt=function(t,e,n){return t.stype===g.Error?e(t.serror):n(t.svalue)},bt=function(t){var e=[],n=[];return W(t,(function(t){vt(t,(function(t){return n.push(t)}),(function(t){return e.push(t)}))})),{values:e,errors:n}},yt=function(t,e){return t.stype===g.Error?{stype:g.Error,serror:e(t.serror)}:t},wt=function(t,e){return t.stype===g.Value?{stype:g.Value,svalue:e(t.svalue)}:t},_t=function(t,e){return t.stype===g.Value?e(t.svalue):t},xt=function(t,e){return t.stype===g.Error?e(t.serror):t},Ct=function(t){return{stype:g.Value,svalue:t}},St=function(t){return{stype:g.Error,serror:t}},kt=function(t){return vt(t,gt.error,gt.value)},Mt=function(t){return t.fold(St,Ct)},Et={fromResult:Mt,toResult:kt,svalue:Ct,partition:bt,serror:St,bind:_t,bindError:xt,map:wt,mapError:yt,fold:vt},Ot=Object.keys,Tt=Object.hasOwnProperty,At=function(t,e){for(var n=Ot(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];e(a,o)}},Dt=function(t,e){return Nt(t,(function(t,n){return{k:n,v:e(t,n)}}))},Nt=function(t,e){var n={};return At(t,(function(t,r){var i=e(t,r);n[i.k]=i.v})),n},Rt=function(t){return function(e,n){t[n]=e}},Pt=function(t,e,n,r){var i={};return At(t,(function(t,i){(e(t,i)?n:r)(t,i)})),i},It=function(t,n){var r={};return Pt(t,n,Rt(r),e),r},Bt=function(t,e){var n=[];return At(t,(function(t,r){n.push(e(t,r))})),n},Lt=function(t,e){for(var n=Ot(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];if(e(a,o,t))return _.some(a)}return _.none()},zt=function(t){return Bt(t,(function(t){return t}))},jt=function(t,e){return Ft(t,e)?_.from(t[e]):_.none()},Ft=function(t,e){return Tt.call(t,e)},$t=function(t,e){return Ft(t,e)&&void 0!==t[e]&&null!==t[e]},Ht=function(t){if(!O(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return W(t,(function(r,i){var o=Ot(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!O(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){var n=arguments.length;if(n!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+n);for(var r=new Array(n),o=0;o<r.length;o++)r[o]=arguments[o];var u=function(t){var n=Ot(t);if(e.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+n.join(","));var i=rt(e,(function(t){return $(n,t)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,r)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[i];return e.apply(null,r)},match:u,log:function(t){console.log(t,{constructors:e,constructor:a,params:r})}}}})),n},Vt={generate:Ht},Ut=Object.prototype.hasOwnProperty,qt=function(t,e){return e},Wt=function(t,e){var n=E(t)&&E(e);return n?Gt(t,e):e},Kt=function(t){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<e.length;i++){var o=e[i];for(var a in o)Ut.call(o,a)&&(r[a]=t(r[a],o[a]))}return r}},Gt=Kt(Wt),Yt=Kt(qt),Xt=function(t){var e,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,e=t.apply(null,r)),e}},Zt=Vt.generate([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Jt=function(t){return Zt.defaultedThunk(o(t))},Qt=function(t){return Zt.mergeWithThunk(o(t))},te=Zt.strict,ee=Zt.asOption,ne=Zt.defaultedThunk,re=(Zt.asDefaultedOptionThunk,Zt.mergeWithThunk),ie=(Vt.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(t){var e=[],n=[];return W(t,(function(t){t.fold((function(t){e.push(t)}),(function(t){n.push(t)}))})),{errors:e,values:n}}),oe=function(t,e){var n={};return At(t,(function(t,r){$(e,r)||(n[r]=t)})),n},ae=function(t,e){var n;return n={},n[t]=e,n},se=function(t){var e={};return W(t,(function(t){e[t.key]=t.value})),e},ue=function(t,e){return oe(t,e)},ce=function(t,e){return ae(t,e)},le=function(t){return se(t)},fe=function(t,e){return 0===t.length?gt.value(e):gt.value(Gt(e,Yt.apply(void 0,t)))},de=function(t){return gt.error(et(t))},he=function(t,e){var n=ie(t);return n.errors.length>0?de(n.errors):fe(n.values,e)},pe=function(t,e){return t.length>0?Et.svalue(Gt(e,Yt.apply(void 0,t))):Et.svalue(e)},me=function(t){return r(Et.serror,et)(t)},ge=function(t,e){var n=Et.partition(t);return n.errors.length>0?me(n.errors):pe(n.values,e)},ve=function(t){var e=Et.partition(t);return e.errors.length>0?me(e.errors):Et.svalue(e.values)},be={consolidateObj:ge,consolidateArr:ve},ye=function(t){return E(t)&&Ot(t).length>100?" removed due to size":JSON.stringify(t,null,2)},we=function(t){var e=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):t;return q(e,(function(t){return"Failed path: ("+t.path.join(" > ")+")\n"+t.getErrorInfo()}))},_e=function(t,e){return Et.serror([{path:t,getErrorInfo:e}])},xe=function(t,e,n){return _e(t,(function(){return'Could not find valid *strict* value for "'+e+'" in '+ye(n)}))},Ce=function(t,e){return _e(t,(function(){return'Choice schema did not contain choice key: "'+e+'"'}))},Se=function(t,e,n){return _e(t,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+ye(e)}))},ke=function(t,e){return _e(t,(function(){return"There are unsupported fields: ["+e.join(", ")+"] specified"}))},Me=function(t,e){return _e(t,(function(){return e}))},Ee=Vt.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),Oe=function(t,e,n){return jt(e,n).fold((function(){return xe(t,n,e)}),Et.svalue)},Te=function(t,e,n){var r=jt(t,e).fold((function(){return n(t)}),a);return Et.svalue(r)},Ae=function(t,e){return Et.svalue(jt(t,e))},De=function(t,e,n){var r=jt(t,e).map((function(e){return!0===e?n(t):e}));return Et.svalue(r)},Ne=function(t,e,n,r){return n.fold((function(n,i,a,s){var u=function(e){var o=s.extract(t.concat([n]),r,e);return Et.map(o,(function(t){return ae(i,r(t))}))},c=function(e){return e.fold((function(){var t=ae(i,r(_.none()));return Et.svalue(t)}),(function(e){var o=s.extract(t.concat([n]),r,e);return Et.map(o,(function(t){return ae(i,r(_.some(t)))}))}))};return function(){return a.fold((function(){return Et.bind(Oe(t,e,n),u)}),(function(t){return Et.bind(Te(e,n,t),u)}),(function(){return Et.bind(Ae(e,n),c)}),(function(t){return Et.bind(De(e,n,t),c)}),(function(t){var r=t(e),i=Et.map(Te(e,n,o({})),(function(t){return Gt(r,t)}));return Et.bind(i,u)}))}()}),(function(t,n){var i=n(e);return Et.svalue(ae(t,r(i)))}))},Re=function(t,e,n,r){var i=q(n,(function(n){return Ne(t,e,n,r)}));return be.consolidateObj(i,{})},Pe=function(t){var e=function(e,n,r){return t().extract(e,n,r)},n=function(){return t().toString()};return{extract:e,toString:n}},Ie=function(t){var e=function(e,n,r){return Et.bindError(t(r,n),(function(t){return Me(e,t)}))},n=function(){return"val"};return{extract:e,toString:n}},Be=function(t){return Ot(It(t,(function(t){return void 0!==t&&null!==t})))},Le=function(t){var e=ze(t),n=X(t,(function(t,e){return e.fold((function(e){return Gt(t,ce(e,!0))}),o(t))}),{}),r=function(t,r,i){var o=T(i)?[]:Be(i),a=Y(o,(function(t){return!$t(n,t)}));return 0===a.length?e.extract(t,r,i):ke(t,a)};return{extract:r,toString:e.toString}},ze=function(t){var e=function(e,n,r){return Re(e,r,t,n)},n=function(){var e=q(t,(function(t){return t.fold((function(t,e,n,r){return t+" -> "+r.toString()}),(function(t,e){return"state("+t+")"}))}));return"obj{\n"+e.join("\n")+"}"};return{extract:e,toString:n}},je=function(t){var e=function(e,n,r){var i=q(r,(function(r,i){return t.extract(e.concat(["["+i+"]"]),n,r)}));return be.consolidateArr(i)},n=function(){return"array("+t.toString()+")"};return{extract:e,toString:n}},Fe=function(t){var e=function(e,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var s=a[o],u=s.extract(e,n,r);if(u.stype===g.Value)return u;i.push(u)}return be.consolidateArr(i)},n=function(){return"oneOf("+q(t,(function(t){return t.toString()})).join(", ")+")"};return{extract:e,toString:n}},$e=function(t,e){var n=function(e,n){return je(Ie(t)).extract(e,a,n)},r=function(t,r,i){var o=Ot(i),a=n(t,o);return Et.bind(a,(function(n){var o=q(n,(function(t){return Ee.field(t,t,te(),e)}));return ze(o).extract(t,r,i)}))},i=function(){return"setOf("+e.toString()+")"};return{extract:r,toString:i}},He=function(t,e){var n=Xt((function(){return e()})),r=function(t,e,r){return n().extract(t,e,r)},i=function(){return n().toString()};return{extract:r,toString:i}},Ve=o(Ie(Et.svalue)),Ue=r(je,ze),qe=Ee.state,We=Ee.field,Ke=function(t,e,n,r,i){var o=jt(r,i);return o.fold((function(){return Se(t,r,i)}),(function(r){return r.extract(t.concat(["branch: "+i]),e,n)}))},Ge=function(t,e){var n=function(n,r,i){var o=jt(i,t);return o.fold((function(){return Ce(n,t)}),(function(t){return Ke(n,r,i,e,t)}))},r=function(){return"chooseOn("+t+"). Possible values: "+Ot(e)};return{extract:n,toString:r}},Ye=Ie(Et.svalue),Xe=function(t){return Ue(t)},Ze=function(){return je(Ye)},Je=Pe,Qe=function(t){return Ie((function(e){return t(e).fold(Et.serror,Et.svalue)}))},tn=function(t,e){return $e((function(e){return Et.fromResult(t(e))}),e)},en=function(t,e,n,r){var i=e.extract([t],n,r);return Et.mapError(i,(function(t){return{input:r,errors:t}}))},nn=function(t,e,n){return Et.toResult(en(t,e,a,n))},rn=function(t){return t.fold((function(t){throw new Error(an(t))}),a)},on=function(t,e,n){return rn(nn(t,e,n))},an=function(t){return"Errors: \n"+we(t.errors).join("\n")+"\n\nInput object: "+ye(t.input)},sn=function(t,e){return Ge(t,e)},un=function(t,e){return Ge(t,Dt(e,ze))},cn=function(t,e){return He(t,e)},ln=o(Ye),fn=function(t,e){return Ie((function(n){var r=typeof n;return t(n)?Et.svalue(n):Et.serror("Expected type: "+e+" but got: "+r)}))},dn=fn(P,"number"),hn=fn(M,"string"),pn=fn(T,"boolean"),mn=fn(R,"function"),gn=function(t){var e=function(t,e){var n=t.next();while(!n.done){if(!e(n.value))return!1;n=t.next()}return!0};if(Object(t)!==t)return!0;switch({}.toString.call(t).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(t).every((function(e){return gn(t[e])}));case"Map":return e(t.keys(),gn)&&e(t.values(),gn);case"Set":return e(t.keys(),gn);default:return!1}},vn=Ie((function(t){return gn(t)?Et.svalue(t):Et.serror("Expected value to be acceptable for sending via postMessage")})),bn=function(t){return Qe((function(e){return $(t,e)?gt.value(e):gt.error('Unsupported value: "'+e+'", choose one of "'+t.join(", ")+'".')}))},yn=function(t){return We(t,t,te(),Ve())},wn=function(t,e){return We(t,t,te(),e)},_n=function(t){return wn(t,dn)},xn=function(t){return wn(t,hn)},Cn=function(t,e){return We(t,t,te(),bn(e))},Sn=function(t){return wn(t,pn)},kn=function(t){return wn(t,mn)},Mn=function(t,e){return We(t,t,ee(),Ie((function(n){return Et.serror("The field: "+t+" is forbidden. "+e)})))},En=function(t,e){return We(t,t,te(),ze(e))},On=function(t,e){return We(t,t,te(),Ue(e))},Tn=function(t,e){return We(t,t,te(),je(e))},An=function(t){return We(t,t,ee(),Ve())},Dn=function(t,e){return We(t,t,ee(),e)},Nn=function(t){return Dn(t,dn)},Rn=function(t){return Dn(t,hn)},Pn=function(t){return Dn(t,mn)},In=function(t,e){return Dn(t,je(e))},Bn=function(t,e){return Dn(t,ze(e))},Ln=function(t,e){return Dn(t,Le(e))},zn=function(t,e){return We(t,t,Jt(e),Ve())},jn=function(t,e,n){return We(t,t,Jt(e),n)},Fn=function(t,e){return jn(t,e,dn)},$n=function(t,e){return jn(t,e,hn)},Hn=function(t,e,n){return jn(t,e,bn(n))},Vn=function(t,e){return jn(t,e,pn)},Un=function(t,e){return jn(t,e,mn)},qn=function(t,e){return jn(t,e,vn)},Wn=function(t,e,n){return jn(t,e,je(n))},Kn=function(t,e,n){return jn(t,e,ze(n))},Gn=function(t,e){return qe(t,e)},Yn=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},Xn=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Qn(r.childNodes[0])},Zn=function(t,e){var n=e||document,r=n.createElement(t);return Qn(r)},Jn=function(t,e){var n=e||document,r=n.createTextNode(t);return Qn(r)},Qn=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},tr=function(t,e,n){return _.from(t.dom.elementFromPoint(e,n)).map(Qn)},er={fromHtml:Xn,fromTag:Zn,fromText:Jn,fromDom:Qn,fromPoint:tr},nr=function(t,e,n,r){var i=t.isiOS()&&!0===/ipad/i.test(n),a=t.isiOS()&&!i,s=t.isiOS()||t.isAndroid(),u=s||r("(pointer:coarse)"),c=i||!a&&s&&r("(min-device-width:768px)"),l=a||s&&!c,f=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!f;return{isiPad:o(i),isiPhone:o(a),isTablet:o(c),isPhone:o(l),isTouch:o(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:o(f),isDesktop:o(d)}},rr=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},ir=function(t,e){var n=rr(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return sr(r(1),r(2))},or=function(t,e){var n=String(e).toLowerCase();return 0===t.length?ar():ir(t,n)},ar=function(){return sr(0,0)},sr=function(t,e){return{major:t,minor:e}},ur={nu:sr,detect:or,unknown:ar},cr=function(t,e){var n=String(e).toLowerCase();return Q(t,(function(t){return t.search(n)}))},lr=function(t,e){return cr(t,e).map((function(t){var n=ur.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},fr=function(t,e){return cr(t,e).map((function(t){var n=ur.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},dr={detectBrowser:lr,detectOs:fr},hr=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},pr=function(t,e){return-1!==t.indexOf(e)},mr=function(t,e){return hr(t,e,t.length-e.length)},gr=function(t){return function(e){return e.replace(t,"")}},vr=gr(/^\s+|\s+$/g),br=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,yr=function(t){return function(e){return pr(e,t)}},wr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return pr(t,"edge/")&&pr(t,"chrome")&&pr(t,"safari")&&pr(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,br],search:function(t){return pr(t,"chrome")&&!pr(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return pr(t,"msie")||pr(t,"trident")}},{name:"Opera",versionRegexes:[br,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:yr("firefox")},{name:"Safari",versionRegexes:[br,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(pr(t,"safari")||pr(t,"mobile/"))&&pr(t,"applewebkit")}}],_r=[{name:"Windows",search:yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return pr(t,"iphone")||pr(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:yr("linux"),versionRegexes:[]},{name:"Solaris",search:yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xr={browsers:o(wr),oses:o(_r)},Cr="Edge",Sr="Chrome",kr="IE",Mr="Opera",Er="Firefox",Or="Safari",Tr=function(){return Ar({current:void 0,version:ur.unknown()})},Ar=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Cr),isChrome:r(Sr),isIE:r(kr),isOpera:r(Mr),isFirefox:r(Er),isSafari:r(Or)}},Dr={unknown:Tr,nu:Ar,edge:o(Cr),chrome:o(Sr),ie:o(kr),opera:o(Mr),firefox:o(Er),safari:o(Or)},Nr="Windows",Rr="iOS",Pr="Android",Ir="Linux",Br="OSX",Lr="Solaris",zr="FreeBSD",jr="ChromeOS",Fr=function(){return $r({current:void 0,version:ur.unknown()})},$r=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(Nr),isiOS:r(Rr),isAndroid:r(Pr),isOSX:r(Br),isLinux:r(Ir),isSolaris:r(Lr),isFreeBSD:r(zr),isChromeOS:r(jr)}},Hr={unknown:Fr,nu:$r,windows:o(Nr),ios:o(Rr),android:o(Pr),linux:o(Ir),osx:o(Br),solaris:o(Lr),freebsd:o(zr),chromeos:o(jr)},Vr=function(t,e){var n=xr.browsers(),r=xr.oses(),i=dr.detectBrowser(n,t).fold(Dr.unknown,Dr.nu),o=dr.detectOs(r,t).fold(Hr.unknown,Hr.nu),a=nr(o,i,t,e);return{browser:i,os:o,deviceType:a}},Ur={detect:Vr},qr=function(t){return window.matchMedia(t).matches},Wr=Xt((function(){return Ur.detect(navigator.userAgent,qr)})),Kr=function(){return Wr()},Gr=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},Yr=function(t,e){return Gr(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Xr=9,Zr=11,Jr=1,Qr=3,ti=function(t,e){var n=t.dom;if(n.nodeType!==Jr)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},ei=function(t){return t.nodeType!==Jr&&t.nodeType!==Xr&&t.nodeType!==Zr||0===t.childElementCount},ni=function(t,e){var n=void 0===e?document:e.dom;return ei(n)?[]:q(n.querySelectorAll(t),er.fromDom)},ri=function(t,e){var n=void 0===e?document:e.dom;return ei(n)?_.none():_.from(n.querySelector(t)).map(er.fromDom)},ii=function(t,e){return t.dom===e.dom},oi=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},ai=function(t,e){return Yr(t.dom,e.dom)},si=function(t,e){return Kr().browser.isIE()?ai(t,e):oi(t,e)},ui=function(t){return R(t)?t:l},ci=function(t,e,n){var r=t.dom,i=ui(n);while(r.parentNode){r=r.parentNode;var o=er.fromDom(r),a=e(o);if(a.isSome())return a;if(i(o))break}return _.none()},li=function(t,e,n){var r=e(t),i=ui(n);return r.orThunk((function(){return i(t)?_.none():ci(t,e,i)}))},fi=function(t,e){return ii(t.element,e.event.target)},di=function(t){if(!$t(t,"can")&&!$t(t,"abort")&&!$t(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return on("Extracting event.handler",Le([zn("can",f),zn("abort",l),zn("run",e)]),t)},hi=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(t,(function(t,r){return t&&e(r).apply(void 0,n)}),!0)}},pi=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(t,(function(t,r){return t||e(r).apply(void 0,n)}),!1)}},mi=function(t){return R(t)?{can:o(!0),abort:o(!1),run:t}:t},gi=function(t){var e=hi(t,(function(t){return t.can})),n=pi(t,(function(t){return t.abort})),r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];W(t,(function(t){t.run.apply(void 0,e)}))};return di({can:e,abort:n,run:r})},vi=o,bi=vi("touchstart"),yi=vi("touchmove"),wi=vi("touchend"),_i=vi("touchcancel"),xi=vi("mousedown"),Ci=vi("mousemove"),Si=vi("mouseout"),ki=vi("mouseup"),Mi=vi("mouseover"),Ei=vi("focusin"),Oi=vi("focusout"),Ti=vi("keydown"),Ai=vi("keyup"),Di=vi("input"),Ni=vi("change"),Ri=vi("click"),Pi=vi("transitionend"),Ii=vi("selectstart"),Bi=function(t){return o("alloy."+t)},Li={tap:Bi("tap")},zi=Bi("focus"),ji=Bi("blur.post"),Fi=Bi("paste.post"),$i=Bi("receive"),Hi=Bi("execute"),Vi=Bi("focus.item"),Ui=Li.tap,qi=Bi("longpress"),Wi=Bi("sandbox.close"),Ki=Bi("typeahead.cancel"),Gi=Bi("system.init"),Yi=Bi("system.touchmove"),Xi=Bi("system.touchend"),Zi=Bi("system.scroll"),Ji=Bi("system.resize"),Qi=Bi("system.attached"),to=Bi("system.detached"),eo=Bi("system.dismissRequested"),no=Bi("system.repositionRequested"),ro=Bi("focusmanager.shifted"),io=Bi("slotcontainer.visibility"),oo=Bi("change.tab"),ao=Bi("dismiss.tab"),so=Bi("highlight"),uo=Bi("dehighlight"),co=function(t,e){po(t,t.element,e,{})},lo=function(t,e,n){po(t,t.element,e,n)},fo=function(t){co(t,Hi())},ho=function(t,e,n){po(t,e,n,{})},po=function(t,e,n,r){var i=h({target:e},r);t.getSystem().triggerEvent(n,e,i)},mo=function(t,e,n,r){t.getSystem().triggerEvent(n,e,r.event)},go=function(t){return le(t)},vo=function(t,e){return{key:t,value:di({abort:e})}},bo=function(t,e){return{key:t,value:di({can:e})}},yo=function(t){return{key:t,value:di({run:function(t,e){e.event.prevent()}})}},wo=function(t,e){return{key:t,value:di({run:e})}},_o=function(t,e,n){return{key:t,value:di({run:function(t,r){e.apply(void 0,[t,r].concat(n))}})}},xo=function(t){return function(e){return wo(t,e)}},Co=function(t){return function(e){return{key:t,value:di({run:function(t,n){fi(t,n)&&e(t,n)}})}}},So=function(t,e){return wo(t,(function(n,r){n.getSystem().getByUid(e).each((function(e){mo(e,e.element,t,r)}))}))},ko=function(t,e,n){var r=e.partUids[n];return So(t,r)},Mo=function(t,e){return wo(t,(function(t,n){var r=n.event,i=t.getSystem().getByDom(r.target).fold((function(){var e=li(r.target,(function(e){return t.getSystem().getByDom(e).toOptional()}),l);return e.getOr(t)}),(function(t){return t}));e(t,i,n)}))},Eo=function(t){return wo(t,(function(t,e){e.cut()}))},Oo=function(t){return wo(t,(function(t,e){e.stop()}))},To=function(t,e){return Co(t)(e)},Ao=Co(Qi()),Do=Co(to()),No=Co(Gi()),Ro=xo(Hi()),Po=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Io=function(t){return t.dom.nodeType},Bo=function(t){return function(e){return Io(e)===t}},Lo=Bo(Jr),zo=Bo(Qr),jo=Bo(Xr),Fo=Bo(Zr),$o=function(t){return er.fromDom(t.dom.ownerDocument)},Ho=function(t){return jo(t)?t:$o(t)},Vo=function(t){return er.fromDom(Ho(t).dom.documentElement)},Uo=function(t){return er.fromDom(Ho(t).dom.defaultView)},qo=function(t){return _.from(t.dom.parentNode).map(er.fromDom)},Wo=function(t){return qo(t)},Ko=function(t){return _.from(t.dom.offsetParent).map(er.fromDom)},Go=function(t){return _.from(t.dom.nextSibling).map(er.fromDom)},Yo=function(t){return q(t.dom.childNodes,er.fromDom)},Xo=function(t,e){var n=t.dom.childNodes;return _.from(n[e]).map(er.fromDom)},Zo=function(t){return Xo(t,0)},Jo=function(t,e){var n=qo(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Qo=function(t,e){var n=Go(t);n.fold((function(){var n=qo(t);n.each((function(t){ea(t,e)}))}),(function(t){Jo(t,e)}))},ta=function(t,e){var n=Zo(t);n.fold((function(){ea(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},ea=function(t,e){t.dom.appendChild(e.dom)},na=function(t,e,n){Xo(t,n).fold((function(){ea(t,e)}),(function(t){Jo(t,e)}))},ra=function(t,e){W(e,(function(e){Jo(t,e)}))},ia=function(t,e){W(e,(function(e){ea(t,e)}))},oa=function(t){t.dom.textContent="",W(Yo(t),(function(t){aa(t)}))},aa=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},sa=function(t){var e=Yo(t);e.length>0&&ra(t,e),aa(t)},ua=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,Yo(er.fromDom(r))},ca=function(t){return t.dom.innerHTML},la=function(t,e){var n=$o(t),r=n.dom,i=er.fromDom(r.createDocumentFragment()),o=ua(e,r);ia(i,o),oa(t),ea(t,i)},fa=function(t){var e=er.fromTag("div"),n=er.fromDom(t.dom.cloneNode(!0));return ea(e,n),ca(e)},da=function(t,e,n){if(!(M(n)||T(n)||P(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ha=function(t,e,n){da(t.dom,e,n)},pa=function(t,e){var n=t.dom;At(e,(function(t,e){da(n,e,t)}))},ma=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},ga=function(t,e){return _.from(ma(t,e))},va=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},ba=function(t,e){t.dom.removeAttribute(e)},ya=function(t,e){return er.fromDom(t.dom.cloneNode(e))},wa=function(t){return ya(t,!1)},_a=function(t){var e=wa(t);return fa(e)},xa=function(t){return _a(t)},Ca=function(t,e,n){return ii(e,t.element)&&!ii(e,n)},Sa=go([bo(zi(),(function(t,e){var n=e.event,r=n.originator,i=n.target;return!Ca(t,r,i)||(console.warn(zi()+" did not get interpreted by the desired target. \nOriginator: "+xa(r)+"\nTarget: "+xa(i)+"\nCheck the "+zi()+" event handlers"),!1)}))]),ka=Object.freeze({__proto__:null,events:Sa}),Ma=0,Ea=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return Ma++,t+"_"+r+Ma+String(n)},Oa=o("alloy-id-"),Ta=o("data-alloy-id"),Aa=Oa(),Da=Ta(),Na=function(t,e){var n=Ea(Aa+t);return Ra(e,n),n},Ra=function(t,e){Object.defineProperty(t.dom,Da,{value:e,writable:!0})},Pa=function(t){var e=Lo(t)?t.dom[Da]:null;return _.from(e)},Ia=function(t){return Ea(t)},Ba=a,La=function(t){var e=function(e){return function(){throw new Error("The component must be in a context to send: "+e+(t?"\n"+xa(t().element)+" is not in context.":""))}};return{debugInfo:o("fake"),triggerEvent:e("triggerEvent"),triggerFocus:e("triggerFocus"),triggerEscape:e("triggerEscape"),build:e("build"),addToWorld:e("addToWorld"),removeFromWorld:e("removeFromWorld"),addToGui:e("addToGui"),removeFromGui:e("removeFromGui"),getByUid:e("getByUid"),getByDom:e("getByDom"),broadcast:e("broadcast"),broadcastOn:e("broadcastOn"),broadcastEvent:e("broadcastEvent"),isConnected:l}},za=La(),ja=function(t,e,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:Fa(a.slice(0,1).concat(a.slice(3)))}},t},Fa=function(t){return q(t,(function(t){return mr(t,"/*")?t.substring(0,t.length-"/*".length):t}))},$a=function(t,e){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:Fa(o)}},t},Ha=function(t,e){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Fa(o.slice(1))}},t},Va=Ea("alloy-premade"),Ua=function(t){return ce(Va,t)},qa=function(t){return jt(t,Va)},Wa=function(t){return Ha((function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.apply(void 0,m([e.getApis(),e],n))}),t)},Ka={init:function(){return Ga({readState:function(){return"No State required"}})}},Ga=function(t){return t},Ya=function(t,e){var n=q(e,(function(t){return Bn(t.name(),[yn("config"),zn("state",Ka)])})),r=nn("component.behaviours",ze(n),t.behaviours).fold((function(e){throw new Error(an(e)+"\nComplete spec:\n"+JSON.stringify(t,null,2))}),(function(t){return t}));return{list:e,data:Dt(r,(function(t){var e=t.map((function(t){return{config:t.config,state:t.state.init(t.config)}}));return function(){return e}}))}},Xa=function(t){return t.list},Za=function(t){return t.data},Ja=function(t,e){var n={};return At(t,(function(t,r){At(t,(function(t,i){var o=jt(n,i).getOr([]);n[i]=o.concat([e(r,t)])}))})),n},Qa=function(t){return{classes:void 0!==t.classes?t.classes:[],attributes:void 0!==t.attributes?t.attributes:{},styles:void 0!==t.styles?t.styles:{}}},ts=function(t,e){return h(h({},t),{attributes:h(h({},t.attributes),e.attributes),styles:h(h({},t.styles),e.styles),classes:t.classes.concat(e.classes)})},es=function(t,e,n,r){var i=h({},e);W(n,(function(e){i[e.name()]=e.exhibit(t,r)}));var o=Ja(i,(function(t,e){return{name:t,modification:e}})),a=function(t){return X(t,(function(t,e){return h(h({},e.modification),t)}),{})},s=X(o.classes,(function(t,e){return e.modification.concat(t)}),[]),u=a(o.attributes),c=a(o.styles);return Qa({classes:s,attributes:u,styles:c})},ns=function(t,e,n,r){try{var i=st(n,(function(n,i){var o=n[e],a=i[e],s=r.indexOf(o),u=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+t+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===u)throw new Error("The ordering for "+t+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<u?-1:u<s?1:0}));return gt.value(i)}catch(o){return gt.error([o])}},rs=function(t,e){return{handler:t,purpose:e}},is=function(t,e){return{cHandler:t,purpose:e}},os=function(t,e){return is(s.apply(void 0,[t.handler].concat(e)),t.purpose)},as=function(t){return t.cHandler},ss=function(t,e){return{name:t,handler:e}},us=function(t,e){var n={};return W(t,(function(t){n[t.name()]=t.handlers(e)})),n},cs=function(t,e,n){var r=h(h({},n),us(e,t));return Ja(r,ss)},ls=function(t,e,n,r){var i=cs(t,n,r);return ps(i,e)},fs=function(t){var e=mi(t);return function(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[t,n].concat(r);e.abort.apply(void 0,o)?n.stop():e.can.apply(void 0,o)&&e.run.apply(void 0,o)}},ds=function(t,e){return gt.error(["The event ("+t+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(q(e,(function(t){return t.name})),null,2)])},hs=function(t,e,n){var r=e[n];return r?ns("Event: "+n,"name",t,r).map((function(t){var e=q(t,(function(t){return t.handler}));return gi(e)})):ds(n,t)},ps=function(t,e){var n=Bt(t,(function(t,n){var r=1===t.length?gt.value(t[0].handler):hs(t,e,n);return r.map((function(r){var i=fs(r),o=t.length>1?Y(e[n],(function(e){return H(t,(function(t){return t.name===e}))})).join(" > "):t[0].name;return ce(n,rs(i,o))}))}));return he(n,{})},ms="alloy.base.behaviour",gs=function(t){var e;return nn("custom.definition",ze([We("dom","dom",te(),ze([yn("tag"),zn("styles",{}),zn("classes",[]),zn("attributes",{}),An("value"),An("innerHtml")])),yn("components"),yn("uid"),zn("events",{}),zn("apis",{}),We("eventOrder","eventOrder",Qt((e={},e[Hi()]=["disabling",ms,"toggling","typeaheadevents"],e[zi()]=[ms,"focusing","keying"],e[Gi()]=[ms,"disabling","toggling","representing"],e[Di()]=[ms,"representing","streaming","invalidating"],e[to()]=[ms,"representing","item-events","tooltipping"],e[xi()]=["focusing",ms,"item-type-events"],e[bi()]=["focusing",ms,"item-type-events"],e[Mi()]=["item-type-events","tooltipping"],e[$i()]=["receiving","reflecting","tooltipping"],e)),ln()),An("domModification")]),t)},vs=function(t){return h(h({},t.dom),{uid:t.uid,domChildren:q(t.components,(function(t){return t.element}))})},bs=function(t){return t.domModification.fold((function(){return Qa({})}),Qa)},ys=function(t){return t.events},ws=function(t,e){var n=ma(t,e);return void 0===n||""===n?[]:n.split(" ")},_s=function(t,e,n){var r=ws(t,e),i=r.concat([n]);return ha(t,e,i.join(" ")),!0},xs=function(t,e,n){var r=Y(ws(t,e),(function(t){return t!==n}));return r.length>0?ha(t,e,r.join(" ")):ba(t,e),!1},Cs=function(t){return void 0!==t.dom.classList},Ss=function(t){return ws(t,"class")},ks=function(t,e){return _s(t,"class",e)},Ms=function(t,e){return xs(t,"class",e)},Es=function(t,e){Cs(t)?t.dom.classList.add(e):ks(t,e)},Os=function(t){var e=Cs(t)?t.dom.classList:Ss(t);0===e.length&&ba(t,"class")},Ts=function(t,e){if(Cs(t)){var n=t.dom.classList;n.remove(e)}else Ms(t,e);Os(t)},As=function(t,e){return Cs(t)&&t.dom.classList.contains(e)},Ds=function(t,e){W(e,(function(e){Es(t,e)}))},Ns=function(t,e){W(e,(function(e){Ts(t,e)}))},Rs=function(t){return void 0!==t.style&&R(t.style.getPropertyValue)},Ps=function(t){return Fo(t)},Is=R(Element.prototype.attachShadow)&&R(Node.prototype.getRootNode),Bs=o(Is),Ls=Is?function(t){return er.fromDom(t.dom.getRootNode())}:Ho,zs=function(t){return Ps(t)?t:er.fromDom(Ho(t).dom.body)},js=function(t){return Fs(t).isSome()},Fs=function(t){var e=Ls(t);return Ps(e)?_.some(e):_.none()},$s=function(t){return er.fromDom(t.dom.host)},Hs=function(t){if(Bs()&&N(t.target)){var e=er.fromDom(t.target);if(Lo(e)&&Vs(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return ct(n)}}return _.from(t.target)},Vs=function(t){return N(t.dom.shadowRoot)},Us=function(t){var e=zo(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return Fs(er.fromDom(e)).fold((function(){return n.body.contains(e)}),i(Us,$s))},qs=function(){return Ws(er.fromDom(document))},Ws=function(t){var e=t.dom.body;if(null===e||void 0===e)throw new Error("Body is not available yet");return er.fromDom(e)},Ks=function(t,e,n){if(!M(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);Rs(t)&&t.style.setProperty(e,n)},Gs=function(t,e){Rs(t)&&t.style.removeProperty(e)},Ys=function(t,e,n){var r=t.dom;Ks(r,e,n)},Xs=function(t,e){var n=t.dom;At(e,(function(t,e){Ks(n,e,t)}))},Zs=function(t,e){var n=t.dom;At(e,(function(t,e){t.fold((function(){Gs(n,e)}),(function(t){Ks(n,e,t)}))}))},Js=function(t,e){var n=t.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(e);return""!==i||Us(t)?i:Qs(n,e)},Qs=function(t,e){return Rs(t)?t.style.getPropertyValue(e):""},tu=function(t,e){var n=t.dom,r=Qs(n,e);return _.from(r).filter((function(t){return t.length>0}))},eu=function(t){var e={},n=t.dom;if(Rs(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);e[i]=n.style[i]}return e},nu=function(t,e,n){var r=er.fromTag(t);Ys(r,e,n);var i=tu(r,e);return i.isSome()},ru=function(t,e){var n=t.dom;Gs(n,e),ga(t,"style").map(vr).is("")&&ba(t,"style")},iu=function(t){return t.dom.offsetWidth},ou=function(t){return t.dom.value},au=function(t,e){if(void 0===e)throw new Error("Value.set was undefined");t.dom.value=e},su=function(t){var e=er.fromTag(t.tag);pa(e,t.attributes),Ds(e,t.classes),Xs(e,t.styles),t.innerHtml.each((function(t){return la(e,t)}));var n=t.domChildren;return ia(e,n),t.value.each((function(t){au(e,t)})),t.uid,Ra(e,t.uid),e},uu=function(t){var e=jt(t,"behaviours").getOr({}),n=Y(Ot(e),(function(t){return void 0!==e[t]}));return q(n,(function(t){return e[t].me}))},cu=function(t,e){return Ya(t,e)},lu=function(t){var e=uu(t);return cu(t,e)},fu=function(t,e,n){var r=vs(t),i=bs(t),o={"alloy.base.modification":i},a=e.length>0?es(n,o,e,r):i;return ts(r,a)},du=function(t,e,n){var r={"alloy.base.behaviour":ys(t)};return ls(n,t.eventOrder,e,r).getOrDie()},hu=function(t){var e=function(){return b},n=Yn(za),r=rn(gs(t)),i=lu(t),o=Xa(i),a=Za(i),s=fu(r,o,a),u=su(s),c=du(r,o,a),l=Yn(r.components),f=function(t){n.set(t)},d=function(){n.set(La(e))},h=function(){var t=Yo(u),e=nt(t,(function(t){return n.get().getByDom(t).fold((function(){return[]}),(function(t){return[t]}))}));l.set(e)},p=function(e){var n=a,r=R(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))};return r()},m=function(t){return R(a[t.name()])},g=function(){return r.apis},v=function(t){return a[t]().map((function(t){return t.state.readState()})).getOr("not enabled")},b={getSystem:n.get,config:p,hasConfigured:m,spec:t,readState:v,getApis:g,connect:f,disconnect:d,element:u,syncComponents:h,components:l.get,events:c};return b},pu=function(t){var e=jt(t,"components").getOr([]);return q(e,yu)},mu=function(t){var e=Ba(t),n=e.events,r=p(e,["events"]),i=pu(r),o=h(h({},r),{events:h(h({},ka),n),components:i});return gt.value(hu(o))},gu=function(t){var e=er.fromText(t);return vu({element:e})},vu=function(t){var n=on("external.component",Le([yn("element"),An("uid")]),t),r=Yn(La()),i=function(t){r.set(t)},a=function(){r.set(La((function(){return s})))};n.uid.each((function(t){Ra(n.element,t)}));var s={getSystem:r.get,config:_.none,hasConfigured:l,connect:i,disconnect:a,getApis:function(){return{}},element:n.element,spec:t,readState:o("No state"),syncComponents:e,components:o([]),events:{}};return Ua(s)},bu=Ia,yu=function(t){return qa(t).fold((function(){var e=t.hasOwnProperty("uid")?t:h({uid:bu("")},t);return mu(e).getOrDie()}),(function(t){return t}))},wu=Ua;function _u(t,e){var n=function(e,n){if(!P(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Rs(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var i=Js(n,t);return parseFloat(i)||0}return r},i=r,o=function(t,e){return Z(e,(function(e,n){var r=Js(t,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?e:e+i}),0)},a=function(t,e,n){var r=o(t,n),i=e>r?e-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}}var xu=_u("height",(function(t){var e=t.dom;return Us(t)?e.getBoundingClientRect().height:e.offsetHeight})),Cu=function(t){return xu.get(t)},Su=function(t){return xu.getOuter(t)},ku=function(t,e){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=xu.max(t,e,n);Ys(t,"max-height",r+"px")},Mu=function(t,e){var n=function(n,r){return Mu(t+n,e+r)};return{left:t,top:e,translate:n}},Eu=Mu,Ou=function(t){var e=t.getBoundingClientRect();return Eu(e.left,e.top)},Tu=function(t,e){return void 0!==t?t:void 0!==e?e:0},Au=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,i=e.documentElement;if(n===t.dom)return Eu(n.offsetLeft,n.offsetTop);var o=Tu(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Tu(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Tu(i.clientTop,n.clientTop),u=Tu(i.clientLeft,n.clientLeft);return Du(t).translate(a-u,o-s)},Du=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?Eu(r.offsetLeft,r.offsetTop):Us(t)?Ou(e):Eu(0,0)},Nu=_u("width",(function(t){return t.dom.offsetWidth})),Ru=function(t,e){return Nu.set(t,e)},Pu=function(t){return Nu.get(t)},Iu=function(t){return Nu.getOuter(t)},Bu=function(t,e){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=Nu.max(t,e,n);Ys(t,"max-width",r+"px")},Lu=function(t,e,n,r,i,o,a){return{target:t,x:e,y:n,stop:r,prevent:i,kill:o,raw:a}},zu=function(t){var e=er.fromDom(Hs(t).getOr(t.target)),n=function(){return t.stopPropagation()},i=function(){return t.preventDefault()},o=r(i,n);return Lu(e,t.clientX,t.clientY,n,i,o,t)},ju=function(t,e){return function(n){t(n)&&e(zu(n))}},Fu=function(t,e,n,r,i){var o=ju(n,r);return t.dom.addEventListener(e,o,i),{unbind:s(Vu,t,e,o,i)}},$u=function(t,e,n,r){return Fu(t,e,n,r,!1)},Hu=function(t,e,n,r){return Fu(t,e,n,r,!0)},Vu=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Uu=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return Eu(n,r)},qu=function(t,e,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(t,e)},Wu=function(t){var e=void 0===t?window:t;return _.from(e["visualViewport"])},Ku=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Gu=function(t){var e=void 0===t?window:t,n=e.document,r=Uu(er.fromDom(n));return Wu(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,i=t.clientHeight;return Ku(r.left,r.top,n,i)}),(function(t){return Ku(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},Yu=function(t,e){var n=t.view(e);return n.fold(o([]),(function(e){var n=t.owner(e),r=Yu(t,n);return[e].concat(r)}))},Xu=function(t,e){var n=e.owner(t),r=Yu(e,n);return _.some(r)},Zu=function(t){var e,n=t.dom===document?_.none():_.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement);return n.map(er.fromDom)},Ju=function(t){return $o(t)},Qu=Object.freeze({__proto__:null,view:Zu,owner:Ju}),tc=function(t){var e=er.fromDom(document),n=Uu(e),r=Xu(t,Qu);return r.fold(s(Au,t),(function(e){var r=Du(t),i=X(e,(function(t,e){var n=Du(e);return{left:t.left+n.left,top:t.top+n.top}}),{left:0,top:0});return Eu(i.left+r.left+n.left,i.top+r.top+n.top)}))},ec=function(t,e,n){return{point:t,width:e,height:n}},nc=function(t,e,n,r){return{x:t,y:e,width:n,height:r}},rc=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},ic=function(t){var e=Au(t),n=Iu(t),r=Su(t);return rc(e.left,e.top,n,r)},oc=function(t){var e=tc(t),n=Iu(t),r=Su(t);return rc(e.left,e.top,n,r)},ac=function(){return Gu(window)};function sc(t,e,n,r,i){return t(n,r)?_.some(n):R(i)&&i(n)?_.none():e(n,r,i)}var uc,cc=function(t,e,n){var r=t.dom,i=R(n)?n:l;while(r.parentNode){r=r.parentNode;var o=er.fromDom(r);if(e(o))return _.some(o);if(i(o))break}return _.none()},lc=function(t,e,n){var r=function(t,e){return e(t)};return sc(r,cc,t,e,n)},fc=function(t,e){var n=function(t){for(var r=0;r<t.childNodes.length;r++){var i=er.fromDom(t.childNodes[r]);if(e(i))return _.some(i);var o=n(t.childNodes[r]);if(o.isSome())return o}return _.none()};return n(t.dom)},dc=function(t,e,n){return lc(t,e,n).isSome()},hc=function(t,e,n){return cc(t,(function(t){return ti(t,e)}),n)},pc=function(t,e){return ri(e,t)},mc=function(t,e,n){var r=function(t,e){return ti(t,e)};return sc(r,hc,t,e,n)},gc=function(t){var e=lc(t,(function(t){if(!Lo(t))return!1;var e=ma(t,"id");return void 0!==e&&e.indexOf("aria-owns")>-1}));return e.bind((function(t){var e=ma(t,"id"),n=Ls(t);return pc(n,'[aria-owns="'+e+'"]')}))},vc=function(){var t=Ea("aria-owns"),e=function(e){ha(e,"aria-owns",t)},n=function(t){ba(t,"aria-owns")};return{id:t,link:e,unlink:n}},bc=function(t,e){return gc(e).exists((function(e){return yc(t,e)}))},yc=function(t,e){return dc(e,(function(e){return ii(e,t.element)}),l)||bc(t,e)},wc="unknown";(function(t){t[t["STOP"]=0]="STOP",t[t["NORMAL"]=1]="NORMAL",t[t["LOGGING"]=2]="LOGGING"})(uc||(uc={}));var _c,xc=Yn({}),Cc=function(t,e){var n=[],r=(new Date).getTime();return{logEventCut:function(t,e,r){n.push({outcome:"cut",target:e,purpose:r})},logEventStopped:function(t,e,r){n.push({outcome:"stopped",target:e,purpose:r})},logNoParent:function(t,e,r){n.push({outcome:"no-parent",target:e,purpose:r})},logEventNoHandlers:function(t,e){n.push({outcome:"no-handlers-left",target:e})},logEventResponse:function(t,e,r){n.push({outcome:"response",purpose:r,target:e})},write:function(){var i=(new Date).getTime();$(["mousemove","mouseover","mouseout",Gi()],t)||console.log(t,{event:t,time:i-r,target:e.dom,sequence:q(n,(function(t){return $(["cut","stopped","response"],t.outcome)?"{"+t.purpose+"} "+t.outcome+" at ("+xa(t.target)+")":t.outcome}))})}}},Sc=function(t,e,n){var r=jt(xc.get(),t).orThunk((function(){var e=Ot(xc.get());return dt(e,(function(e){return t.indexOf(e)>-1?_.some(xc.get()[e]):_.none()}))})).getOr(uc.NORMAL);switch(r){case uc.NORMAL:return n(Tc());case uc.LOGGING:var i=Cc(t,e),o=n(i);return i.write(),o;case uc.STOP:return!0}},kc=["alloy/data/Fields","alloy/debugging/Debugging"],Mc=function(){var t=new Error;if(void 0!==t.stack){var e=t.stack.split("\n");return Q(e,(function(t){return t.indexOf("alloy")>0&&!H(kc,(function(e){return t.indexOf(e)>-1}))})).getOr(wc)}return wc},Ec={logEventCut:e,logEventStopped:e,logNoParent:e,logEventNoHandlers:e,logEventResponse:e,write:e},Oc=function(t,e,n){return Sc(t,e,n)},Tc=o(Ec),Ac=o([yn("menu"),yn("selectedMenu")]),Dc=o([yn("item"),yn("selectedItem")]),Nc=(o(ze(Dc().concat(Ac()))),o(ze(Dc()))),Rc=En("initSize",[yn("numColumns"),yn("numRows")]),Pc=function(){return wn("markers",Nc())},Ic=function(){return En("markers",[yn("backgroundMenu")].concat(Ac()).concat(Dc()))},Bc=function(t){return En("markers",q(t,yn))},Lc=function(t,e,n){Mc();return We(e,e,n,Qe((function(t){return gt.value((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(void 0,e)}))})))},zc=function(t){return Lc("onHandler",t,Jt(e))},jc=function(t){return Lc("onKeyboardHandler",t,Jt(_.none))},Fc=function(t){return Lc("onHandler",t,te())},$c=function(t){return Lc("onKeyboardHandler",t,te())},Hc=function(t,e){return Gn(t,o(e))},Vc=function(t){return Gn(t,a)},Uc=o(Rc),qc=function(t,e,n,r,i,o){return{x:t,y:e,bubble:n,direction:r,boundsRestriction:i,label:o}},Wc=Vt.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Kc=function(t,e,n,r,i,o,a,s,u){return t.fold(e,n,r,i,o,a,s,u)},Gc=function(t,e,n,r){return t.fold(e,e,r,r,e,r,n,n)},Yc=function(t,e,n,r){return t.fold(e,r,e,r,n,n,e,r)},Xc=Wc.southeast,Zc=Wc.southwest,Jc=Wc.northeast,Qc=Wc.northwest,tl=Wc.south,el=Wc.north,nl=Wc.east,rl=Wc.west,il=function(t,e){switch(e){case 1:return t.x;case 0:return t.x+t.width;case 2:return t.y;case 3:return t.y+t.height}},ol=function(t,e){return at(["left","right","top","bottom"],(function(n){return jt(e,n).map((function(e){return il(t,e)}))}))},al=function(t,e,n){var r=function(t,r){var i="top"===t||"bottom"===t?n.top:n.left;return jt(e,t).bind(a).bind((function(e){return"left"===t||"top"===t?e>=r?_.some(e):_.none():e<=r?_.some(e):_.none()})).map((function(t){return t+i})).getOr(r)},i=r("left",t.x),o=r("top",t.y),s=r("right",t.right),u=r("bottom",t.bottom);return rc(i,o,s-i,u-o)},sl=function(t){return t.x},ul=function(t,e){return t.x+t.width/2-e.width/2},cl=function(t,e){return t.x+t.width-e.width},ll=function(t,e){return t.y-e.height},fl=function(t){return t.y+t.height},dl=function(t,e){return t.y+t.height/2-e.height/2},hl=function(t){return t.x+t.width},pl=function(t,e){return t.x-e.width},ml=function(t,e,n){return qc(sl(t),fl(t),n.southeast(),Xc(),ol(t,{left:1,top:3}),"layout-se")},gl=function(t,e,n){return qc(cl(t,e),fl(t),n.southwest(),Zc(),ol(t,{right:0,top:3}),"layout-sw")},vl=function(t,e,n){return qc(sl(t),ll(t,e),n.northeast(),Jc(),ol(t,{left:1,bottom:2}),"layout-ne")},bl=function(t,e,n){return qc(cl(t,e),ll(t,e),n.northwest(),Qc(),ol(t,{right:0,bottom:2}),"layout-nw")},yl=function(t,e,n){return qc(ul(t,e),ll(t,e),n.north(),el(),ol(t,{bottom:2}),"layout-n")},wl=function(t,e,n){return qc(ul(t,e),fl(t),n.south(),tl(),ol(t,{top:3}),"layout-s")},_l=function(t,e,n){return qc(hl(t),dl(t,e),n.east(),nl(),ol(t,{left:0}),"layout-e")},xl=function(t,e,n){return qc(pl(t,e),dl(t,e),n.west(),rl(),ol(t,{right:1}),"layout-w")},Cl=function(){return[ml,gl,vl,bl,wl,yl,_l,xl]},Sl=function(){return[gl,ml,bl,vl,wl,yl,_l,xl]},kl=function(){return[vl,bl,ml,gl,yl,wl]},Ml=function(){return[bl,vl,gl,ml,yl,wl]},El=function(){return[ml,gl,vl,bl,wl,yl]},Ol=function(){return[gl,ml,bl,vl,wl,yl]},Tl=function(t,e){return e.universal?t:Y(t,(function(t){return $(e.channels,t)}))},Al=function(t){return go([wo($i(),(function(e,n){var r=t.channels,i=Ot(r),o=n,a=Tl(i,o);W(a,(function(t){var n=r[t],i=n.schema,a=on("channel["+t+"] data\nReceiver: "+xa(e.element),i,o.data);n.onReceive(e,a)}))}))])},Dl=Object.freeze({__proto__:null,events:Al}),Nl=[wn("channels",tn(gt.value,Le([Fc("onReceive"),zn("schema",ln())])))],Rl=function(t,e,n){return Ro((function(r){n(r,t,e)}))},Pl=function(t,e,n){return No((function(r,i){n(r,t,e)}))},Il=function(t,e,n,r,i,o){var a=Le(t),s=Bn(e,[Ln("config",t)]);return jl(a,s,e,n,r,i,o)},Bl=function(t,e,n,r,i,o){var a=t,s=Bn(e,[Dn("config",t)]);return jl(a,s,e,n,r,i,o)},Ll=function(t,e,n){var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var s=[r].concat(i);return r.config({name:o(t)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+t+". Using API: "+n)}),(function(t){var n=Array.prototype.slice.call(s,1);return e.apply(void 0,[r,t.config,t.state].concat(n))}))};return ja(r,n,e)},zl=function(t){return{key:t,value:void 0}},jl=function(t,e,n,r,i,o,a){var u=function(t){return $t(t,n)?t[n]():_.none()},c=Dt(i,(function(t,e){return Ll(n,t,e)})),l=Dt(o,(function(t,e){return $a(t,e)})),f=h(h(h({},l),c),{revoke:s(zl,n),config:function(e){var r=on(n+"-config",t,e);return{key:n,value:{config:r,me:f,configAsRaw:Xt((function(){return on(n+"-config",t,e)})),initialConfig:e,state:a}}},schema:function(){return e},exhibit:function(t,e){return u(t).bind((function(t){return jt(r,"exhibit").map((function(n){return n(e,t.config,t.state)}))})).getOr(Qa({}))},name:function(){return n},handlers:function(t){return u(t).map((function(t){var e=jt(r,"events").getOr((function(){return{}}));return e(t.config,t.state)})).getOr({})}});return f},Fl=function(t){return le(t)},$l=Le([yn("fields"),yn("name"),zn("active",{}),zn("apis",{}),zn("state",Ka),zn("extra",{})]),Hl=function(t){var e=on("Creating behaviour: "+t.name,$l,t);return Il(e.fields,e.name,e.active,e.apis,e.extra,e.state)},Vl=Le([yn("branchKey"),yn("branches"),yn("name"),zn("active",{}),zn("apis",{}),zn("state",Ka),zn("extra",{})]),Ul=function(t){var e=on("Creating behaviour: "+t.name,Vl,t);return Bl(un(e.branchKey,e.branches),e.name,e.active,e.apis,e.extra,e.state)},ql=o(void 0),Wl=Hl({fields:Nl,name:"receiving",active:Dl}),Kl=function(t,e){return Qa({classes:[],styles:e.useFixed()?{}:{position:"relative"}})},Gl=Object.freeze({__proto__:null,exhibit:Kl}),Yl=function(){return er.fromDom(document)},Xl=function(t){return t.dom.focus()},Zl=function(t){return t.dom.blur()},Jl=function(t){var e=Ls(t).dom;return t.dom===e.activeElement},Ql=function(t){return void 0===t&&(t=Yl()),_.from(t.dom.activeElement).map(er.fromDom)},tf=function(t){return Ql(Ls(t)).filter((function(e){return t.dom.contains(e.dom)}))},ef=function(t,n){var r=Ls(n),i=Ql(r).bind((function(t){var e=function(e){return ii(t,e)};return e(n)?_.some(n):fc(n,e)})),o=t(n);return i.each((function(t){Ql(r).filter((function(e){return ii(e,t)})).fold((function(){Xl(t)}),e)})),o},nf=function(t,e,n,r,i){return{position:t,left:e,top:n,right:r,bottom:i}},rf=function(t,e){var n=function(t){return t+"px"};Zs(t,{position:_.some(e.position),left:e.left.map(n),top:e.top.map(n),right:e.right.map(n),bottom:e.bottom.map(n)})},of=Vt.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),af=function(t,e,n,r,i,o){var a=e.x-n,s=e.y-r,u=e.width,c=e.height,l=i-(a+u),f=o-(s+c),d=_.some(a),h=_.some(s),p=_.some(l),m=_.some(f),g=_.none();return Kc(e.direction,(function(){return nf(t,d,h,g,g)}),(function(){return nf(t,g,h,p,g)}),(function(){return nf(t,d,g,g,m)}),(function(){return nf(t,g,g,p,m)}),(function(){return nf(t,d,h,g,g)}),(function(){return nf(t,d,g,g,m)}),(function(){return nf(t,d,h,g,g)}),(function(){return nf(t,g,h,p,g)}))},sf=function(t,e){return t.fold((function(){return nf("absolute",_.some(e.x),_.some(e.y),_.none(),_.none())}),(function(t,n,r,i){return af("absolute",e,t,n,r,i)}),(function(t,n,r,i){return af("fixed",e,t,n,r,i)}))},uf=function(t,e){var n=s(tc,e),r=t.fold(n,n,(function(){var t=Uu();return tc(e).translate(-t.left,-t.top)})),i=Iu(e),o=Su(e);return rc(r.left,r.top,i,o)},cf=function(t,e){return e.fold((function(){return t.fold(ac,ac,rc)}),(function(e){return t.fold(e,e,(function(){var n=e(),r=lf(t,n.x,n.y);return rc(r.left,r.top,n.width,n.height)}))}))},lf=function(t,e,n){var r=Eu(e,n),i=function(){var t=Uu();return r.translate(-t.left,-t.top)};return t.fold(o(r),o(r),i)},ff=function(t,e,n,r){return t.fold(e,n,r)},df=(of.none,of.relative),hf=of.fixed,pf=function(t,e){return{anchorBox:t,origin:e}},mf=function(t,e){return pf(t,e)},gf=function(t,e,n,r){var i=t+e;return i>r?n:i<n?r:i},vf=function(t,e,n){return Math.min(Math.max(t,e),n)},bf=Vt.generate([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),yf=function(t,e,n,r,i){var o=i.x,a=i.y,s=i.width,u=i.height,c=t>=o,l=e>=a,f=c&&l,d=t+n<=o+s,h=e+r<=a+u,p=d&&h,m=Math.abs(Math.min(n,c?o+s-t:o-(t+n))),g=Math.abs(Math.min(r,l?a+u-e:a-(e+r))),v=Math.max(i.x,i.right-n),b=Math.max(i.y,i.bottom-r),y=vf(t,i.x,v),w=vf(e,i.y,b);return{originInBounds:f,sizeInBounds:p,limitX:y,limitY:w,deltaW:m,deltaH:g}},wf=function(t,e,n,r){var i=t.x,a=t.y,s=t.bubble.offset,u=s.left,c=s.top,l=al(r,t.boundsRestriction,s),f=l.y,d=l.bottom,h=l.x,p=l.right,m=i+u,g=a+c,v=yf(m,g,e,n,l),b=v.originInBounds,y=v.sizeInBounds,w=v.limitX,_=v.limitY,x=v.deltaW,C=v.deltaH,S=o(_+C-f),k=o(d-_),M=Gc(t.direction,k,k,S),E=o(w+x-h),O=o(p-w),T=Yc(t.direction,O,O,E),A={x:w,y:_,width:x,height:C,maxHeight:M,maxWidth:T,direction:t.direction,classes:{on:t.bubble.classesOn,off:t.bubble.classesOff},label:t.label,candidateYforTest:g};return b&&y?bf.fit(A):bf.nofit(A,x,C)},_f=function(t,e,n,r,i){var o=n.width,u=n.height,c=function(t,a,s,c){var l=t(e,n,r),f=wf(l,o,u,i);return f.fold(bf.fit,(function(t,e,n){var r=n>c||e>s;return r?bf.nofit(t,e,n):bf.nofit(a,s,c)}))},l=Z(t,(function(t,e){var n=s(c,e);return t.fold(bf.fit,n)}),bf.nofit({x:e.x,y:e.y,width:n.width,height:n.height,maxHeight:n.height,maxWidth:n.width,direction:Xc(),classes:{on:[],off:[]},label:"none",candidateYforTest:e.y},-1,-1));return l.fold(a,a)},xf=function(t){return{width:Iu(t),height:Su(t)}},Cf=function(t,e,n,r){ru(e,"max-height"),ru(e,"max-width");var i=xf(e);return _f(r.preference,t,i,n,r.bounds)},Sf=function(t,e){var n=e.classes;Ns(t,n.off),Ds(t,n.on)},kf=function(t,e,n){var r=n.maxHeightFunction;r(t,e.maxHeight)},Mf=function(t,e,n){var r=n.maxWidthFunction;r(t,e.maxWidth)},Ef=function(t,e,n){rf(t,sf(n.origin,e))},Of=function(t,e){ku(t,Math.floor(e))},Tf=o((function(t,e){Of(t,e),Xs(t,{"overflow-x":"hidden","overflow-y":"auto"})})),Af=o((function(t,e){Of(t,e)})),Df=function(t,e,n){return void 0===t[e]?n:t[e]},Nf=function(t,n,r,i,o,a){var s=Df(a,"maxHeightFunction",Tf()),u=Df(a,"maxWidthFunction",e),c=t.anchorBox,l=t.origin,f={bounds:cf(l,o),origin:l,preference:i,maxHeightFunction:s,maxWidthFunction:u};Rf(c,n,r,f)},Rf=function(t,e,n,r){var i=Cf(t,e,n,r);Ef(e,i,r),Sf(e,i),kf(e,i,r),Mf(e,i,r)},Pf=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],If=function(t,e,n){var r=function(t){return jt(n,t).getOr([])},i=function(t,e,n){var i=ot(Pf,n);return{offset:Eu(t,e),classesOn:nt(n,r),classesOff:nt(i,r)}};return{southeast:function(){return i(-t,e,["top","alignLeft"])},southwest:function(){return i(t,e,["top","alignRight"])},south:function(){return i(-t/2,e,["top","alignCentre"])},northeast:function(){return i(-t,-e,["bottom","alignLeft"])},northwest:function(){return i(t,-e,["bottom","alignRight"])},north:function(){return i(-t/2,-e,["bottom","alignCentre"])},east:function(){return i(t,-e/2,["valignCentre","left"])},west:function(){return i(-t,-e/2,["valignCentre","right"])},innerNorthwest:function(){return i(-t,e,["top","alignRight"])},innerNortheast:function(){return i(t,e,["top","alignLeft"])},innerNorth:function(){return i(-t/2,e,["top","alignCentre"])},innerSouthwest:function(){return i(-t,-e,["bottom","alignRight"])},innerSoutheast:function(){return i(t,-e,["bottom","alignLeft"])},innerSouth:function(){return i(-t/2,-e,["bottom","alignCentre"])},innerWest:function(){return i(t,-e/2,["valignCentre","right"])},innerEast:function(){return i(-t,-e/2,["valignCentre","left"])}}},Bf=function(){return If(0,0,{})},Lf=function(t){return t},zf=function(t,e){return function(n){return"rtl"===jf(n)?e:t}},jf=function(t){return"rtl"===Js(t,"direction")?"rtl":"ltr"};(function(t){t["TopToBottom"]="toptobottom",t["BottomToTop"]="bottomtotop"})(_c||(_c={}));var Ff="data-alloy-vertical-dir",$f=function(t){return dc(t,(function(t){return Lo(t)&&ma(t,"data-alloy-vertical-dir")===_c.BottomToTop}))},Hf=function(){return Bn("layouts",[yn("onLtr"),yn("onRtl"),An("onBottomLtr"),An("onBottomRtl")])},Vf=function(t,e,n,r,i,o,a){var s=a.map($f).getOr(!1),u=e.layouts.map((function(e){return e.onLtr(t)})),c=e.layouts.map((function(e){return e.onRtl(t)})),l=s?e.layouts.bind((function(e){return e.onBottomLtr.map((function(e){return e(t)}))})).or(u).getOr(i):u.getOr(n),f=s?e.layouts.bind((function(e){return e.onBottomRtl.map((function(e){return e(t)}))})).or(c).getOr(o):c.getOr(r),d=zf(l,f);return d(t)},Uf=function(t,e,n){var r=e.hotspot,i=uf(n,r.element),o=Vf(t.element,e,El(),Ol(),kl(),Ml(),_.some(e.hotspot.element));return _.some(Lf({anchorBox:i,bubble:e.bubble.getOr(Bf()),overrides:e.overrides,layouts:o,placer:_.none()}))},qf=[yn("hotspot"),An("bubble"),zn("overrides",{}),Hf(),Hc("placement",Uf)],Wf=function(t,e,n){var r=lf(n,e.x,e.y),i=rc(r.left,r.top,e.width,e.height),o=Vf(t.element,e,Cl(),Sl(),Cl(),Sl(),_.none());return _.some(Lf({anchorBox:i,bubble:e.bubble,overrides:e.overrides,layouts:o,placer:_.none()}))},Kf=[yn("x"),yn("y"),zn("height",0),zn("width",0),zn("bubble",Bf()),zn("overrides",{}),Hf(),Hc("placement",Wf)],Gf="\ufeff",Yf=" ",Xf=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Zf={create:Xf},Jf=Vt.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Qf=function(t,e,n,r){return t.fold(e,n,r)},td=function(t){return t.fold(a,a,a)},ed=Jf.before,nd=Jf.on,rd=Jf.after,id={before:ed,on:nd,after:rd,cata:Qf,getStart:td},od=Vt.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ad=function(t){return od.exact(t.start,t.soffset,t.finish,t.foffset)},sd=function(t){return t.match({domRange:function(t){return er.fromDom(t.startContainer)},relative:function(t,e){return id.getStart(t)},exact:function(t,e,n,r){return t}})},ud=od.domRange,cd=od.relative,ld=od.exact,fd=function(t){var e=sd(t);return Uo(e)},dd=Zf.create,hd={domRange:ud,relative:cd,exact:ld,exactFromRange:ad,getWin:fd,range:dd},pd=function(t,e){e.fold((function(e){t.setStartBefore(e.dom)}),(function(e,n){t.setStart(e.dom,n)}),(function(e){t.setStartAfter(e.dom)}))},md=function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))},gd=function(t,e,n){var r=t.document.createRange();return pd(r,e),md(r,n),r},vd=function(t,e,n,r,i){var o=t.document.createRange();return o.setStart(e.dom,n),o.setEnd(r.dom,i),o},bd=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},yd=function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?_.some(n).map(bd):_.none()},wd=Vt.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),_d=function(t,e,n){return e(er.fromDom(n.startContainer),n.startOffset,er.fromDom(n.endContainer),n.endOffset)},xd=function(t,e){return e.match({domRange:function(t){return{ltr:o(t),rtl:_.none}},relative:function(e,n){return{ltr:Xt((function(){return gd(t,e,n)})),rtl:Xt((function(){return _.some(gd(t,n,e))}))}},exact:function(e,n,r,i){return{ltr:Xt((function(){return vd(t,e,n,r,i)})),rtl:Xt((function(){return _.some(vd(t,r,i,e,n))}))}}})},Cd=function(t,e){var n=e.ltr();if(n.collapsed){var r=e.rtl().filter((function(t){return!1===t.collapsed}));return r.map((function(t){return wd.rtl(er.fromDom(t.endContainer),t.endOffset,er.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return _d(t,wd.ltr,n)}))}return _d(t,wd.ltr,n)},Sd=function(t,e){var n=xd(t,e);return Cd(t,n)},kd=function(t,e){var n=Sd(t,e);return n.match({ltr:function(e,n,r,i){var o=t.document.createRange();return o.setStart(e.dom,n),o.setEnd(r.dom,i),o},rtl:function(e,n,r,i){var o=t.document.createRange();return o.setStart(r.dom,i),o.setEnd(e.dom,n),o}})};wd.ltr,wd.rtl;function Md(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?_.from(e.dom.nodeValue):_.none()},i=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}}var Ed=Md(zo,"text"),Od=function(t){return Ed.get(t)},Td=function(t){return Ed.getOption(t)},Ad=function(t){return"img"===Po(t)?1:Td(t).fold((function(){return Yo(t).length}),(function(t){return t.length}))},Dd=function(t){return Td(t).filter((function(t){return 0!==t.trim().length||t.indexOf(Yf)>-1})).isSome()},Nd=["img","br"],Rd=function(t){var e=Dd(t);return e||$(Nd,Po(t))},Pd=function(t){return Id(t,Rd)},Id=function(t,e){var n=function(t){for(var r=Yo(t),i=r.length-1;i>=0;i--){var o=r[i];if(e(o))return _.some(o);var a=n(o);if(a.isSome())return a}return _.none()};return n(t)},Bd=function(t,e){return ni(e,t)},Ld=function(t,e,n,r){var i=$o(t),o=i.dom.createRange();return o.setStart(t.dom,e),o.setEnd(n.dom,r),o},zd=function(t,e,n,r){var i=Ld(t,e,n,r),o=ii(t,n)&&e===r;return i.collapsed&&!o},jd=function(t){return _.from(t.getSelection())},Fd=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return _.some(Zf.create(er.fromDom(e.startContainer),e.startOffset,er.fromDom(n.endContainer),n.endOffset))}return _.none()},$d=function(t){if(null===t.anchorNode||null===t.focusNode)return Fd(t);var e=er.fromDom(t.anchorNode),n=er.fromDom(t.focusNode);return zd(e,t.anchorOffset,n,t.focusOffset)?_.some(Zf.create(e,t.anchorOffset,n,t.focusOffset)):Fd(t)},Hd=function(t){return jd(t).filter((function(t){return t.rangeCount>0})).bind($d)},Vd=function(t,e){var n=kd(t,e);return yd(n)},Ud=function(t,e){return{element:t,offset:e}},qd=function(t,e){var n=Yo(t);if(0===n.length)return Ud(t,e);if(e<n.length)return Ud(n[e],0);var r=n[n.length-1],i=zo(r)?Od(r).length:Yo(r).length;return Ud(r,i)},Wd=Vt.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Kd=function(t){return t.fold(a,(function(t,e,n){return t.translate(-e,-n)}))},Gd=function(t){return t.fold(a,a)},Yd=function(t){return Z(t,(function(t,e){return t.translate(e.left,e.top)}),Eu(0,0))},Xd=function(t){var e=q(t,Kd);return Yd(e)},Zd=function(t){var e=q(t,Gd);return Yd(e)},Jd=Wd.screen,Qd=Wd.absolute,th=function(t,e,n){var r=Uo(n.root).dom,i=function(e){var n=$o(e),r=$o(t.element);return ii(n,r)};return _.from(r.frameElement).map(er.fromDom).filter(i).map(Au)},eh=function(t,e,n){var r=$o(t.element),i=Uu(r),o=th(t,e,n).getOr(i);return Qd(o,i.left,i.top)},nh=function(t,e,n,r){var i=t,o=e,a=n,s=r;t<0&&(i=0,a=n+t),e<0&&(o=0,s=r+e);var u=Jd(Eu(i,o));return _.some(ec(u,a,s))},rh=function(t,e,n,r,i){return t.map((function(t){var o=[e,t.point],a=ff(r,(function(){return Zd(o)}),(function(){return Zd(o)}),(function(){return Xd(o)})),s=nc(a.left,a.top,t.width,t.height),u=n.showAbove?kl():El(),c=n.showAbove?Ml():Ol(),l=Vf(i,n,u,c,u,c,_.none());return Lf({anchorBox:s,bubble:n.bubble.getOr(Bf()),overrides:n.overrides,layouts:l,placer:_.none()})}))},ih=function(t,e){return zo(t)?Ud(t,e):qd(t,e)},oh=function(t,e){var n=e.getSelection.getOrThunk((function(){return function(){return Hd(t)}}));return n().map((function(t){var e=ih(t.start,t.soffset),n=ih(t.finish,t.foffset);return hd.range(e.element,e.offset,n.element,n.offset)}))},ah=function(t,e,n){var r=Uo(e.root).dom,i=eh(t,n,e),o=oh(r,e).bind((function(t){var e=Vd(r,hd.exactFromRange(t)).orThunk((function(){var e=er.fromText(Gf);return Jo(t.start,e),Vd(r,hd.exact(e,0,e,1)).map((function(t){return aa(e),t}))}));return e.bind((function(t){return nh(t.left,t.top,t.width,t.height)}))})),a=oh(r,e).bind((function(t){return Lo(t.start)?_.some(t.start):Wo(t.start)})),s=a.getOr(t.element);return rh(o,i,e,n,s)},sh=[An("getSelection"),yn("root"),An("bubble"),Hf(),zn("overrides",{}),zn("showAbove",!1),Hc("placement",ah)],uh=function(t,e,n){var r=eh(t,n,e);return e.node.bind((function(i){var o=i.dom.getBoundingClientRect(),a=nh(o.left,o.top,o.width,o.height),s=e.node.getOr(t.element);return rh(a,r,e,n,s)}))},ch=[yn("node"),yn("root"),An("bubble"),Hf(),zn("overrides",{}),zn("showAbove",!1),Hc("placement",uh)],lh=function(t){return t.x+t.width},fh=function(t,e){return t.x-e.width},dh=function(t,e){return t.y-e.height+t.height},hh=function(t){return t.y},ph=function(t,e,n){return qc(lh(t),hh(t),n.southeast(),Xc(),ol(t,{left:0,top:2}),"link-layout-se")},mh=function(t,e,n){return qc(fh(t,e),hh(t),n.southwest(),Zc(),ol(t,{right:1,top:2}),"link-layout-sw")},gh=function(t,e,n){return qc(lh(t),dh(t,e),n.northeast(),Jc(),ol(t,{left:0,bottom:3}),"link-layout-ne")},vh=function(t,e,n){return qc(fh(t,e),dh(t,e),n.northwest(),Qc(),ol(t,{right:1,bottom:3}),"link-layout-nw")},bh=function(){return[ph,mh,gh,vh]},yh=function(){return[mh,ph,vh,gh]},wh=function(t,e,n){var r=uf(n,e.item.element),i=Vf(t.element,e,bh(),yh(),bh(),yh(),_.none());return _.some(Lf({anchorBox:r,bubble:Bf(),overrides:e.overrides,layouts:i,placer:_.none()}))},_h=[yn("item"),Hf(),zn("overrides",{}),Hc("placement",wh)],xh=un("anchor",{selection:sh,node:ch,hotspot:qf,submenu:_h,makeshift:Kf}),Ch=function(){var t=document.documentElement;return hf(0,0,t.clientWidth,t.clientHeight)},Sh=function(t){var e=Au(t.element),n=t.element.dom.getBoundingClientRect();return df(e.left,e.top,n.width,n.height)},kh=function(t,e,n,r,i){var o=mf(n.anchorBox,e);Nf(o,i.element,n.bubble,n.layouts,r,n.overrides)},Mh=function(t,e,n,r,i){Eh(t,e,n,r,i,_.none())},Eh=function(t,e,n,r,i,o){var a=o.map(ic);return Oh(t,e,n,r,i,a)},Oh=function(t,e,n,r,i,a){var s=on("positioning anchor.info",xh,r);ef((function(){Ys(i.element,"position","fixed");var n=tu(i.element,"visibility");Ys(i.element,"visibility","hidden");var r=e.useFixed()?Ch():Sh(t),u=s.placement,c=a.map(o).or(e.getBounds);u(t,s,r).each((function(e){var n=e.placer.getOr(kh);n(t,r,e,c,i)})),n.fold((function(){ru(i.element,"visibility")}),(function(t){Ys(i.element,"visibility",t)})),tu(i.element,"left").isNone()&&tu(i.element,"top").isNone()&&tu(i.element,"right").isNone()&&tu(i.element,"bottom").isNone()&&tu(i.element,"position").is("fixed")&&ru(i.element,"position")}),i.element)},Th=function(t,e,n){return e.useFixed()?"fixed":"absolute"},Ah=Object.freeze({__proto__:null,position:Mh,positionWithin:Eh,positionWithinBounds:Oh,getMode:Th}),Dh=[zn("useFixed",l),An("getBounds")],Nh=Hl({fields:Dh,name:"positioning",active:Gl,apis:Ah}),Rh=function(t){co(t,to());var e=t.components();W(e,Rh)},Ph=function(t){var e=t.components();W(e,Ph),co(t,Qi())},Ih=function(t,e){ea(t.element,e.element)},Bh=function(t){W(t.components(),(function(t){return aa(t.element)})),oa(t.element),t.syncComponents()},Lh=function(t,e){var n=t.components();Bh(t);var r=ot(n,e);W(r,(function(e){Rh(e),t.getSystem().removeFromWorld(e)})),W(e,(function(e){e.getSystem().isConnected()?Ih(t,e):(t.getSystem().addToWorld(e),Ih(t,e),Us(t.element)&&Ph(e)),t.syncComponents()}))},zh=function(t,e){jh(t,e,ea)},jh=function(t,e,n){t.getSystem().addToWorld(e),n(t.element,e.element),Us(t.element)&&Ph(e),t.syncComponents()},Fh=function(t){Rh(t),aa(t.element),t.getSystem().removeFromWorld(t)},$h=function(t){var e=qo(t.element).bind((function(e){return t.getSystem().getByDom(e).toOptional()}));Fh(t),e.each((function(t){t.syncComponents()}))},Hh=function(t){var e=t.components();W(e,Fh),oa(t.element),t.syncComponents()},Vh=function(t,e){qh(t,e,ea)},Uh=function(t,e){qh(t,e,Qo)},qh=function(t,e,n){n(t,e.element);var r=Yo(e.element);W(r,(function(t){e.getByDom(t).each(Ph)}))},Wh=function(t){var e=Yo(t.element);W(e,(function(e){t.getByDom(e).each(Rh)})),aa(t.element)},Kh=function(t,e,n,r){n.get().each((function(e){Hh(t)}));var i=e.getAttachPoint(t);zh(i,t);var o=t.getSystem().build(r);return zh(t,o),n.set(o),o},Gh=function(t,e,n,r){var i=Kh(t,e,n,r);return e.onOpen(t,i),i},Yh=function(t,e,n,r){return n.get().map((function(){return Kh(t,e,n,r)}))},Xh=function(t,e,n,r,i){rp(t,e),Gh(t,e,n,r),i(),op(t,e)},Zh=function(t,e,n){n.get().each((function(r){Hh(t),$h(t),e.onClose(t,r),n.clear()}))},Jh=function(t,e,n){return n.isOpen()},Qh=function(t,e,n,r){return Jh(t,e,n)&&n.get().exists((function(n){return e.isPartOf(t,n,r)}))},tp=function(t,e,n){return n.get()},ep=function(t,e,n,r){tu(t.element,e).fold((function(){ba(t.element,n)}),(function(e){ha(t.element,n,e)})),Ys(t.element,e,r)},np=function(t,e,n){ga(t.element,n).fold((function(){return ru(t.element,e)}),(function(n){return Ys(t.element,e,n)}))},rp=function(t,e,n){var r=e.getAttachPoint(t);Ys(t.element,"position",Nh.getMode(r)),ep(t,"visibility",e.cloakVisibilityAttr,"hidden")},ip=function(t){return H(["top","left","right","bottom"],(function(e){return tu(t,e).isSome()}))},op=function(t,e,n){ip(t.element)||ru(t.element,"position"),np(t,"visibility",e.cloakVisibilityAttr)},ap=Object.freeze({__proto__:null,cloak:rp,decloak:op,open:Gh,openWhileCloaked:Xh,close:Zh,isOpen:Jh,isPartOf:Qh,getState:tp,setContent:Yh}),sp=function(t,e){return go([wo(Wi(),(function(n,r){Zh(n,t,e)}))])},up=Object.freeze({__proto__:null,events:sp}),cp=[zc("onOpen"),zc("onClose"),yn("isPartOf"),yn("getAttachPoint"),zn("cloakVisibilityAttr","data-precloak-visibility")],lp=function(){var t=Yn(_.none()),e=o("not-implemented"),n=function(){return t.get().isSome()},r=function(e){t.set(_.some(e))},i=function(){return t.get()},a=function(){t.set(_.none())};return Ga({readState:e,isOpen:n,clear:a,set:r,get:i})},fp=Object.freeze({__proto__:null,init:lp}),dp=Hl({fields:cp,name:"sandboxing",active:up,apis:ap,state:fp}),hp=o("dismiss.popups"),pp=o("reposition.popups"),mp=o("mouse.released"),gp=Le([zn("isExtraPart",l),Bn("fireEventInstead",[zn("event",eo())])]),vp=function(t){var e,n=on("Dismissal",gp,t);return e={},e[hp()]={schema:Le([yn("target")]),onReceive:function(t,e){if(dp.isOpen(t)){var r=dp.isPartOf(t,e.target)||n.isExtraPart(t,e.target);r||n.fireEventInstead.fold((function(){return dp.close(t)}),(function(e){return co(t,e.event)}))}}},e},bp=Le([Bn("fireEventInstead",[zn("event",no())]),kn("doReposition")]),yp=function(t){var e,n=on("Reposition",bp,t);return e={},e[pp()]={onReceive:function(t){dp.isOpen(t)&&n.fireEventInstead.fold((function(){return n.doReposition(t)}),(function(e){return co(t,e.event)}))}},e},wp=function(t,e,n){e.store.manager.onLoad(t,e,n)},_p=function(t,e,n){e.store.manager.onUnload(t,e,n)},xp=function(t,e,n,r){e.store.manager.setValue(t,e,n,r)},Cp=function(t,e,n){return e.store.manager.getValue(t,e,n)},Sp=function(t,e,n){return n},kp=Object.freeze({__proto__:null,onLoad:wp,onUnload:_p,setValue:xp,getValue:Cp,getState:Sp}),Mp=function(t,e){var n=t.resetOnDom?[Ao((function(n,r){wp(n,t,e)})),Do((function(n,r){_p(n,t,e)}))]:[Pl(t,e,wp)];return go(n)},Ep=Object.freeze({__proto__:null,events:Mp}),Op=function(){var t=Yn(null),e=function(){return{mode:"memory",value:t.get()}},n=function(){return null===t.get()},r=function(){t.set(null)};return Ga({set:t.set,get:t.get,isNotSet:n,clear:r,readState:e})},Tp=function(){var t=function(){};return Ga({readState:t})},Ap=function(){var t=Yn({}),e=Yn({}),n=function(){return{mode:"dataset",dataByValue:t.get(),dataByText:e.get()}},r=function(){t.set({}),e.set({})},i=function(n){return jt(t.get(),n).orThunk((function(){return jt(e.get(),n)}))},o=function(n){var r=t.get(),i=e.get(),o={},a={};W(n,(function(t){o[t.value]=t,jt(t,"meta").each((function(e){jt(e,"text").each((function(e){a[e]=t}))}))})),t.set(h(h({},r),o)),e.set(h(h({},i),a))};return Ga({readState:n,lookup:i,update:o,clear:r})},Dp=function(t){return t.store.manager.state(t)},Np=Object.freeze({__proto__:null,memory:Op,dataset:Ap,manual:Tp,init:Dp}),Rp=function(t,e,n,r){var i=e.store;n.update([r]),i.setValue(t,r),e.onSetValue(t,r)},Pp=function(t,e,n){var r=e.store,i=r.getDataKey(t);return n.lookup(i).fold((function(){return r.getFallbackEntry(i)}),(function(t){return t}))},Ip=function(t,e,n){var r=e.store;r.initialValue.each((function(r){Rp(t,e,n,r)}))},Bp=function(t,e,n){n.clear()},Lp=[An("initialValue"),yn("getFallbackEntry"),yn("getDataKey"),yn("setValue"),Hc("manager",{setValue:Rp,getValue:Pp,onLoad:Ip,onUnload:Bp,state:Ap})],zp=function(t,e,n){return e.store.getValue(t)},jp=function(t,e,n,r){e.store.setValue(t,r),e.onSetValue(t,r)},Fp=function(t,e,n){e.store.initialValue.each((function(n){e.store.setValue(t,n)}))},$p=[yn("getValue"),zn("setValue",e),An("initialValue"),Hc("manager",{setValue:jp,getValue:zp,onLoad:Fp,onUnload:e,state:Ka.init})],Hp=function(t,e,n,r){n.set(r),e.onSetValue(t,r)},Vp=function(t,e,n){return n.get()},Up=function(t,e,n){e.store.initialValue.each((function(t){n.isNotSet()&&n.set(t)}))},qp=function(t,e,n){n.clear()},Wp=[An("initialValue"),Hc("manager",{setValue:Hp,getValue:Vp,onLoad:Up,onUnload:qp,state:Op})],Kp=[jn("store",{mode:"memory"},un("mode",{memory:Wp,manual:$p,dataset:Lp})),zc("onSetValue"),zn("resetOnDom",!1)],Gp=Hl({fields:Kp,name:"representing",active:Ep,apis:kp,extra:{setValueFrom:function(t,e){var n=Gp.getValue(e);Gp.setValue(t,n)}},state:Np}),Yp=function(t,e){return Kn(t,{},q(e,(function(e){return Mn(e.name(),"Cannot configure "+e.name()+" for "+t)})).concat([Gn("dump",a)]))},Xp=function(t){return t.dump},Zp=function(t,e){return h(h({},t.dump),Fl(e))},Jp={field:Yp,augment:Zp,get:Xp},Qp="placeholder",tm=Vt.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),em=function(t){return Ft(t,"uiType")},nm=function(t,e,n,r){return t.exists((function(t){return t!==n.owner}))?tm.single(!0,o(n)):jt(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+Ot(r)+"]\nNamespace: "+t.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(t){return t.replace()}))},rm=function(t,e,n,r){return em(n)&&n.uiType===Qp?nm(t,e,n,r):tm.single(!1,o(n))},im=function(t,e,n,r){var i=rm(t,e,n,r);return i.fold((function(i,o){var a=em(n)?o(e,n.config,n.validated):o(e),s=jt(a,"components").getOr([]),u=nt(s,(function(n){return im(t,e,n,r)}));return[h(h({},a),{components:u})]}),(function(t,r){if(em(n)){var i=r(e,n.config,n.validated),o=n.validated.preprocess.getOr(a);return o(i)}return r(e)}))},om=function(t,e,n,r){return nt(n,(function(n){return im(t,e,n,r)}))},am=function(t,e){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+t);return n=!0,e},a=function(){return e.fold((function(t,e){return t}),(function(t,e){return t}))};return{name:o(t),required:a,used:r,replace:i}},sm=function(t,e,n,r){var i=Dt(r,(function(t,e){return am(e,t)})),o=om(t,e,n,i);return At(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+t.getOr("none")+"\nComponents: "+JSON.stringify(e.components,null,2))})),o},um=tm.single,cm=tm.multiple,lm=o(Qp),fm=Vt.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),dm=zn("factory",{sketch:a}),hm=zn("schema",[]),pm=yn("name"),mm=We("pname","pname",ne((function(t){return"<alloy."+Ea(t.name)+">"})),ln()),gm=Gn("schema",(function(){return[An("preprocess")]})),vm=zn("defaults",o({})),bm=zn("overrides",o({})),ym=ze([dm,hm,pm,mm,vm,bm]),wm=ze([dm,hm,pm,vm,bm]),_m=ze([dm,hm,pm,mm,vm,bm]),xm=ze([dm,gm,pm,yn("unit"),mm,vm,bm]),Cm=function(t){return t.fold(_.some,_.none,_.some,_.some)},Sm=function(t){var e=function(t){return t.name};return t.fold(e,e,e,e)},km=function(t){return t.fold(a,a,a,a)},Mm=function(t,e){return function(n){var r=on("Converting part type",e,n);return t(r)}},Em=Mm(fm.required,ym),Om=Mm(fm.external,wm),Tm=Mm(fm.optional,_m),Am=Mm(fm.group,xm),Dm=o("entirety"),Nm=Object.freeze({__proto__:null,required:Em,external:Om,optional:Tm,group:Am,asNamedPart:Cm,name:Sm,asCommon:km,original:Dm}),Rm=function(t,e,n,r){return Gt(e.defaults(t,n,r),n,{uid:t.partUids[e.name]},e.overrides(t,n,r))},Pm=function(t,e,n){var r={},i={};return W(n,(function(t){t.fold((function(t){r[t.pname]=um(!0,(function(e,n,r){return t.factory.sketch(Rm(e,t,n,r))}))}),(function(t){var n=e.parts[t.name];i[t.name]=o(t.factory.sketch(Rm(e,t,n[Dm()]),n))}),(function(t){r[t.pname]=um(!1,(function(e,n,r){return t.factory.sketch(Rm(e,t,n,r))}))}),(function(t){r[t.pname]=cm(!0,(function(e,n,r){var i=e[t.name];return q(i,(function(n){return t.factory.sketch(Gt(t.defaults(e,n,r),n,t.overrides(e,n)))}))}))}))})),{internals:o(r),externals:o(i)}},Im=function(t,e){var n={};return W(e,(function(e){Cm(e).each((function(e){var r=Bm(t,e.pname);n[e.name]=function(n){var i=on("Part: "+e.name+" in "+t,ze(e.schema),n);return h(h({},r),{config:n,validated:i})}}))})),n},Bm=function(t,e){return{uiType:lm(),owner:t,name:e}},Lm=function(t,e,n){return{uiType:lm(),owner:t,name:e,config:n,validated:{}}},zm=function(t){return nt(t,(function(t){return t.fold(_.none,_.some,_.none,_.none).map((function(t){return En(t.name,t.schema.concat([Vc(Dm())]))})).toArray()}))},jm=function(t){return q(t,Sm)},Fm=function(t,e,n){return Pm(t,e,n)},$m=function(t,e,n){return sm(_.some(t),e,e.components,n)},Hm=function(t,e,n){var r=e.partUids[n];return t.getSystem().getByUid(r).toOptional()},Vm=function(t,e,n){return Hm(t,e,n).getOrDie("Could not find part: "+n)},Um=function(t,e,n){var r={},i=e.partUids,a=t.getSystem();return W(n,(function(t){r[t]=o(a.getByUid(i[t]))})),r},qm=function(t,e){var n=t.getSystem();return Dt(e.partUids,(function(t,e){return o(n.getByUid(t))}))},Wm=function(t){return Ot(t.partUids)},Km=function(t,e,n){var r={},i=e.partUids,a=t.getSystem();return W(n,(function(t){r[t]=o(a.getByUid(i[t]).getOrDie())})),r},Gm=function(t,e){var n=jm(e);return le(q(n,(function(e){return{key:e,value:t+"-"+e}})))},Ym=function(t){return We("partUids","partUids",re((function(e){return Gm(e.uid,t)})),ln())},Xm=Object.freeze({__proto__:null,generate:Im,generateOne:Lm,schemas:zm,names:jm,substitutes:Fm,components:$m,defaultUids:Gm,defaultUidsSchema:Ym,getAllParts:qm,getAllPartNames:Wm,getPart:Hm,getPartOrDie:Vm,getParts:Um,getPartsOrDie:Km}),Zm=function(t,e){var n=t.length>0?[En("parts",t)]:[];return n.concat([yn("uid"),zn("dom",{}),zn("components",[]),Vc("originalSpec"),zn("debug.sketcher",{})]).concat(e)},Jm=function(t,e,n,r,i){var o=Zm(r,i);return on(t+" [SpecSchema]",Le(o.concat(e)),n)},Qm=function(t,e,n,r){var i=ng(r),o=Jm(t,e,i,[],[]);return n(o,i)},tg=function(t,e,n,r,i){var o=ng(i),a=zm(n),s=Ym(n),u=Jm(t,e,o,a,[s]),c=Fm(t,u,n),l=$m(t,u,c.internals());return r(u,l,o,c.externals())},eg=function(t){return Ft(t,"uid")},ng=function(t){return eg(t)?t:h(h({},t),{uid:Ia("uid")})};function rg(t){return void 0!==t.uid}var ig,og=Le([yn("name"),yn("factory"),yn("configFields"),zn("apis",{}),zn("extraApis",{})]),ag=Le([yn("name"),yn("factory"),yn("configFields"),yn("partFields"),zn("apis",{}),zn("extraApis",{})]),sg=function(t){var e=on("Sketcher for "+t.name,og,t),n=function(t){return Qm(e.name,e.configFields,e.factory,t)},r=Dt(e.apis,Wa),i=Dt(e.extraApis,(function(t,e){return $a(t,e)}));return h(h({name:e.name,configFields:e.configFields,sketch:n},r),i)},ug=function(t){var e=on("Sketcher for "+t.name,ag,t),n=function(t){return tg(e.name,e.configFields,e.partFields,e.factory,t)},r=Im(e.name,e.partFields),i=Dt(e.apis,Wa),o=Dt(e.extraApis,(function(t,e){return $a(t,e)}));return h(h({name:e.name,partFields:e.partFields,configFields:e.configFields,sketch:n,parts:r},i),o)},cg=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},lg=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.isSome())return _.none();e.push(r.getOrDie())}return _.some(e)},fg=function(t,e,n){return t.isSome()&&e.isSome()?_.some(n(t.getOrDie(),e.getOrDie())):_.none()},dg=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?_.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):_.none()},hg=function(t,e){return void 0!==t&&null!==t?_.some(e(t)):_.none()},pg=function(t,e){return t?_.some(e):_.none()},mg=function(t){return"input"===Po(t)&&"radio"!==ma(t,"type")||"textarea"===Po(t)},gg=function(t,e,n){return e.find(t)},vg=Object.freeze({__proto__:null,getCurrent:gg}),bg=[yn("find")],yg=Hl({fields:bg,name:"composing",apis:vg}),wg=function(t,e,n,r){var i=Bd(t.element,"."+e.highlightClass);W(i,(function(n){H(r,(function(t){return t.element===n}))||(Ts(n,e.highlightClass),t.getSystem().getByDom(n).each((function(n){e.onDehighlight(t,n),co(n,uo())})))}))},_g=function(t,e,n){return wg(t,e,n,[])},xg=function(t,e,n,r){Og(t,e,n,r)&&(Ts(r.element,e.highlightClass),e.onDehighlight(t,r),co(r,uo()))},Cg=function(t,e,n,r){wg(t,e,n,[r]),Og(t,e,n,r)||(Es(r.element,e.highlightClass),e.onHighlight(t,r),co(r,so()))},Sg=function(t,e,n){Dg(t,e).each((function(r){Cg(t,e,n,r)}))},kg=function(t,e,n){Ng(t,e).each((function(r){Cg(t,e,n,r)}))},Mg=function(t,e,n,r){Ag(t,e,n,r).fold((function(t){throw new Error(t)}),(function(r){Cg(t,e,n,r)}))},Eg=function(t,e,n,r){var i=Bg(t,e),o=Q(i,r);o.each((function(r){Cg(t,e,n,r)}))},Og=function(t,e,n,r){return As(r.element,e.highlightClass)},Tg=function(t,e,n){return pc(t.element,"."+e.highlightClass).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Ag=function(t,e,n,r){var i=Bd(t.element,"."+e.itemClass);return _.from(i[r]).fold((function(){return gt.error("No element found with index "+r)}),t.getSystem().getByDom)},Dg=function(t,e,n){return pc(t.element,"."+e.itemClass).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Ng=function(t,e,n){var r=Bd(t.element,"."+e.itemClass),i=r.length>0?_.some(r[r.length-1]):_.none();return i.bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Rg=function(t,e,n,r){var i=Bd(t.element,"."+e.itemClass),o=tt(i,(function(t){return As(t,e.highlightClass)}));return o.bind((function(e){var n=gf(e,r,0,i.length-1);return t.getSystem().getByDom(i[n]).toOptional()}))},Pg=function(t,e,n){return Rg(t,e,n,-1)},Ig=function(t,e,n){return Rg(t,e,n,1)},Bg=function(t,e,n){var r=Bd(t.element,"."+e.itemClass);return cg(q(r,(function(e){return t.getSystem().getByDom(e).toOptional()})))},Lg=Object.freeze({__proto__:null,dehighlightAll:_g,dehighlight:xg,highlight:Cg,highlightFirst:Sg,highlightLast:kg,highlightAt:Mg,highlightBy:Eg,isHighlighted:Og,getHighlighted:Tg,getFirst:Dg,getLast:Ng,getPrevious:Pg,getNext:Ig,getCandidates:Bg}),zg=[yn("highlightClass"),yn("itemClass"),zc("onHighlight"),zc("onDehighlight")],jg=Hl({fields:zg,name:"highlighting",apis:Lg}),Fg=[8],$g=[9],Hg=[13],Vg=[27],Ug=[32],qg=[37],Wg=[38],Kg=[39],Gg=[40],Yg=function(t,e,n){var r=it(t.slice(0,e)),i=it(t.slice(e+1));return Q(r.concat(i),n)},Xg=function(t,e,n){var r=it(t.slice(0,e));return Q(r,n)},Zg=function(t,e,n){var r=t.slice(0,e),i=t.slice(e+1);return Q(i.concat(r),n)},Jg=function(t,e,n){var r=t.slice(e+1);return Q(r,n)},Qg=function(t){return function(e){var n=e.raw;return $(t,n.which)}},tv=function(t){return function(e){return rt(t,(function(t){return t(e)}))}},ev=function(t){var e=t.raw;return!0===e.shiftKey},nv=function(t){var e=t.raw;return!0===e.ctrlKey},rv=u(ev),iv=function(t,e){return{matches:t,classification:e}},ov=function(t,e){var n=Q(t,(function(t){return t.matches(e)}));return n.map((function(t){return t.classification}))},av=function(t,e,n){var r=e.exists((function(t){return n.exists((function(e){return ii(e,t)}))}));r||lo(t,ro(),{prevFocus:e,newFocus:n})},sv=function(){var t=function(t){return tf(t.element)},e=function(e,n){var r=t(e);e.getSystem().triggerFocus(n,e.element);var i=t(e);av(e,r,i)};return{get:t,set:e}},uv=function(){var t=function(t){return jg.getHighlighted(t).map((function(t){return t.element}))},n=function(n,r){var i=t(n);n.getSystem().getByDom(r).fold(e,(function(t){jg.highlight(n,t)}));var o=t(n);av(n,i,o)};return{get:t,set:n}};(function(t){t["OnFocusMode"]="onFocus",t["OnEnterOrSpaceMode"]="onEnterOrSpace",t["OnApiMode"]="onApi"})(ig||(ig={}));var cv=function(t,e,n,r,i){var o=function(){return t.concat([zn("focusManager",sv()),jn("focusInside","onFocus",Qe((function(t){return $(["onFocus","onEnterOrSpace","onApi"],t)?gt.value(t):gt.error("Invalid value for focusInside")}))),Hc("handler",u),Hc("state",e),Hc("sendFocusIn",i)])},a=function(t,e,n,r,i){var o=n(t,e,r,i);return ov(o,e.event).bind((function(n){return n(t,e,r,i)}))},s=function(t,e){var o=t.focusInside!==ig.OnFocusMode?_.none():i(t).map((function(n){return wo(zi(),(function(r,i){n(r,t,e),i.stop()}))})),s=function(n,r){var o=Qg(Ug.concat(Hg))(r.event);t.focusInside===ig.OnEnterOrSpaceMode&&o&&fi(n,r)&&i(t).each((function(i){i(n,t,e),r.stop()}))},u=[wo(Ti(),(function(r,i){a(r,i,n,t,e).fold((function(){s(r,i)}),(function(t){i.stop()}))})),wo(Ai(),(function(n,i){a(n,i,r,t,e).each((function(t){i.stop()}))}))];return go(o.toArray().concat(u))},u={schema:o,processKey:a,toEvents:s};return u},lv=function(t){var e=[An("onEscape"),An("onEnter"),zn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),zn("firstTabstop",0),zn("useTabstopAt",f),An("visibilitySelector")].concat([t]),n=function(t,e){var n=t.visibilitySelector.bind((function(t){return mc(e,t)})).getOr(e);return Cu(n)>0},r=function(t,e){var r=Bd(t.element,e.selector),i=Y(r,(function(t){return n(e,t)}));return _.from(i[e.firstTabstop])},i=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},a=function(t,e){return n(t,e)&&t.useTabstopAt(e)},u=function(t,e,n){r(t,e).each((function(n){e.focusManager.set(t,n)}))},c=function(t,e,n,r,i){return i(e,n,(function(t){return a(r,t)})).fold((function(){return r.cyclic?_.some(!0):_.none()}),(function(e){return r.focusManager.set(t,e),_.some(!0)}))},l=function(t,e,n,r){var o=Bd(t.element,n.selector);return i(t,n).bind((function(e){var i=tt(o,s(ii,e));return i.bind((function(e){return c(t,o,e,n,r)}))}))},d=function(t,e,n){var r=n.cyclic?Yg:Xg;return l(t,e,n,r)},h=function(t,e,n){var r=n.cyclic?Zg:Jg;return l(t,e,n,r)},p=function(t,e,n){return n.onEnter.bind((function(n){return n(t,e)}))},m=function(t,e,n){return n.onEscape.bind((function(n){return n(t,e)}))},g=o([iv(tv([ev,Qg($g)]),d),iv(Qg($g),h),iv(Qg(Vg),m),iv(tv([rv,Qg(Hg)]),p)]),v=o([]);return cv(e,Ka.init,g,v,(function(){return _.some(u)}))},fv=lv(Gn("cyclic",l)),dv=lv(Gn("cyclic",f)),hv=function(t,e,n){return ho(t,n,Hi()),_.some(!0)},pv=function(t,e,n){var r=mg(n)&&Qg(Ug)(e.event);return r?_.none():hv(t,e,n)},mv=function(t,e){return _.some(!0)},gv=[zn("execute",pv),zn("useSpace",!1),zn("useEnter",!0),zn("useControlEnter",!1),zn("useDown",!1)],vv=function(t,e,n){return n.execute(t,e,t.element)},bv=function(t,e,n,r){var i=n.useSpace&&!mg(t.element)?Ug:[],o=n.useEnter?Hg:[],a=n.useDown?Gg:[],s=i.concat(o).concat(a);return[iv(Qg(s),vv)].concat(n.useControlEnter?[iv(tv([nv,Qg(Hg)]),vv)]:[])},yv=function(t,e,n,r){return n.useSpace&&!mg(t.element)?[iv(Qg(Ug),mv)]:[]},wv=cv(gv,Ka.init,bv,yv,(function(){return _.none()})),_v=function(){var t=Yn(_.none()),e=function(e,n){t.set(_.some({numRows:e,numColumns:n}))},n=function(){return t.get().map((function(t){return t.numRows}))},r=function(){return t.get().map((function(t){return t.numColumns}))};return Ga({readState:function(){return t.get().map((function(t){return{numRows:String(t.numRows),numColumns:String(t.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:e,getNumRows:n,getNumColumns:r})},xv=function(t){return t.state(t)},Cv=Object.freeze({__proto__:null,flatgrid:_v,init:xv}),Sv=function(t){return function(e,n,r,i){var o=t(e.element);return Ov(o,e,n,r,i)}},kv=function(t,e){var n=zf(t,e);return Sv(n)},Mv=function(t,e){var n=zf(e,t);return Sv(n)},Ev=function(t){return function(e,n,r,i){return Ov(t,e,n,r,i)}},Ov=function(t,e,n,r,i){var o=r.focusManager.get(e).bind((function(n){return t(e.element,n,r,i)}));return o.map((function(t){return r.focusManager.set(e,t),!0}))},Tv=Ev,Av=Ev,Dv=Ev,Nv=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Rv=function(t){return!Nv(t.dom)},Pv=function(t,e){return tt(t,e).map((function(e){return{index:e,candidates:t}}))},Iv=function(t,e,n){var r=function(t){return ii(t,e)},i=Bd(t,n),o=Y(i,Rv);return Pv(o,r)},Bv=function(t,e){return tt(t,(function(t){return ii(e,t)}))},Lv=function(t,e,n,r){var i=Math.floor(e/n),o=e%n;return r(i,o).bind((function(e){var r=e.row*n+e.column;return r>=0&&r<t.length?_.some(t[r]):_.none()}))},zv=function(t,e,n,r,i){return Lv(t,e,r,(function(e,o){var a=e===n-1,s=a?t.length-e*r:r,u=gf(o,i,0,s-1);return _.some({row:e,column:u})}))},jv=function(t,e,n,r,i){return Lv(t,e,r,(function(e,o){var a=gf(e,i,0,n-1),s=a===n-1,u=s?t.length-a*r:r,c=vf(o,0,u-1);return _.some({row:a,column:c})}))},Fv=function(t,e,n,r){return zv(t,e,n,r,1)},$v=function(t,e,n,r){return zv(t,e,n,r,-1)},Hv=function(t,e,n,r){return jv(t,e,n,r,-1)},Vv=function(t,e,n,r){return jv(t,e,n,r,1)},Uv=[yn("selector"),zn("execute",pv),jc("onEscape"),zn("captureTab",!1),Uc()],qv=function(t,e,n){pc(t.element,e.selector).each((function(n){e.focusManager.set(t,n)}))},Wv=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},Kv=function(t,e,n,r){return Wv(t,n).bind((function(r){return n.execute(t,e,r)}))},Gv=function(t){return function(e,n,r,i){return Iv(e,n,r.selector).bind((function(e){return t(e.candidates,e.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},Yv=function(t,e,n){return n.captureTab?_.some(!0):_.none()},Xv=function(t,e,n){return n.onEscape(t,e)},Zv=Gv($v),Jv=Gv(Fv),Qv=Gv(Hv),tb=Gv(Vv),eb=o([iv(Qg(qg),kv(Zv,Jv)),iv(Qg(Kg),Mv(Zv,Jv)),iv(Qg(Wg),Tv(Qv)),iv(Qg(Gg),Av(tb)),iv(tv([ev,Qg($g)]),Yv),iv(tv([rv,Qg($g)]),Yv),iv(Qg(Vg),Xv),iv(Qg(Ug.concat(Hg)),Kv)]),nb=o([iv(Qg(Ug),mv)]),rb=cv(Uv,_v,eb,nb,(function(){return _.some(qv)})),ib=function(t,e,n,r){var i=function(t){return"button"===Po(t)&&"disabled"===ma(t,"disabled")},o=function(t,e,n){var a=gf(e,r,0,n.length-1);return a===t?_.none():i(n[a])?o(t,a,n):_.from(n[a])};return Iv(t,n,e).bind((function(t){var e=t.index,n=t.candidates;return o(e,e,n)}))},ob=[yn("selector"),zn("getInitial",_.none),zn("execute",pv),jc("onEscape"),zn("executeOnMove",!1),zn("allowVertical",!0)],ab=function(t,e){return e.focusManager.get(t).bind((function(t){return mc(t,e.selector)}))},sb=function(t,e,n){return ab(t,n).bind((function(r){return n.execute(t,e,r)}))},ub=function(t,e,n){e.getInitial(t).orThunk((function(){return pc(t.element,e.selector)})).each((function(n){e.focusManager.set(t,n)}))},cb=function(t,e,n){return ib(t,n.selector,e,-1)},lb=function(t,e,n){return ib(t,n.selector,e,1)},fb=function(t){return function(e,n,r,i){return t(e,n,r,i).bind((function(){return r.executeOnMove?sb(e,n,r):_.some(!0)}))}},db=function(t,e,n){return n.onEscape(t,e)},hb=function(t,e,n,r){var i=qg.concat(n.allowVertical?Wg:[]),o=Kg.concat(n.allowVertical?Gg:[]);return[iv(Qg(i),fb(kv(cb,lb))),iv(Qg(o),fb(Mv(cb,lb))),iv(Qg(Hg),sb),iv(Qg(Ug),sb),iv(Qg(Vg),db)]},pb=o([iv(Qg(Ug),mv)]),mb=cv(ob,Ka.init,hb,pb,(function(){return _.some(ub)})),gb=function(t,e,n){return _.from(t[e]).bind((function(t){return _.from(t[n]).map((function(t){return{rowIndex:e,columnIndex:n,cell:t}}))}))},vb=function(t,e,n,r){var i=t[e],o=i.length,a=gf(n,r,0,o-1);return gb(t,e,a)},bb=function(t,e,n,r){var i=gf(n,r,0,t.length-1),o=t[i].length,a=vf(e,0,o-1);return gb(t,i,a)},yb=function(t,e,n,r){var i=t[e],o=i.length,a=vf(n+r,0,o-1);return gb(t,e,a)},wb=function(t,e,n,r){var i=vf(n+r,0,t.length-1),o=t[i].length,a=vf(e,0,o-1);return gb(t,i,a)},_b=function(t,e,n){return vb(t,e,n,1)},xb=function(t,e,n){return vb(t,e,n,-1)},Cb=function(t,e,n){return bb(t,n,e,-1)},Sb=function(t,e,n){return bb(t,n,e,1)},kb=function(t,e,n){return yb(t,e,n,-1)},Mb=function(t,e,n){return yb(t,e,n,1)},Eb=function(t,e,n){return wb(t,n,e,-1)},Ob=function(t,e,n){return wb(t,n,e,1)},Tb=[En("selectors",[yn("row"),yn("cell")]),zn("cycles",!0),zn("previousSelector",_.none),zn("execute",pv)],Ab=function(t,e,n){var r=e.previousSelector(t).orThunk((function(){var n=e.selectors;return pc(t.element,n.cell)}));r.each((function(n){e.focusManager.set(t,n)}))},Db=function(t,e,n){return tf(t.element).bind((function(r){return n.execute(t,e,r)}))},Nb=function(t,e){return q(t,(function(t){return Bd(t,e.selectors.cell)}))},Rb=function(t,e){return function(n,r,i){var o=i.cycles?t:e;return mc(r,i.selectors.row).bind((function(t){var e=Bd(t,i.selectors.cell);return Bv(e,r).bind((function(e){var r=Bd(n,i.selectors.row);return Bv(r,t).bind((function(t){var n=Nb(r,i);return o(n,t,e).map((function(t){return t.cell}))}))}))}))}},Pb=Rb(xb,kb),Ib=Rb(_b,Mb),Bb=Rb(Cb,Eb),Lb=Rb(Sb,Ob),zb=o([iv(Qg(qg),kv(Pb,Ib)),iv(Qg(Kg),Mv(Pb,Ib)),iv(Qg(Wg),Tv(Bb)),iv(Qg(Gg),Av(Lb)),iv(Qg(Ug.concat(Hg)),Db)]),jb=o([iv(Qg(Ug),mv)]),Fb=cv(Tb,Ka.init,zb,jb,(function(){return _.some(Ab)})),$b=[yn("selector"),zn("execute",pv),zn("moveOnTab",!1)],Hb=function(t,e,n){return n.focusManager.get(t).bind((function(r){return n.execute(t,e,r)}))},Vb=function(t,e,n){pc(t.element,e.selector).each((function(n){e.focusManager.set(t,n)}))},Ub=function(t,e,n){return ib(t,n.selector,e,-1)},qb=function(t,e,n){return ib(t,n.selector,e,1)},Wb=function(t,e,n,r){return n.moveOnTab?Dv(Ub)(t,e,n,r):_.none()},Kb=function(t,e,n,r){return n.moveOnTab?Dv(qb)(t,e,n,r):_.none()},Gb=o([iv(Qg(Wg),Dv(Ub)),iv(Qg(Gg),Dv(qb)),iv(tv([ev,Qg($g)]),Wb),iv(tv([rv,Qg($g)]),Kb),iv(Qg(Hg),Hb),iv(Qg(Ug),Hb)]),Yb=o([iv(Qg(Ug),mv)]),Xb=cv($b,Ka.init,Gb,Yb,(function(){return _.some(Vb)})),Zb=[jc("onSpace"),jc("onEnter"),jc("onShiftEnter"),jc("onLeft"),jc("onRight"),jc("onTab"),jc("onShiftTab"),jc("onUp"),jc("onDown"),jc("onEscape"),zn("stopSpaceKeyup",!1),An("focusIn")],Jb=function(t,e,n){return[iv(Qg(Ug),n.onSpace),iv(tv([rv,Qg(Hg)]),n.onEnter),iv(tv([ev,Qg(Hg)]),n.onShiftEnter),iv(tv([ev,Qg($g)]),n.onShiftTab),iv(tv([rv,Qg($g)]),n.onTab),iv(Qg(Wg),n.onUp),iv(Qg(Gg),n.onDown),iv(Qg(qg),n.onLeft),iv(Qg(Kg),n.onRight),iv(Qg(Ug),n.onSpace),iv(Qg(Vg),n.onEscape)]},Qb=function(t,e,n){return n.stopSpaceKeyup?[iv(Qg(Ug),mv)]:[]},ty=cv(Zb,Ka.init,Jb,Qb,(function(t){return t.focusIn})),ey=fv.schema(),ny=dv.schema(),ry=mb.schema(),iy=rb.schema(),oy=Fb.schema(),ay=wv.schema(),sy=Xb.schema(),uy=ty.schema(),cy=Object.freeze({__proto__:null,acyclic:ey,cyclic:ny,flow:ry,flatgrid:iy,matrix:oy,execution:ay,menu:sy,special:uy}),ly=function(t){return $t(t,"setGridSize")},fy=Ul({branchKey:"mode",branches:cy,name:"keying",active:{events:function(t,e){var n=t.handler;return n.toEvents(t,e)}},apis:{focusIn:function(t,e,n){e.sendFocusIn(e).fold((function(){t.getSystem().triggerFocus(t.element,t.element)}),(function(r){r(t,e,n)}))},setGridSize:function(t,e,n,r,i){ly(n)?n.setGridSize(r,i):console.error("Layout does not support setGridSize")}},state:Cv}),dy=function(t,e,n,r){ef((function(){var e=q(r,t.getSystem().build);Lh(t,e)}),t.element)},hy=function(t,e,n,r){var i=t.getSystem().build(r);jh(t,i,n)},py=function(t,e,n,r){hy(t,e,ea,r)},my=function(t,e,n,r){hy(t,e,ta,r)},gy=function(t,e,n,r){var i=vy(t),o=Q(i,(function(t){return ii(r.element,t.element)}));o.each($h)},vy=function(t,e){return t.components()},by=function(t,e,n,r,i){var o=vy(t);return _.from(o[r]).map((function(o){return gy(t,e,n,o),i.each((function(n){hy(t,e,(function(t,e){na(t,e,r)}),n)})),o}))},yy=function(t,e,n,r,i){var o=vy(t);return tt(o,r).bind((function(r){return by(t,e,n,r,i)}))},wy=Object.freeze({__proto__:null,append:py,prepend:my,remove:gy,replaceAt:by,replaceBy:yy,set:dy,contents:vy}),_y=Hl({fields:[],name:"replacing",apis:wy}),xy=function(t,e){var n=go(e);return Hl({fields:[yn("enabled")],name:t,active:{events:o(n)}})},Cy=function(t,e){var n=xy(t,e);return{key:t,value:{config:{},me:n,configAsRaw:o({}),initialConfig:{},state:Ka}}},Sy=function(t,e){e.ignore||(Xl(t.element),e.onFocus(t))},ky=function(t,e){e.ignore||Zl(t.element)},My=function(t){return Jl(t.element)},Ey=Object.freeze({__proto__:null,focus:Sy,blur:ky,isFocused:My}),Oy=function(t,e){var n=e.ignore?{}:{attributes:{tabindex:"-1"}};return Qa(n)},Ty=function(t){return go([wo(zi(),(function(e,n){Sy(e,t),n.stop()}))].concat(t.stopMousedown?[wo(xi(),(function(t,e){e.event.prevent()}))]:[]))},Ay=Object.freeze({__proto__:null,exhibit:Oy,events:Ty}),Dy=[zc("onFocus"),zn("stopMousedown",!1),zn("ignore",!1)],Ny=Hl({fields:Dy,name:"focusing",active:Ay,apis:Ey}),Ry=function(t){var e=function(){var e=Yn(t),n=function(){return e.get()},r=function(t){return e.set(t)},i=function(){return e.set(t)},o=function(){return e.get()};return{get:n,set:r,clear:i,readState:o}};return{init:e}},Py=function(t,e,n){var r=e.aria;r.update(t,r,n.get())},Iy=function(t,e,n){e.toggleClass.each((function(e){n.get()?Es(t.element,e):Ts(t.element,e)}))},By=function(t,e,n){jy(t,e,n,!n.get())},Ly=function(t,e,n){n.set(!0),Iy(t,e,n),Py(t,e,n)},zy=function(t,e,n){n.set(!1),Iy(t,e,n),Py(t,e,n)},jy=function(t,e,n,r){var i=r?Ly:zy;i(t,e,n)},Fy=function(t,e,n){return n.get()},$y=function(t,e,n){jy(t,e,n,e.selected)},Hy=Object.freeze({__proto__:null,onLoad:$y,toggle:By,isOn:Fy,on:Ly,off:zy,set:jy}),Vy=function(){return Qa({})},Uy=function(t,e){var n=Rl(t,e,By),r=Pl(t,e,$y);return go(et([t.toggleOnExecute?[n]:[],[r]]))},qy=Object.freeze({__proto__:null,exhibit:Vy,events:Uy}),Wy=function(t,e,n){ha(t.element,"aria-pressed",n),e.syncWithExpanded&&Yy(t,e,n)},Ky=function(t,e,n){ha(t.element,"aria-selected",n)},Gy=function(t,e,n){ha(t.element,"aria-checked",n)},Yy=function(t,e,n){ha(t.element,"aria-expanded",n)},Xy=[zn("selected",!1),An("toggleClass"),zn("toggleOnExecute",!0),jn("aria",{mode:"none"},un("mode",{pressed:[zn("syncWithExpanded",!1),Hc("update",Wy)],checked:[Hc("update",Gy)],expanded:[Hc("update",Yy)],selected:[Hc("update",Ky)],none:[Hc("update",e)]}))],Zy=Hl({fields:Xy,name:"toggling",active:qy,apis:Hy,state:Ry(!1)}),Jy=function(){var t=function(t,e){e.stop(),fo(t)};return[wo(Ri(),t),wo(Ui(),t),Eo(bi()),Eo(xi())]},Qy=function(t){var e=function(t){return Ro((function(e,n){t(e),n.stop()}))};return go(et([t.map(e).toArray(),Jy()]))},tw="alloy.item-hover",ew="alloy.item-focus",nw=function(t){(tf(t.element).isNone()||Ny.isFocused(t))&&(Ny.isFocused(t)||Ny.focus(t),lo(t,tw,{item:t}))},rw=function(t){lo(t,ew,{item:t})},iw=o(tw),ow=o(ew),aw=function(t){return{dom:t.dom,domModification:h(h({},t.domModification),{attributes:h(h(h({role:t.toggling.isSome()?"menuitemcheckbox":"menuitem"},t.domModification.attributes),{"aria-haspopup":t.hasSubmenu}),t.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Jp.augment(t.itemBehaviours,[t.toggling.fold(Zy.revoke,(function(t){return Zy.config(h({aria:{mode:"checked"}},t))})),Ny.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:function(t){rw(t)}}),fy.config({mode:"execution"}),Gp.config({store:{mode:"memory",initialValue:t.data}}),Cy("item-type-events",m(Jy(),[wo(Mi(),nw),wo(Vi(),Ny.focus)]))]),components:t.components,eventOrder:t.eventOrder}},sw=[yn("data"),yn("components"),yn("dom"),zn("hasSubmenu",!1),An("toggling"),Jp.field("itemBehaviours",[Zy,Ny,fy,Gp]),zn("ignoreFocus",!1),zn("domModification",{}),Hc("builder",aw),zn("eventOrder",{})],uw=function(t){return{dom:t.dom,components:t.components,events:go([Oo(Vi())])}},cw=[yn("dom"),yn("components"),Hc("builder",uw)],lw=function(){return"item-widget"},fw=o([Em({name:"widget",overrides:function(t){return{behaviours:Fl([Gp.config({store:{mode:"manual",getValue:function(e){return t.data},setValue:function(){}}})])}}})]),dw=function(t){var e=Fm(lw(),t,fw()),n=$m(lw(),t,e.internals()),r=function(e){return Hm(e,t,"widget").map((function(t){return fy.focusIn(t),t}))},i=function(e,n){return mg(n.event.target)?_.none():function(){return t.autofocus?(n.setSource(e.element),_.none()):_.none()}()};return{dom:t.dom,components:n,domModification:t.domModification,events:go([Ro((function(t,e){r(t).each((function(t){e.stop()}))})),wo(Mi(),nw),wo(Vi(),(function(e,n){t.autofocus?r(e):Ny.focus(e)}))]),behaviours:Jp.augment(t.widgetBehaviours,[Gp.config({store:{mode:"memory",initialValue:t.data}}),Ny.config({ignore:t.ignoreFocus,onFocus:function(t){rw(t)}}),fy.config({mode:"special",focusIn:t.autofocus?function(t){r(t)}:ql(),onLeft:i,onRight:i,onEscape:function(e,n){return Ny.isFocused(e)||t.autofocus?t.autofocus?(n.setSource(e.element),_.none()):_.none():(Ny.focus(e),_.some(!0))}})])}},hw=[yn("uid"),yn("data"),yn("components"),yn("dom"),zn("autofocus",!1),zn("ignoreFocus",!1),Jp.field("widgetBehaviours",[Gp,Ny,fy]),zn("domModification",{}),Ym(fw()),Hc("builder",dw)],pw=un("type",{widget:hw,item:sw,separator:cw}),mw=function(t,e){return{mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:e.initSize.numColumns,numRows:e.initSize.numRows},focusManager:t.focusManager}},gw=function(t,e){return{mode:"matrix",selectors:{row:e.rowSelector,cell:"."+t.markers.item},focusManager:t.focusManager}},vw=function(t,e){return{mode:"menu",selector:"."+t.markers.item,moveOnTab:e.moveOnTab,focusManager:t.focusManager}},bw=o([Am({factory:{sketch:function(t){var e=on("menu.spec item",pw,t);return e.builder(e)}},name:"items",unit:"item",defaults:function(t,e){return e.hasOwnProperty("uid")?e:h(h({},e),{uid:Ia("item")})},overrides:function(t,e){return{type:e.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}}}})]),yw=o([yn("value"),yn("items"),yn("dom"),yn("components"),zn("eventOrder",{}),Yp("menuBehaviours",[jg,Gp,yg,fy]),jn("movement",{mode:"menu",moveOnTab:!0},un("mode",{grid:[Uc(),Hc("config",mw)],matrix:[Hc("config",gw),yn("rowSelector")],menu:[zn("moveOnTab",!0),Hc("config",vw)]})),Pc(),zn("fakeFocus",!1),zn("focusManager",sv()),zc("onHighlight")]),ww=o("alloy.menu-focus"),_w=function(t,e,n,r){return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Zp(t.menuBehaviours,[jg.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight}),Gp.config({store:{mode:"memory",initialValue:t.value}}),yg.config({find:_.some}),fy.config(t.movement.config(t,t.movement))]),events:go([wo(ow(),(function(t,e){var n=e.event;t.getSystem().getByDom(n.target).each((function(n){jg.highlight(t,n),e.stop(),lo(t,ww(),{menu:t,item:n})}))})),wo(iw(),(function(t,e){var n=e.event.item;jg.highlight(t,n)}))]),components:e,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}},xw=ug({name:"Menu",configFields:yw(),partFields:bw(),factory:_w}),Cw=function(t){return Nt(t,(function(t,e){return{k:t,v:e}}))},Sw=function(t,e,n,r){return jt(n,r).bind((function(r){return jt(t,r).bind((function(r){var i=Sw(t,e,n,r);return _.some([r].concat(i))}))})).getOr([])},kw=function(t,e){var n={};At(t,(function(t,e){W(t,(function(t){n[t]=e}))}));var r=e,i=Cw(e),o=Dt(i,(function(t,e){return[e].concat(Sw(n,r,i,e))}));return Dt(n,(function(t){return jt(o,t).getOr([t])}))},Mw=function(){var t=Yn({}),e=Yn({}),n=Yn({}),r=Yn(_.none()),i=Yn({}),o=function(){t.set({}),e.set({}),n.set({}),r.set(_.none())},a=function(){return r.get().isNone()},s=function(t,n){var r;e.set(h(h({},e.get()),(r={},r[t]={type:"prepared",menu:n},r)))},u=function(o,a,s,u){r.set(_.some(o)),t.set(s),e.set(a),i.set(u);var c=kw(u,s);n.set(c)},c=function(e){return Lt(t.get(),(function(t,n){return t===e}))},l=function(t,e,n){return g(t).bind((function(r){return c(t).bind((function(t){return e(t).map((function(t){return{triggeredMenu:r,triggeringItem:t,triggeringPath:n}}))}))}))},f=function(t,e){var i=Y(b(t).toArray(),(function(t){return g(t).isSome()}));return jt(n.get(),t).bind((function(t){var n=it(i.concat(t)),o=nt(n,(function(t,i){return l(t,e,n.slice(0,i+1)).fold((function(){return r.get().is(t)?[]:[_.none()]}),(function(t){return[_.some(t)]}))}));return lg(o)}))},d=function(e){return jt(t.get(),e).map((function(t){var r=jt(n.get(),e).getOr([]);return[t].concat(r)}))},p=function(t){return jt(n.get(),t).bind((function(t){return t.length>1?_.some(t.slice(1)):_.none()}))},m=function(t){return jt(n.get(),t)},g=function(t){return v(t).bind(Ew)},v=function(t){return jt(e.get(),t)},b=function(e){return jt(t.get(),e)},y=function(t){var e=i.get();return ot(Ot(e),t)},w=function(){return r.get().bind(g)},x=function(){return e.get()};return{setMenuBuilt:s,setContents:u,expand:d,refresh:m,collapse:p,lookupMenu:v,lookupItem:b,otherMenus:y,getPrimary:w,getMenus:x,clear:o,isClear:a,getTriggeringPath:f}},Ew=function(t){return"prepared"===t.type?_.some(t.menu):_.none()},Ow={init:Mw,extractPreparedMenu:Ew},Tw=function(t,e){var n,r=Yn(_.none()),i=function(e,n,r){return Dt(r,(function(r,i){var o=function(){return xw.sketch(h(h({},r),{value:i,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:t.onHighlight,focusManager:t.fakeFocus?uv():sv()}))};return i===n?{type:"prepared",menu:e.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},o=Ow.init(),a=function(e){var n=i(e,t.data.primary,t.data.menus),r=c();return o.setContents(t.data.primary,n,t.data.expansions,r),o.getPrimary()},s=function(t){return Gp.getValue(t).value},u=function(t,e,n){return dt(e,(function(t){if(!t.getSystem().isConnected())return _.none();var e=jg.getCandidates(t);return Q(e,(function(t){return s(t)===n}))}))},c=function(e){return Dt(t.data.menus,(function(t,e){return nt(t.items,(function(t){return"separator"===t.type?[]:[t.data.value]}))}))},l=function(t,e){jg.highlight(t,e),jg.getHighlighted(e).orThunk((function(){return jg.getFirst(e)})).each((function(e){ho(t,e.element,Vi())}))},f=function(t,e){return cg(q(e,(function(e){return t.lookupMenu(e).bind((function(t){return"prepared"===t.type?_.some(t.menu):_.none()}))})))},d=function(e,n,r){var i=f(n,n.otherMenus(r));W(i,(function(n){Ns(n.element,[t.markers.backgroundMenu]),t.stayInDom||_y.remove(e,n)}))},p=function(e){return r.get().getOrThunk((function(){var n={},i=Bd(e.element,"."+t.markers.item),o=Y(i,(function(t){return"true"===ma(t,"aria-haspopup")}));return W(o,(function(t){e.getSystem().getByDom(t).each((function(t){var e=s(t);n[e]=t}))})),r.set(_.some(n)),n}))},m=function(t,e){var n=p(t);At(n,(function(t,n){var r=$(e,n);ha(t.element,"aria-expanded",r)}))},g=function(e,n,r){return _.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return _.none();var o=i.menu,a=f(n,r.slice(1));return W(a,(function(e){Es(e.element,t.markers.backgroundMenu)})),Us(o.element)||_y.append(e,wu(o)),Ns(o.element,[t.markers.backgroundMenu]),l(e,o),d(e,n,r),_.some(o)}))}))};(function(t){t[t["HighlightSubmenu"]=0]="HighlightSubmenu",t[t["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(t,e,n){if("notbuilt"===n.type){var r=t.getSystem().build(n.nbMenu());return o.setMenuBuilt(e,r),r}return n.menu},b=function(e,r,i){void 0===i&&(i=n.HighlightSubmenu);var a=s(r);return o.expand(a).bind((function(a){return m(e,a),_.from(a[0]).bind((function(s){return o.lookupMenu(s).bind((function(u){var c=v(e,s,u);return Us(c.element)||_y.append(e,wu(c)),t.onOpenSubmenu(e,r,c,it(a)),i===n.HighlightSubmenu?(jg.highlightFirst(c),g(e,o,a)):(jg.dehighlightAll(c),_.some(r))}))}))}))},y=function(e,n){var r=s(n);return o.collapse(r).bind((function(r){return m(e,r),g(e,o,r).map((function(r){return t.onCollapseMenu(e,n,r),r}))}))},w=function(t,e){var n=s(e);return o.refresh(n).bind((function(e){return m(t,e),g(t,o,e)}))},x=function(t,e){return mg(e.element)?_.none():b(t,e,n.HighlightSubmenu)},C=function(t,e){return mg(e.element)?_.none():y(t,e)},S=function(e,n){return y(e,n).orThunk((function(){return t.onEscape(e,n).map((function(){return e}))}))},k=function(e){return function(n,r){return mc(r.getSource(),"."+t.markers.item).bind((function(t){return n.getSystem().getByDom(t).toOptional().bind((function(t){return e(n,t).map((function(){return!0}))}))}))}},M=go([wo(ww(),(function(t,e){var n=e.event.item;o.lookupItem(s(n)).each((function(){var n=e.event.menu;jg.highlight(t,n);var r=s(e.event.item);o.refresh(r).each((function(e){return d(t,o,e)}))}))})),Ro((function(e,r){var i=r.event.target;e.getSystem().getByDom(i).each((function(r){var i=s(r);0===i.indexOf("collapse-item")&&y(e,r),b(e,r,n.HighlightSubmenu).fold((function(){t.onExecute(e,r)}),(function(){}))}))})),Ao((function(e,n){a(e).each((function(n){_y.append(e,wu(n)),t.onOpenMenu(e,n),t.highlightImmediately&&l(e,n)}))}))].concat(t.navigateOnHover?[wo(iw(),(function(e,r){var i=r.event.item;w(e,i),b(e,i,n.HighlightParent),t.onHover(e,i)}))]:[])),E=function(t){return jg.getHighlighted(t).bind(jg.getHighlighted)},O=function(t){E(t).each((function(e){y(t,e)}))},T=function(t){o.getPrimary().each((function(e){l(t,e)}))},A=function(t){return _.from(t.components()[0]).filter((function(t){return"menu"===ma(t.element,"role")}))},D=function(e){var n=o.getPrimary().bind((function(t){return E(e).bind((function(t){var n=s(t),r=zt(o.getMenus()),i=cg(q(r,Ow.extractPreparedMenu));return o.getTriggeringPath(n,(function(t){return u(e,i,t)}))})).map((function(e){return{primary:t,triggeringPath:e}}))}));n.fold((function(){A(e).each((function(n){t.onRepositionMenu(e,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;t.onRepositionMenu(e,r,i)}))},N={collapseMenu:O,highlightPrimary:T,repositionMenus:D};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Zp(t.tmenuBehaviours,[fy.config({mode:"special",onRight:k(x),onLeft:k(C),onEscape:k(S),focusIn:function(t,e){o.getPrimary().each((function(e){ho(t,e.element,Vi())}))}}),jg.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),yg.config({find:function(t){return jg.getHighlighted(t)}}),_y.config({})]),eventOrder:t.eventOrder,apis:N,events:M}},Aw=o("collapse-item"),Dw=function(t,e,n){return{primary:t,menus:e,expansions:n}},Nw=function(t,e){return{primary:t,menus:ce(t,e),expansions:{}}},Rw=function(t){return{value:Ea(Aw()),meta:{text:t}}},Pw=sg({name:"TieredMenu",configFields:[$c("onExecute"),$c("onEscape"),Fc("onOpenMenu"),Fc("onOpenSubmenu"),zc("onRepositionMenu"),zc("onCollapseMenu"),zn("highlightImmediately",!0),En("data",[yn("primary"),yn("menus"),yn("expansions")]),zn("fakeFocus",!1),zc("onHighlight"),zc("onHover"),Ic(),yn("dom"),zn("navigateOnHover",!0),zn("stayInDom",!1),Yp("tmenuBehaviours",[fy,jg,yg,_y]),zn("eventOrder",{})],apis:{collapseMenu:function(t,e){t.collapseMenu(e)},highlightPrimary:function(t,e){t.highlightPrimary(e)},repositionMenus:function(t,e){t.repositionMenus(e)}},factory:Tw,extraApis:{tieredData:Dw,singleData:Nw,collapseItem:Rw}}),Iw=function(t,e,n,r,i){var o=function(){return t.lazySink(e)},a="horizontal"===r.type?{layouts:{onLtr:function(){return El()},onRtl:function(){return Ol()}}}:{},s=function(t){return 2===t.length},u=function(t){return s(t)?a:{}};return Pw.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return dp.close(e),t.onEscape.map((function(t){return t(e)})),_.some(!0)},onExecute:function(){return _.some(!0)},onOpenMenu:function(t,e){Nh.positionWithinBounds(o().getOrDie(),n,e,i())},onOpenSubmenu:function(t,e,n,r){var i=o().getOrDie();Nh.position(i,h({anchor:"submenu",item:e},u(r)),n)},onRepositionMenu:function(t,e,r){var a=o().getOrDie();Nh.positionWithinBounds(a,n,e,i()),W(r,(function(t){var e=u(t.triggeringPath);Nh.position(a,h({anchor:"submenu",item:t.triggeringItem},e),t.triggeredMenu)}))}})},Bw=function(t,e){var n=function(e,n){var r=t.getRelated(e);return r.exists((function(t){return yc(t,n)}))},r=function(t,e){dp.setContent(t,e)},i=function(t,e,n){o(t,e,n,_.none())},o=function(t,e,n,r){a(t,e,n,(function(){return r.map((function(t){return ic(t)}))}))},a=function(e,n,r,i){var o=t.lazySink(e).getOrDie();dp.openWhileCloaked(e,r,(function(){return Nh.positionWithinBounds(o,n,e,i())})),Gp.setValue(e,_.some({mode:"position",anchor:n,getBounds:i}))},s=function(t,e,n){u(t,e,n,(function(){return _.none()}))},u=function(e,n,r,i){var o=Iw(t,e,n,r,i);dp.open(e,o),Gp.setValue(e,_.some({mode:"menu",menu:o}))},c=function(t){dp.isOpen(t)&&(Gp.setValue(t,_.none()),dp.close(t))},l=function(t){return dp.getState(t)},f=function(e){dp.isOpen(e)&&Gp.getValue(e).each((function(n){switch(n.mode){case"menu":dp.getState(e).each((function(t){Pw.repositionMenus(t)}));break;case"position":var r=t.lazySink(e).getOrDie();Nh.positionWithinBounds(r,n.anchor,e,n.getBounds());break}}))},d={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:u,hide:c,getContent:l,reposition:f,isOpen:dp.isOpen};return{uid:t.uid,dom:t.dom,behaviours:Zp(t.inlineBehaviours,[dp.config({isPartOf:function(t,e,r){return yc(e,r)||n(t,r)},getAttachPoint:function(e){return t.lazySink(e).getOrDie()},onOpen:function(e){t.onShow(e)},onClose:function(e){t.onHide(e)}}),Gp.config({store:{mode:"memory",initialValue:_.none()}}),Wl.config({channels:h(h({},vp(h({isExtraPart:e.isExtraPart},t.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),yp(h(h({},t.fireRepositionEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})),{doReposition:f})))})]),eventOrder:t.eventOrder,apis:d}},Lw=sg({name:"InlineView",configFields:[yn("lazySink"),zc("onShow"),zc("onHide"),Pn("onEscape"),Yp("inlineBehaviours",[dp,Gp,Wl]),Bn("fireDismissalEventInstead",[zn("event",eo())]),Bn("fireRepositionEventInstead",[zn("event",no())]),zn("getRelated",_.none),zn("isExtraPart",l),zn("eventOrder",_.none)],factory:Bw,apis:{showAt:function(t,e,n,r){t.showAt(e,n,r)},showWithin:function(t,e,n,r,i){t.showWithin(e,n,r,i)},showWithinBounds:function(t,e,n,r,i){t.showWithinBounds(e,n,r,i)},showMenuAt:function(t,e,n,r){t.showMenuAt(e,n,r)},showMenuWithinBounds:function(t,e,n,r,i){t.showMenuWithinBounds(e,n,r,i)},hide:function(t,e){t.hide(e)},isOpen:function(t,e){return t.isOpen(e)},getContent:function(t,e){return t.getContent(e)},setContent:function(t,e,n){t.setContent(e,n)},reposition:function(t,e){t.reposition(e)}}}),zw=function(t){return t.x},jw=function(t,e){return t.x+t.width/2-e.width/2},Fw=function(t,e){return t.x+t.width-e.width},$w=function(t){return t.y},Hw=function(t,e){return t.y+t.height-e.height},Vw=function(t,e,n){return qc(Fw(t,e),Hw(t,e),n.innerSoutheast(),Qc(),ol(t,{right:0,bottom:3}),"layout-inner-se")},Uw=function(t,e,n){return qc(zw(t),Hw(t,e),n.innerSouthwest(),Jc(),ol(t,{left:1,bottom:3}),"layout-inner-sw")},qw=function(t,e,n){return qc(Fw(t,e),$w(t),n.innerNortheast(),Zc(),ol(t,{right:0,top:2}),"layout-inner-ne")},Ww=function(t,e,n){return qc(zw(t),$w(t),n.innerNorthwest(),Xc(),ol(t,{left:1,top:2}),"layout-inner-nw")},Kw=function(t,e,n){return qc(jw(t,e),$w(t),n.innerNorth(),tl(),ol(t,{top:2}),"layout-inner-n")},Gw=function(t,e,n){return qc(jw(t,e),Hw(t,e),n.innerSouth(),el(),ol(t,{bottom:3}),"layout-inner-s")},Yw=tinymce.util.Tools.resolve("tinymce.util.Delay"),Xw=function(t){var e=Qy(t.action),n=t.dom.tag,r=function(e){return jt(t.dom,"attributes").bind((function(t){return jt(t,e)}))},i=function(){if("button"===n){var t=r("type").getOr("button"),e=r("role").map((function(t){return{role:t}})).getOr({});return h({type:t},e)}var i=r("role").getOr("button");return{role:i}};return{uid:t.uid,dom:t.dom,components:t.components,events:e,behaviours:Jp.augment(t.buttonBehaviours,[Ny.config({}),fy.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:t.eventOrder}},Zw=sg({name:"Button",factory:Xw,configFields:[zn("uid",void 0),yn("dom"),zn("components",[]),Jp.field("buttonBehaviours",[Ny,fy]),An("action"),An("role"),zn("eventOrder",{})]}),Jw=function(t){var e=rg(t)&&$t(t,"uid")?t.uid:Ia("memento"),n=function(t){return t.getSystem().getByUid(e).getOrDie()},r=function(t){return t.getSystem().getByUid(e).toOptional()},i=function(){return h(h({},t),{uid:e})};return{get:n,getOpt:r,asSpec:i}},Qw=function(t){return _.from(t()["temporary-placeholder"]).getOr("!not found!")},t_=function(t,e){return _.from(e()[t.toLowerCase()]).getOrThunk((function(){return Qw(e)}))},e_=function(t,e,n){return _.from(e()[t.toLowerCase()]).or(n).getOrThunk((function(){return Qw(e)}))},n_=function(t,e){return dt(t,(function(t){return _.from(e()[t.toLowerCase()])})).getOrThunk((function(){return Qw(e)}))},r_={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},i_=function(t){var e=Jw({dom:{tag:"p",innerHtml:t.translationProvider(t.text)},behaviours:Fl([_y.config({})])}),n=function(t){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+t+"%"}}}},r=function(t){return{dom:{tag:"div",classes:["tox-text"],innerHtml:t+"%"}}},i=Jw({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:Fl([_y.config({})])}),o=function(t,e){t.getSystem().isConnected()&&i.getOpt(t).each((function(t){_y.set(t,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(e)]},r(e)])}))},a=function(t,n){if(t.getSystem().isConnected()){var r=e.get(t);_y.set(r,[gu(n)])}},s={updateProgress:o,updateText:a},u=et([t.icon.toArray(),t.level.toArray(),t.level.bind((function(t){return _.from(r_[t])})).toArray()]),c=Jw(Zw.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:t_("close",t.iconProvider),attributes:{"aria-label":t.translationProvider("Close")}}}],action:function(e){t.onAction(e)}})),l=[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:n_(u,t.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[e.asSpec()],behaviours:Fl([_y.config({})])}];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map((function(t){return["tox-notification","tox-notification--in","tox-notification--"+t]})).getOr(["tox-notification","tox-notification--in"])},behaviours:Fl([Ny.config({}),Cy("notification-events",[wo(Ei(),(function(t){c.getOpt(t).each(Ny.focus)}))])]),components:l.concat(t.progress?[i.asSpec()]:[]).concat(t.closeButton?[c.asSpec()]:[]),apis:s}},o_=sg({name:"Notification",factory:i_,configFields:[An("level"),yn("progress"),yn("icon"),yn("onAction"),yn("text"),yn("iconProvider"),yn("translationProvider"),Vn("closeButton",!0)],apis:{updateProgress:function(t,e,n){t.updateProgress(e,n)},updateText:function(t,e,n){t.updateText(e,n)}}});function a_(t,e,n){var r=e.backstage,i=function(t){switch(t){case"bc-bc":return Gw;case"tc-tc":return Kw;case"tc-bc":return yl;case"bc-tc":default:return wl}},o=function(t){W(t,(function(t){return t.moveTo(0,0)}))},a=function(t){t.length>0&&(ct(t).each((function(t){return t.moveRel(null,"banner")})),W(t,(function(e,n){n>0&&e.moveRel(t[n-1].getEl(),"bc-tc")})))},s=function(t){o(t),a(t)},u=function(t,o){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),s=function(){o(),Lw.hide(c)},u=yu(o_.sketch({text:t.text,level:$(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:_.from(t.icon),closeButton:!a,onAction:s,iconProvider:r.shared.providers.icons,translationProvider:r.shared.providers.translate})),c=yu(Lw.sketch(h({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:e.backstage.shared.getSink,fireDismissalEventInstead:{}},r.shared.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));return n.add(c),t.timeout>0&&Yw.setTimeout((function(){s()}),t.timeout),{close:s,moveTo:function(t,e){Lw.showAt(c,{anchor:"makeshift",x:t,y:e},wu(u))},moveRel:function(t,n){if("banner"!==n){var r=i(n),o={anchor:"node",root:qs(),node:_.some(er.fromDom(t)),layouts:{onRtl:function(){return[r]},onLtr:function(){return[r]}}};Lw.showAt(c,o,wu(u))}else Lw.showAt(c,e.backstage.shared.anchors.banner(),wu(u))},text:function(t){o_.updateText(u,t)},settings:t,getEl:function(){return u.element.dom},progressBar:{value:function(t){o_.updateProgress(u,t)}}}},c=function(t){t.close()},l=function(t){return t.settings};return{open:u,close:c,reposition:s,getArgs:l}}var s_,u_=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null===n&&(n=setTimeout((function(){t.apply(null,r),n=null}),e))};return{cancel:r,throttle:i}},c_=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((function(){t.apply(null,r),n=null}),e)};return{cancel:r,throttle:i}},l_=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),f_=function(t,e){return t.isBlock(e)||$(["BR","IMG","HR","INPUT"],e.nodeName)||"false"===t.getContentEditable(e)},d_=function(t,e,n,r,i){var o=l_(t,(function(e){return f_(t,e)}));return _.from(o.backwards(e,n,r,i))},h_="[data-mce-autocompleter]",p_=function(t,e){return m_(er.fromDom(t.selection.getNode())).getOrThunk((function(){var n=er.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',t.getDoc());return ea(n,er.fromDom(e.extractContents())),e.insertNode(n.dom),qo(n).each((function(t){return t.dom.normalize()})),Pd(n).map((function(e){t.selection.setCursorLocation(e.dom,Ad(e))})),n}))},m_=function(t){return mc(t,h_)},g_=function(t){return t.collapsed&&3===t.startContainer.nodeType},v_=function(t){return t.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},b_=function(t){return""!==t&&-1!==" \f\n\r\t\v".indexOf(t)},y_=function(t,e){return t.substring(e.length)},w_=function(t,e,n){var r;for(r=e-1;r>=0;r--){var i=t.charAt(r);if(b_(i))return _.none();if(i===n)break}return _.some(r)},__=function(t,e,n,r){if(void 0===r&&(r=0),!g_(e))return _.none();var i=function(t,e,r){return w_(r,e,n).getOr(e)},o=t.getParent(e.startContainer,t.isBlock)||t.getRoot();return d_(t,e.startContainer,e.startOffset,i,o).bind((function(t){var i=e.cloneRange();if(i.setStart(t.container,t.offset),i.setEnd(e.endContainer,e.endOffset),i.collapsed)return _.none();var o=v_(i),a=o.lastIndexOf(n);return 0!==a||y_(o,n).length<r?_.none():_.some({text:y_(o,n),range:i,triggerChar:n})}))},x_=function(t,e,n,r){return void 0===r&&(r=0),m_(er.fromDom(e.startContainer)).fold((function(){return __(t,e,n,r)}),(function(e){var r=t.createRng();r.selectNode(e.dom);var i=v_(r);return _.some({range:r,text:y_(i,n),triggerChar:n})}))},C_=function(t,e){e.on("keypress compositionend",t.onKeypress.throttle),e.on("remove",t.onKeypress.cancel);var n=function(t,e){lo(t,Ti(),{raw:e})};e.on("keydown",(function(e){var r=function(){return t.getView().bind(jg.getHighlighted)};8===e.which&&t.onKeypress.throttle(e),t.isActive()&&(27===e.which&&t.cancelIfNecessary(),t.isMenuOpen()?13===e.which?(r().each(fo),e.preventDefault()):40===e.which?(r().fold((function(){t.getView().each(jg.highlightFirst)}),(function(t){n(t,e)})),e.preventDefault(),e.stopImmediatePropagation()):37!==e.which&&38!==e.which&&39!==e.which||r().each((function(t){n(t,e),e.preventDefault(),e.stopImmediatePropagation()})):13!==e.which&&38!==e.which&&40!==e.which||t.cancelIfNecessary())})),e.on("NodeChange",(function(e){t.isActive()&&!t.isProcessingAction()&&m_(er.fromDom(e.element)).isNone()&&t.cancelIfNecessary()}))},S_={setup:C_},k_=tinymce.util.Tools.resolve("tinymce.util.Promise"),M_=function(t,e){return{container:t,offset:e}},E_=function(t){return t.nodeType===Qr},O_=function(t){return t.nodeType===Jr},T_=function(t){if(E_(t))return M_(t,t.data.length);var e=t.childNodes;return e.length>0?T_(e[e.length-1]):M_(t,e.length)},A_=function(t,e){var n=t.childNodes;return n.length>0&&e<n.length?A_(n[e],0):n.length>0&&O_(t)&&n.length===e?T_(n[n.length-1]):M_(t,e)},D_=function(t,e){return d_(t,e.container,e.offset,(function(t,e){return 0===e?-1:e}),t.getRoot()).filter((function(t){var e=t.container.data.charAt(t.offset-1);return!b_(e)})).isSome()},N_=function(t){return function(e){var n=A_(e.startContainer,e.startOffset);return!D_(t,n)}},R_=function(t,e,n){return dt(n.triggerChars,(function(n){return x_(t,e,n)}))},P_=function(t,e){var n=e(),r=t.selection.getRng();return R_(t.dom,r,n).bind((function(n){return I_(t,e,n)}))},I_=function(t,e,n,r){void 0===r&&(r={});var i=e(),o=t.selection.getRng(),a=o.startContainer.nodeValue,s=Y(i.lookupByChar(n.triggerChar),(function(e){return n.text.length>=e.minChars&&e.matches.getOrThunk((function(){return N_(t.dom)}))(n.range,a,n.text)}));if(0===s.length)return _.none();var u=k_.all(q(s,(function(t){var e=t.fetch(n.text,t.maxResults,r);return e.then((function(e){return{matchText:n.text,items:e,columns:t.columns,onAction:t.onAction,highlightOn:t.highlightOn}}))})));return _.some({lookupData:u,context:n})},B_=ze([xn("type"),Rn("text")]),L_=function(t){return nn("separatormenuitem",B_,t)},z_=ze([zn("type","autocompleteitem"),zn("active",!1),zn("disabled",!1),zn("meta",{}),xn("value"),Rn("text"),Rn("icon")]),j_=ze([xn("type"),xn("ch"),Fn("minChars",1),zn("columns",1),Fn("maxResults",10),Pn("matches"),kn("fetch"),kn("onAction"),Wn("highlightOn",[],hn)]),F_=function(t){return nn("Autocompleter.Separator",B_,t)},$_=function(t){return nn("Autocompleter.Item",z_,t)},H_=function(t){return nn("Autocompleter",j_,t)},V_=[Vn("disabled",!1),Rn("tooltip"),Rn("icon"),Rn("text"),Un("onSetup",(function(){return e}))],U_=ze([xn("type"),kn("onAction")].concat(V_)),q_=function(t){return nn("toolbarbutton",U_,t)},W_=[Vn("active",!1)].concat(V_),K_=ze(W_.concat([xn("type"),kn("onAction")])),G_=function(t){return nn("ToggleButton",K_,t)},Y_=[Un("predicate",(function(){return!1})),Hn("scope","node",["node","editor"]),Hn("position","selection",["node","selection","line"])],X_=V_.concat([zn("type","contextformbutton"),zn("primary",!1),kn("onAction"),Gn("original",a)]),Z_=W_.concat([zn("type","contextformbutton"),zn("primary",!1),kn("onAction"),Gn("original",a)]),J_=V_.concat([zn("type","contextformbutton")]),Q_=W_.concat([zn("type","contextformtogglebutton")]),tx=un("type",{contextformbutton:X_,contextformtogglebutton:Z_}),ex=ze([zn("type","contextform"),Un("initValue",(function(){return""})),Rn("label"),Tn("commands",tx),Dn("launch",un("type",{contextformbutton:J_,contextformtogglebutton:Q_}))].concat(Y_)),nx=function(t){return nn("ContextForm",ex,t)},rx=ze([zn("type","contexttoolbar"),xn("items")].concat(Y_)),ix=function(t){return nn("ContextToolbar",rx,t)},ox=function(t){var e={};return W(t,(function(t){e[t]={}})),Ot(e)},ax=function(t){var e=t.ui.registry.getAll().popups,n=Dt(e,(function(t){return H_(t).fold((function(t){throw new Error(an(t))}),(function(t){return t}))})),r=ox(Bt(n,(function(t){return t.ch}))),i=zt(n),o=function(t){return Y(i,(function(e){return e.ch===t}))};return{dataset:n,triggerChars:r,lookupByChar:o}};(function(t){t[t["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",t[t["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(s_||(s_={}));var sx,ux=s_,cx="tox-menu-nav__js",lx="tox-collection__item",fx="tox-swatch",dx={normal:cx,color:fx},hx="tox-collection__item--enabled",px="tox-collection__group-heading",mx="tox-collection__item-icon",gx="tox-collection__item-label",vx="tox-collection__item-accessory",bx="tox-collection__item-caret",yx="tox-collection__item-checkmark",wx="tox-collection__item--active",_x="tox-collection__item-icon-rtl",xx="tox-collection__item-container",Cx="tox-collection__item-container--column",Sx="tox-collection__item-container--row",kx="tox-collection__item-container--align-right",Mx="tox-collection__item-container--align-left",Ex="tox-collection__item-container--valign-top",Ox="tox-collection__item-container--valign-middle",Tx="tox-collection__item-container--valign-bottom",Ax=function(t){return jt(dx,t).getOr(cx)},Dx=function(t){return"color"===t?"tox-swatches":"tox-menu"},Nx=function(t){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Dx(t),tieredMenu:"tox-tiered-menu"}},Rx=function(t){var e=Nx(t);return{backgroundMenu:e.backgroundMenu,selectedMenu:e.selectedMenu,menu:e.menu,selectedItem:e.selectedItem,item:Ax(t)}},Px=function(t,e,n){var r=Nx(n);return{tag:"div",classes:et([[r.menu,"tox-menu-"+e+"-column"],t?[r.hasIcons]:[]])}},Ix=[xw.parts.items({})],Bx=function(t,e,n){var r=Nx(n),i={tag:"div",classes:et([[r.tieredMenu]])};return{dom:i,markers:Rx(n)}},Lx=function(t,e){return function(n){var r=U(n,e);return q(r,(function(e){return{dom:t,components:e}}))}},zx=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[xw.parts.items({preprocess:"auto"!==t?Lx({tag:"div",classes:["tox-swatches__row"]},t):a})]}]}},jx=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[xw.parts.items({preprocess:Lx({tag:"div",classes:["tox-collection__group"]},t)})]}},Fx=function(t,e){var n=[],r=[];return W(t,(function(t,i){e(t,i)?(r.length>0&&n.push(r),r=[],Ft(t.dom,"innerHtml")&&r.push(t)):r.push(t)})),r.length>0&&n.push(r),q(n,(function(t){return{dom:{tag:"div",classes:["tox-collection__group"]},components:t}}))},$x=function(t,e,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===t?["tox-collection--list"]:["tox-collection--grid"])},components:[xw.parts.items({preprocess:function(n){return"auto"!==t&&t>1?Lx({tag:"div",classes:["tox-collection__group"]},t)(n):Fx(n,(function(t,n){return"separator"===e[n].type}))}})]}},Hx=function(t,e){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[xw.parts.items({preprocess:function(e){return Fx(e,(function(e,n){return"separator"===t[n].type}))}})]}},Vx=function(t){return H(t,(function(t){return"icon"in t&&void 0!==t.icon}))},Ux=function(t){return console.error(an(t)),console.log(t),_.none()},qx=function(t,e,n,r,i){var o=Hx(n);return{value:t,dom:o.dom,components:o.components,items:n}},Wx=function(t,e,n,r,i){if("color"===i){var o=zx(r);return{value:t,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=$x(r,n);return{value:t,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=$x(1,n);return{value:t,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=$x(r,n);return{value:t,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=jx(r);return{value:t,dom:o.dom,components:o.components,items:n}}return{value:t,dom:Px(e,r,i),components:Ix,items:n}},Kx=[xn("type"),xn("src"),Rn("alt"),Wn("classes",[],hn)],Gx=ze(Kx),Yx=[xn("type"),xn("text"),Rn("name"),Wn("classes",["tox-collection__item-label"],hn)],Xx=ze(Yx),Zx=Je((function(){return sn("type",{cardimage:Gx,cardtext:Xx,cardcontainer:Jx})})),Jx=ze([xn("type"),$n("direction","horizontal"),$n("align","left"),$n("valign","middle"),Tn("items",Zx)]),Qx=[Vn("disabled",!1),Rn("text"),Rn("shortcut"),We("value","value",ne((function(){return Ea("menuitem-value")})),ln()),zn("meta",{})],tC=ze([xn("type"),Rn("label"),Tn("items",Zx),Un("onSetup",(function(){return e})),Un("onAction",e)].concat(Qx)),eC=function(t){return nn("cardmenuitem",tC,t)},nC=ze([xn("type"),Vn("active",!1),Rn("icon")].concat(Qx)),rC=function(t){return nn("choicemenuitem",nC,t)},iC=["inserttable","colorswatch"],oC=ze([xn("type"),Cn("fancytype",iC),Un("onAction",e)]),aC=function(t){return nn("fancymenuitem",oC,t)},sC=ze([xn("type"),Un("onSetup",(function(){return e})),Un("onAction",e),Rn("icon")].concat(Qx)),uC=function(t){return nn("menuitem",sC,t)},cC=ze([xn("type"),kn("getSubmenuItems"),Un("onSetup",(function(){return e})),Rn("icon")].concat(Qx)),lC=function(t){return nn("nestedmenuitem",cC,t)},fC=ze([xn("type"),Rn("icon"),Vn("active",!1),Un("onSetup",(function(){return e})),kn("onAction")].concat(Qx)),dC=function(t){return nn("togglemenuitem",fC,t)},hC=function(t,e,n){var r=Bd(t.element,"."+n);if(r.length>0){var i=tt(r,(function(t){var n=t.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>e})).getOr(r.length);return _.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return _.none()},pC=function(t,e){return Fl([Cy(t,e)])},mC=function(t){return pC(Ea("unnamed-events"),t)},gC={namedEvents:pC,unnamedEvents:mC},vC=[yn("lazySink"),yn("tooltipDom"),zn("exclusive",!0),zn("tooltipComponents",[]),zn("delay",300),Hn("mode","normal",["normal","follow-highlight"]),zn("anchor",(function(t){return{anchor:"hotspot",hotspot:t,layouts:{onLtr:o([wl,yl,ml,vl,gl,bl]),onRtl:o([wl,yl,ml,vl,gl,bl])}}})),zc("onHide"),zc("onShow")],bC=function(){var t=Yn(_.none()),e=Yn(_.none()),n=function(){return e.get()},r=function(t){e.set(_.some(t))},i=function(){e.set(_.none())},a=function(){t.get().each((function(t){clearTimeout(t)}))},s=function(e,n){a(),t.set(_.some(setTimeout((function(){e()}),n)))},u=function(){return e.get().isSome()},c=o("not-implemented");return Ga({getTooltip:n,isShowing:u,setTooltip:r,clearTooltip:i,clearTimer:a,resetTimer:s,readState:c})},yC=Object.freeze({__proto__:null,init:bC}),wC=Ea("tooltip.exclusive"),_C=Ea("tooltip.show"),xC=Ea("tooltip.hide"),CC=function(t,e,n){t.getSystem().broadcastOn([wC],{})},SC=function(t,e,n,r){n.getTooltip().each((function(t){t.getSystem().isConnected()&&_y.set(t,r)}))},kC=Object.freeze({__proto__:null,hideAllExclusive:CC,setComponents:SC}),MC=function(t,e){var n=function(n){e.getTooltip().each((function(r){$h(r),t.onHide(n,r),e.clearTooltip()})),e.clearTimer()},r=function(n){if(!e.isShowing()){CC(n);var r=t.lazySink(n).getOrDie(),i=n.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:go("normal"===t.mode?[wo(Mi(),(function(t){co(n,_C)})),wo(Si(),(function(t){co(n,xC)}))]:[]),behaviours:Fl([_y.config({})])});e.setTooltip(i),zh(r,i),t.onShow(n,i),Nh.position(r,t.anchor(n),i)}};return go(et([[wo(_C,(function(n){e.resetTimer((function(){r(n)}),t.delay)})),wo(xC,(function(r){e.resetTimer((function(){n(r)}),t.delay)})),wo($i(),(function(t,e){var r=e;r.universal||$(r.channels,wC)&&n(t)})),Do((function(t){n(t)}))],"normal"===t.mode?[wo(Ei(),(function(t){co(t,_C)})),wo(ji(),(function(t){co(t,xC)})),wo(Mi(),(function(t){co(t,_C)})),wo(Si(),(function(t){co(t,xC)}))]:[wo(so(),(function(t,e){co(t,_C)})),wo(uo(),(function(t){co(t,xC)}))]]))},EC=Object.freeze({__proto__:null,events:MC}),OC=Hl({fields:vC,name:"tooltipping",active:EC,state:yC,apis:kC}),TC=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),AC=tinymce.util.Tools.resolve("tinymce.util.I18n"),DC=["input","button","textarea","select"],NC=function(t,e,n){var r=e.disabled()?FC:$C;r(t,e)},RC=function(t,e){return!0===e.useNative&&$(DC,Po(t.element))},PC=function(t){return va(t.element,"disabled")},IC=function(t){ha(t.element,"disabled","disabled")},BC=function(t){ba(t.element,"disabled")},LC=function(t){return"true"===ma(t.element,"aria-disabled")},zC=function(t){ha(t.element,"aria-disabled","true")},jC=function(t){ha(t.element,"aria-disabled","false")},FC=function(t,e,n){e.disableClass.each((function(e){Es(t.element,e)}));var r=RC(t,e)?IC:zC;r(t),e.onDisabled(t)},$C=function(t,e,n){e.disableClass.each((function(e){Ts(t.element,e)}));var r=RC(t,e)?BC:jC;r(t),e.onEnabled(t)},HC=function(t,e){return RC(t,e)?PC(t):LC(t)},VC=function(t,e,n,r){var i=r?FC:$C;i(t,e)},UC=Object.freeze({__proto__:null,enable:$C,disable:FC,isDisabled:HC,onLoad:NC,set:VC}),qC=function(t,e){return Qa({classes:e.disabled()?e.disableClass.toArray():[]})},WC=function(t,e){return go([vo(Hi(),(function(e,n){return HC(e,t)})),Pl(t,e,NC)])},KC=Object.freeze({__proto__:null,exhibit:qC,events:WC}),GC=[Un("disabled",l),zn("useNative",!0),An("disableClass"),zc("onDisabled"),zc("onEnabled")],YC=Hl({fields:GC,name:"disabling",active:KC,apis:UC}),XC=tinymce.util.Tools.resolve("tinymce.EditorManager"),ZC=function(t){var e=t.getParam("skin"),n=t.getParam("skin_url");if(!1!==e){var r=e||"oxide";n=n?t.documentBaseURI.toAbsolute(n):XC.baseURL+"/skins/ui/"+r}return n},JC=function(t){return t.getParam("readonly",!1,"boolean")},QC=function(t){return!1===t.getParam("skin")},tS=function(t){return t.getParam("height",Math.max(t.getElement().offsetHeight,200))},eS=function(t){return t.getParam("width",TC.DOM.getStyle(t.getElement(),"width"))},nS=function(t){return _.from(t.getParam("min_width")).filter(P)},rS=function(t){return _.from(t.getParam("min_height")).filter(P)},iS=function(t){return _.from(t.getParam("max_width")).filter(P)},oS=function(t){return _.from(t.getParam("max_height")).filter(P)},aS=function(t){return _.from(t.getParam("style_formats")).filter(O)},sS=function(t){return t.getParam("style_formats_merge",!1,"boolean")},uS=function(t){return t.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},cS=function(t){return t.getParam("removed_menuitems","")},lS=function(t){return!1!==t.getParam("menubar",!0,"boolean")},fS=function(t){var e=t.getParam("toolbar",!0),n=!0===e,r=M(e),i=O(e)&&e.length>0;return!hS(t)&&(i||r||n)},dS=function(t){var e=V(9,(function(e){return t.getParam("toolbar"+(e+1),!1,"string")})),n=Y(e,(function(t){return"string"===typeof t}));return n.length>0?_.some(n):_.none()},hS=function(t){return dS(t).fold((function(){var e=t.getParam("toolbar",[],"string[]");return e.length>0}),(function(){return!0}))};(function(t){t["default"]="wrap",t["floating"]="floating",t["sliding"]="sliding",t["scrolling"]="scrolling"})(sx||(sx={}));var pS,mS=function(t){return t.getParam("toolbar_mode","","string")};(function(t){t["auto"]="auto",t["top"]="top",t["bottom"]="bottom"})(pS||(pS={}));var gS,vS=function(t){return t.getParam("toolbar_groups",{},"object")},bS=function(t){return t.getParam("toolbar_location",pS.auto,"string")},yS=function(t){return bS(t)===pS.bottom},wS=function(t){return t.getParam("fixed_toolbar_container","","string")},_S=function(t){return t.getParam("toolbar_persist",!1,"boolean")},xS=function(t){var e=wS(t);return e.length>0&&t.inline?pc(qs(),e):_.none()},CS=function(t){return t.inline&&xS(t).isSome()},SS=function(t){var e=xS(t);return e.getOrThunk((function(){return zs(Ls(er.fromDom(t.getElement())))}))},kS=function(t){return t.inline&&!lS(t)&&!fS(t)&&!hS(t)},MS=function(t){var e=t.getParam("toolbar_sticky",!1,"boolean");return(e||t.inline)&&!CS(t)&&!kS(t)},ES=function(t){return t.getParam("draggable_modal",!1,"boolean")},OS=function(t){var e=t.getParam("menu");return e?Dt(e,(function(t){return h(h({},t),{items:t.items})})):{}},TS=function(t){return t.getParam("menubar")},AS=function(t){return t.getParam("toolbar",!0)},DS=function(t){return t.getParam("file_picker_callback")},NS=function(t){return t.getParam("file_picker_types")},RS=function(t){return t.getParam("file_browser_callback_types")},PS=function(t){return!1===t.getParam("typeahead_urls")},IS=function(t){return t.getParam("anchor_top","#top")},BS=function(t){return t.getParam("anchor_bottom","#bottom")},LS=function(t){var e=t.getParam("file_picker_validator_handler",void 0,"function");return void 0===e?t.getParam("filepicker_validator_handler",void 0,"function"):e},zS="silver.readonly",jS=ze([Sn("readonly")]),FS=function(t,e){var n=t.outerContainer,r=n.element;e&&(t.mothership.broadcastOn([hp()],{target:r}),t.uiMothership.broadcastOn([hp()],{target:r})),t.mothership.broadcastOn([zS],{readonly:e}),t.uiMothership.broadcastOn([zS],{readonly:e})},$S=function(t,e){t.on("init",(function(){t.mode.isReadOnly()&&FS(e,!0)})),t.on("SwitchMode",(function(){return FS(e,t.mode.isReadOnly())})),JC(t)&&t.setMode("readonly")},HS=function(){var t;return Wl.config({channels:(t={},t[zS]={schema:jS,onReceive:function(t,e){YC.set(t,e.readonly)}},t)})},VS=function(t){return YC.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},US=function(t){return YC.config({disabled:t})},qS=function(t){return YC.config({disabled:t,disableClass:"tox-tbtn--disabled"})},WS=function(t){return YC.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},KS={item:VS,button:US,splitButton:qS,toolbarButton:WS},GS=function(t,e){var n=t.getApi(e);return function(t){t(n)}},YS=function(t,e){return Ao((function(n){var r=GS(t,n);r((function(n){var r=t.onSetup(n);null!==r&&void 0!==r&&e.set(r)}))}))},XS=function(t,e){return Do((function(n){return GS(t,n)(e.get())}))},ZS=function(t,e){return Ro((function(n,r){GS(t,n)(t.onAction),t.triggersSubmenu||e!==ux.CLOSE_ON_EXECUTE||(co(n,Wi()),r.stop())}))},JS=(gS={},gS[Hi()]=["disabling","alloy.base.behaviour","toggling","item-events"],gS),QS=function(t){return nt(t,(function(t){return t.toArray()}))},tk=function(t,n,r,i){var o=Yn(e);return{type:"item",dom:n.dom,components:QS(n.optComponents),data:t.data,eventOrder:JS,hasSubmenu:t.triggersSubmenu,itemBehaviours:Fl([Cy("item-events",[ZS(t,r),YS(t,o),XS(t,o)]),KS.item((function(){return t.disabled||i.isDisabled()})),HS(),_y.config({})].concat(t.itemBehaviours))}},ek=function(t){return{value:t.value,meta:h({text:t.text.getOr("")},t.meta)}},nk=tinymce.util.Tools.resolve("tinymce.Env"),rk=function(t){var e={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},n={meta:"Ctrl",access:"Shift+Alt"},r=nk.mac?e:n,i=t.split("+"),o=q(i,(function(t){var e=t.toLowerCase().trim();return Ft(r,e)?r[e]:t}));return nk.mac?o.join(""):o.join("+")},ik=function(t){return{dom:{tag:"div",classes:[mx],innerHtml:t}}},ok=function(t){return{dom:{tag:"div",classes:[gx]},components:[gu(AC.translate(t))]}},ak=function(t,e){return{dom:{tag:"div",classes:e,innerHtml:t}}},sk=function(t,e){return{dom:{tag:"div",classes:[gx]},components:[{dom:{tag:t.tag,styles:t.styles},components:[gu(AC.translate(e))]}]}},uk=function(t){return{dom:{tag:"div",classes:[vx],innerHtml:rk(t)}}},ck=function(t){return{dom:{tag:"div",classes:[yx],innerHtml:t_("checkmark",t)}}},lk=function(t){return{dom:{tag:"div",classes:[bx],innerHtml:t_("chevron-right",t)}}},fk=function(t){return{dom:{tag:"div",classes:[bx],innerHtml:t_("chevron-down",t)}}},dk=function(t,e){var n="vertical"===t.direction?Cx:Sx,r="left"===t.align?Mx:kx,i=function(){switch(t.valign){case"top":return Ex;case"middle":return Ox;case"bottom":return Tx}};return{dom:{tag:"div",classes:[xx,n,r,i()]},components:e}},hk=function(t,e,n){return{dom:{tag:"img",classes:e,attributes:{src:t,alt:n.getOr("")}}}},pk=function(t,e,n,r){var i="custom",o="remove",a=function(){var a=fx,s=n.getOr(""),u=t.map((function(t){return{title:r.translate(t)}})).getOr({}),c={tag:"div",attributes:u,classes:[a]};return h(h({},c),e===i?{tag:"button",classes:m(c.classes,["tox-swatches__picker-btn"]),innerHtml:s}:e===o?{classes:m(c.classes,["tox-swatch--remove"]),innerHtml:s}:{attributes:h(h({},c.attributes),{"data-mce-color":e}),styles:{"background-color":e}})};return{dom:a(),optComponents:[]}},mk=function(t,e){var n=e.map((function(t){return{attributes:{title:AC.translate(t)}}})).getOr({});return h({tag:"div",classes:[cx,lx].concat(t?[_x]:[])},n)},gk=function(t,e,n,r,i){var o=n?e.or(_.some("")).map(ik):_.none(),a=t.checkMark,s=t.htmlContent.fold((function(){return t.textContent.map(r)}),(function(t){return _.some(ak(t,[gx]))})),u={dom:mk(i,t.ariaLabel),optComponents:[o,s,t.shortcutContent.map(uk),a,t.caret]};return u},vk=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],bk=["list-bull-circle","list-bull-default","list-bull-square"],yk=function(t,e,n,r){void 0===r&&(r=_.none());var i=function(t){return t.map((function(t){return AC.isRtl()&&$(vk,t)?t+"-rtl":t}))},o=AC.isRtl()&&t.iconContent.exists((function(t){return $(bk,t)})),a=i(t.iconContent).map((function(t){return e_(t,e.icons,r)})),u=_.from(t.meta).fold((function(){return ok}),(function(t){return Ft(t,"style")?s(sk,t.style):ok}));return"color"===t.presets?pk(t.ariaLabel,t.value,a,e):gk(t,a,n,u,o)},wk=function(t,e){return jt(t,"tooltipWorker").map((function(t){return[OC.config({lazySink:e.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(t){return{anchor:"submenu",item:t,overrides:{maxHeightFunction:Af}}},mode:"follow-highlight",onShow:function(e,n){t((function(t){OC.setComponents(e,[vu({element:er.fromDom(t)})])}))}})]})).getOr([])},_k=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},xk=function(t){return TC.DOM.encode(t)},Ck=function(t,e){var n=AC.translate(t),r=xk(n);if(e.length>0){var i=new RegExp(_k(e),"gi");return r.replace(i,(function(t){return'<span class="tox-autocompleter-highlight">'+t+"</span>"}))}return r},Sk=function(t,e,n,r,i,o,a,s){void 0===s&&(s=!0);var u=yk({presets:r,textContent:_.none(),htmlContent:n?t.text.map((function(t){return Ck(t,e)})):_.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:_.none(),checkMark:_.none(),caret:_.none(),value:t.value},a.providers,s,t.icon);return tk({data:ek(t),disabled:t.disabled,getApi:function(){return{}},onAction:function(e){return i(t.value,t.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:wk(t.meta,a)},u,o,a.providers)},kk=function(t,e,n,r,i,o,a,s){void 0===s&&(s=!0);var u=function(t){return{setActive:function(e){Zy.set(t,e)},isActive:function(){return Zy.isOn(t)},isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)}}},c=yk({presets:n,textContent:e?t.text:_.none(),htmlContent:_.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:e?t.shortcut:_.none(),checkMark:e?_.some(ck(a.icons)):_.none(),caret:_.none(),value:t.value},a,s);return Gt(tk({data:ek(t),disabled:t.disabled,getApi:u,onAction:function(e){return r(t.value)},onSetup:function(t){return t.setActive(i),function(){}},triggersSubmenu:!1,itemBehaviours:[]},c,o,a),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:t.active}})},Mk=Im(lw(),fw()),Ek=function(t){return{value:t}},Ok=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Tk=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ak=function(t){return Ok.test(t)||Tk.test(t)},Dk=function(t){var e=t.value.replace(Ok,(function(t,e,n,r){return e+e+n+n+r+r}));return{value:e}},Nk=function(t){var e=Dk(t),n=Tk.exec(e.value);return null===n?["FFFFFF","FF","FF","FF"]:n},Rk=function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},Pk=function(t){var e=Rk(t.red)+Rk(t.green)+Rk(t.blue);return Ek(e)},Ik=Math.min,Bk=Math.max,Lk=Math.round,zk=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,jk=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Fk=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},$k=function(t){var e=parseInt(t,10);return e.toString()===t&&e>=0&&e<=255},Hk=function(t){var e,n,r,i=(t.hue||0)%360,o=t.saturation/100,a=t.value/100;if(o=Bk(0,Ik(o,1)),a=Bk(0,Ik(a,1)),0===o)return e=n=r=Lk(255*a),Fk(e,n,r,1);var s=i/60,u=a*o,c=u*(1-Math.abs(s%2-1)),l=a-u;switch(Math.floor(s)){case 0:e=u,n=c,r=0;break;case 1:e=c,n=u,r=0;break;case 2:e=0,n=u,r=c;break;case 3:e=0,n=c,r=u;break;case 4:e=c,n=0,r=u;break;case 5:e=u,n=0,r=c;break;default:e=n=r=0}return e=Lk(255*(e+l)),n=Lk(255*(n+l)),r=Lk(255*(r+l)),Fk(e,n,r,1)},Vk=function(t){var e=Nk(t),n=parseInt(e[1],16),r=parseInt(e[2],16),i=parseInt(e[3],16);return Fk(n,r,i,1)},Uk=function(t,e,n,r){var i=parseInt(t,10),o=parseInt(e,10),a=parseInt(n,10),s=parseFloat(r);return Fk(i,o,a,s)},qk=function(t){if("transparent"===t)return _.some(Fk(0,0,0,0));var e=zk.exec(t);if(null!==e)return _.some(Uk(e[1],e[2],e[3],"1"));var n=jk.exec(t);return null!==n?_.some(Uk(n[1],n[2],n[3],n[4])):_.none()},Wk=function(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"},Kk=Fk(255,0,0,1),Gk=function(t){return t.fire("SkinLoaded")},Yk=function(t,e){return t.fire("SkinLoadError",e)},Xk=function(t){return t.fire("ResizeEditor")},Zk=function(t,e){return t.fire("ResizeContent",e)},Jk=function(t,e){return t.fire("ScrollContent",e)},Qk=function(t,e){return t.fire("TextColorChange",e)},tM=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),eM="tinymce-custom-colors";function nM(t){void 0===t&&(t=10);var e=tM.getItem(eM),n=M(e)?JSON.parse(e):[],r=function(e){var n=t-e.length;return n<0?e.slice(0,t):e},i=r(n),o=function(e){F(i,e).each(a),i.unshift(e),i.length>t&&i.pop(),tM.setItem(eM,JSON.stringify(i))},a=function(t){i.splice(t,1)},s=function(){return i.slice(0)};return{add:o,state:s}}var rM="choiceitem",iM=[{type:rM,text:"Light Green",value:"#BFEDD2"},{type:rM,text:"Light Yellow",value:"#FBEEB8"},{type:rM,text:"Light Red",value:"#F8CAC6"},{type:rM,text:"Light Purple",value:"#ECCAFA"},{type:rM,text:"Light Blue",value:"#C2E0F4"},{type:rM,text:"Green",value:"#2DC26B"},{type:rM,text:"Yellow",value:"#F1C40F"},{type:rM,text:"Red",value:"#E03E2D"},{type:rM,text:"Purple",value:"#B96AD9"},{type:rM,text:"Blue",value:"#3598DB"},{type:rM,text:"Dark Turquoise",value:"#169179"},{type:rM,text:"Orange",value:"#E67E23"},{type:rM,text:"Dark Red",value:"#BA372A"},{type:rM,text:"Dark Purple",value:"#843FA1"},{type:rM,text:"Dark Blue",value:"#236FA1"},{type:rM,text:"Light Gray",value:"#ECF0F1"},{type:rM,text:"Medium Gray",value:"#CED4D9"},{type:rM,text:"Gray",value:"#95A5A6"},{type:rM,text:"Dark Gray",value:"#7E8C8D"},{type:rM,text:"Navy Blue",value:"#34495E"},{type:rM,text:"Black",value:"#000000"},{type:rM,text:"White",value:"#ffffff"}],oM=nM(10),aM=function(t){var e=[],n=document.createElement("canvas");n.height=1,n.width=1;for(var r=n.getContext("2d"),i=function(t,e){var n=255,r=e/255,i=Math.round(t*r+n*(1-r));return("0"+i.toString(16)).slice(-2).toUpperCase()},o=function(t){if(/^[0-9A-Fa-f]{6}$/.test(t))return"#"+t.toUpperCase();r.clearRect(0,0,n.width,n.height),r.fillStyle="#FFFFFF",r.fillStyle=t,r.fillRect(0,0,1,1);var e=r.getImageData(0,0,1,1).data,o=e[0],a=e[1],s=e[2],u=e[3];return"#"+i(o,u)+i(a,u)+i(s,u)},a=0;a<t.length;a+=2)e.push({text:t[a+1],value:o(t[a]),type:"choiceitem"});return e},sM=function(t,e){return t.getParam("color_cols",e,"number")},uM=function(t){return!1!==t.getParam("custom_colors")},cM=function(t){return t.getParam("color_map")},lM=function(t){var e=cM(t);return void 0!==e?aM(e):iM},fM=function(){return q(oM.state(),(function(t){return{type:rM,text:t,value:t}}))},dM=function(t){oM.add(t)},hM=function(t,e){var n;return t.dom.getParents(t.selection.getStart(),(function(t){var r;(r=t.style["forecolor"===e?"color":"background-color"])&&(n=n||r)})),n},pM=function(t,e,n){t.undoManager.transact((function(){t.focus(),t.formatter.apply(e,{value:n}),t.nodeChanged()}))},mM=function(t,e){t.undoManager.transact((function(){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()}))},gM=function(t){t.addCommand("mceApplyTextcolor",(function(e,n){pM(t,e,n)})),t.addCommand("mceRemoveTextcolor",(function(e){mM(t,e)}))},vM=function(t){return Math.max(5,Math.ceil(Math.sqrt(t)))},bM=function(t){var e=lM(t),n=vM(e.length);return sM(t,n)},yM=function(t){var e="choiceitem",n={type:e,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:e,text:"Custom color",icon:"color-picker",value:"custom"};return t?[n,r]:[n]},wM=function(t,e,n,r){if("custom"===n){var i=MM(t);i((function(n){n.each((function(n){dM(n),t.execCommand("mceApplyTextcolor",e,n),r(n)}))}),"#000000")}else"remove"===n?(r(""),t.execCommand("mceRemoveTextcolor",e)):(r(n),t.execCommand("mceApplyTextcolor",e,n))},_M=function(t,e){return t.concat(fM().concat(yM(e)))},xM=function(t,e){return function(n){n(_M(t,e))}},CM=function(t,e,n){var r=function(e,n){t.setIconFill(e,n),t.setIconStroke(e,n)},i="forecolor"===e?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";r(i,n)},SM=function(t,e,n,r,i){t.ui.registry.addSplitButton(e,{tooltip:r,presets:"color",icon:"forecolor"===e?"text-color":"highlight-bg-color",select:function(e){var r=_.from(hM(t,n));return r.bind((function(t){return qk(t).map((function(t){var n=Pk(t).value;return pr(e.toLowerCase(),n)}))})).getOr(!1)},columns:bM(t),fetch:xM(lM(t),uM(t)),onAction:function(e){null!==i.get()&&wM(t,n,i.get(),(function(){}))},onItemAction:function(r,o){wM(t,n,o,(function(n){i.set(n),Qk(t,{name:e,color:n})}))},onSetup:function(n){null!==i.get()&&CM(n,e,i.get());var r=function(t){t.name===e&&CM(n,t.name,t.color)};return t.on("TextColorChange",r),function(){t.off("TextColorChange",r)}}})},kM=function(t,n,r,i){t.ui.registry.addNestedMenuItem(n,{text:i,icon:"forecolor"===n?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(n){wM(t,r,n.value,e)}}]}})},MM=function(t){return function(e,n){var r=function(t){return function(e){var n=e.getData();t(_.from(n.colorpicker)),e.close()}},i=function(t,e){"hex-valid"===e.name&&(e.value?t.enable("ok"):t.disable("ok"))},o={colorpicker:n},a=r(e);t.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onAction:i,onSubmit:a,onClose:function(){},onCancel:function(){e(_.none())}})}},EM=function(t){gM(t);var e=Yn(null),n=Yn(null);SM(t,"forecolor","forecolor","Text color",e),SM(t,"backcolor","hilitecolor","Background color",n),kM(t,"forecolor","forecolor","Text color"),kM(t,"backcolor","hilitecolor","Background color")},OM=function(t,e,n,r,i,o,a,s){var u=Vx(e),c="color"!==i?"normal":"color",l=TM(e,n,r,c,o,a,s);return Wx(t,u,l,r,i)},TM=function(t,e,n,r,i,o,a){return cg(q(t,(function(s){return"choiceitem"===s.type?rC(s).fold(Ux,(function(u){return _.some(kk(u,1===n,r,e,o(s.value),i,a,Vx(t)))})):_.none()})))},AM=function(t,e){var n=Rx(e);if(1===t)return{mode:"menu",moveOnTab:!0};if("auto"===t)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===e?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},DM=function(t,e){return 1===t?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===t?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===e?".tox-swatches__row":".tox-collection__group",cell:"color"===e?"."+fx:"."+lx}}};function NM(t,e){var n=_M(e.colorinput.getColors(),e.colorinput.hasCustomColors()),r=e.colorinput.getColorCols(),i="color",o=OM(Ea("menu-value"),n,(function(e){t.onAction({value:e})}),r,i,ux.CLOSE_ON_EXECUTE,(function(){return!1}),e.shared.providers),a=h(h({},o),{markers:Rx(i),movement:AM(r,i)});return{type:"widget",data:{value:Ea("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[Mk.widget(xw.sketch(a))]}}var RM,PM=Ea("cell-over"),IM=Ea("cell-execute"),BM=function(t,e,n){var r,i=function(n){return lo(n,PM,{row:t,col:e})},o=function(n){return lo(n,IM,{row:t,col:e})},a=function(t,e){e.stop(),o(t)};return yu({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:Fl([Cy("insert-table-picker-cell",[wo(Mi(),Ny.focus),wo(Hi(),o),wo(Ri(),a),wo(Ui(),a)]),Zy.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Ny.config({onFocus:i})])})},LM=function(t,e,n){for(var r=[],i=0;i<e;i++){for(var o=[],a=0;a<n;a++)o.push(BM(i,a,t));r.push(o)}return r},zM=function(t,e,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)Zy.set(t[o][a],o<=e&&a<=n)},jM=function(t){return nt(t,(function(t){return q(t,wu)}))},FM=function(t,e){return gu(e+1+"x"+(t+1))},$M=function(t){var e=10,n=10,r=Ea("size-label"),i=LM(r,e,n),o=Jw({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[gu("0x0")],behaviours:Fl([_y.config({})])});return{type:"widget",data:{value:Ea("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[Mk.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:jM(i).concat(o.asSpec()),behaviours:Fl([Cy("insert-table-picker",[Mo(PM,(function(t,r,a){var s=a.event.row,u=a.event.col;zM(i,s,u,e,n),_y.set(o.get(t),[FM(s,u)])})),Mo(IM,(function(e,n,r){t.onAction({numRows:r.event.row+1,numColumns:r.event.col+1}),co(e,Wi())}))]),fy.config({initSize:{numRows:e,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},HM={inserttable:$M,colorswatch:NM},VM=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?_.some(t[e]):_.none()},UM=function(t,e){return VM(HM,t.fancytype).map((function(n){return n(t,e)}))},qM=function(t,n,r,i,o){void 0===i&&(i=!0),void 0===o&&(o=!1);var a=o?fk(r.icons):lk(r.icons),s=function(t){return{isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)}}},u=yk({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:_.none(),ariaLabel:t.text,caret:_.some(a),checkMark:_.none(),shortcutContent:t.shortcut},r,i);return tk({data:ek(t),getApi:s,disabled:t.disabled,onAction:e,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},u,n,r)},WM=function(t,e,n,r){void 0===r&&(r=!0);var i=function(t){return{isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)}}},o=yk({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:_.none(),ariaLabel:t.text,caret:_.none(),checkMark:_.none(),shortcutContent:t.shortcut},n,r);return tk({data:ek(t),getApi:i,disabled:t.disabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,e,n)},KM=function(t){var e=t.text.fold((function(){return{}}),(function(t){return{innerHtml:t}}));return{type:"separator",dom:h({tag:"div",classes:[lx,px]},e),components:[]}},GM=function(t,e,n,r){void 0===r&&(r=!0);var i=function(t){return{setActive:function(e){Zy.set(t,e)},isActive:function(){return Zy.isOn(t)},isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)}}},o=yk({iconContent:t.icon,textContent:t.text,htmlContent:_.none(),ariaLabel:t.text,checkMark:_.some(ck(n.icons)),caret:_.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},n,r);return Gt(tk({data:ek(t),disabled:t.disabled,getApi:i,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,e,n),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:t.active}})},YM=function(t,e){return q(t,(function(t){switch(t.type){case"cardcontainer":return dk(t,YM(t.items,e));case"cardimage":return hk(t.src,t.classes,t.alt);case"cardtext":var n=t.name.exists((function(t){return $(e.cardText.highlightOn,t)})),r=n?_.from(e.cardText.matchText).getOr(""):"";return ak(Ck(t.text,r),t.classes)}}))},XM=function(t,e,n,r){var i=function(t){return{isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){YC.set(t,e),W(Bd(t.element,"*"),(function(n){t.getSystem().getByDom(n).each((function(t){t.hasConfigured(YC)&&YC.set(t,e)}))}))}}},o={dom:mk(!1,t.label),optComponents:[_.some({dom:{tag:"div",classes:[xx,Sx]},components:YM(t.items,r)})]};return tk({data:ek(h({text:_.none()},t)),disabled:t.disabled,getApi:i,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:_.from(r.itemBehaviours).getOr([])},o,e,n.providers)},ZM=Sk,JM=KM,QM=WM,tE=qM,eE=GM,nE=UM,rE=XM;(function(t){t[t["ContentFocus"]=0]="ContentFocus",t[t["UiFocus"]=1]="UiFocus"})(RM||(RM={}));var iE=function(t,e,n,r,i){var o=n.shared.providers,a=function(t){return i?h(h({},t),{shortcut:_.none(),icon:t.text.isSome()?_.none():t.icon}):t};switch(t.type){case"menuitem":return uC(t).fold(Ux,(function(t){return _.some(QM(a(t),e,o,r))}));case"nestedmenuitem":return lC(t).fold(Ux,(function(t){return _.some(tE(a(t),e,o,r,i))}));case"togglemenuitem":return dC(t).fold(Ux,(function(t){return _.some(eE(a(t),e,o,r))}));case"separator":return L_(t).fold(Ux,(function(t){return _.some(JM(t))}));case"fancymenuitem":return aC(t).fold(Ux,(function(t){return nE(a(t),n)}));default:return console.error("Unknown item in general menu",t),_.none()}},oE=function(t,e,n,r,i,o,a){var s=1===r,u=!s||Vx(t);return cg(q(t,(function(t){switch(t.type){case"separator":return F_(t).fold(Ux,(function(t){return _.some(JM(t))}));case"cardmenuitem":return eC(t).fold(Ux,(function(t){return _.some(rE(h(h({},t),{onAction:function(e){t.onAction(e),n(t.value,t.meta)}}),i,o,{itemBehaviours:wk(t.meta,o),cardText:{matchText:e,highlightOn:a}}))}));case"autocompleteitem":default:return $_(t).fold(Ux,(function(t){return _.some(ZM(t,e,s,"normal",n,i,o,u))}))}})))},aE=function(t,e,n,r,i){var o=Vx(e),a=cg(q(e,(function(t){var e=function(t){return i?!t.hasOwnProperty("text"):o},a=function(t){return iE(t,n,r,e(t),i)};return"nestedmenuitem"===t.type&&t.getSubmenuItems().length<=0?a(h(h({},t),{disabled:!0})):a(t)}))),s=i?qx:Wx;return s(t,o,a,1,"normal")},sE=function(t){return Pw.singleData(t.value,t)},uE=function(t,e,n,r){var i=n===RM.ContentFocus?uv():sv(),o=AM(e,r),a=Rx(r);return{dom:t.dom,components:t.components,items:t.items,value:t.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===RM.ContentFocus,focusManager:i,menuBehaviours:gC.unnamedEvents("auto"!==e?[]:[Ao((function(t,e){hC(t,4,a.item).each((function(e){var n=e.numColumns,r=e.numRows;fy.setGridSize(t,r,n)}))}))])}},cE=function(t,e){var n=Yn(_.none()),r=Yn(!1),i=yu(Lw.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:Fl([Cy("dismissAutocompleter",[wo(eo(),(function(){return u()}))])]),lazySink:e.getSink})),o=function(){return Lw.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&Lw.hide(i)},u=function(){if(a()){var e=n.get().map((function(t){return t.element}));m_(e.getOr(er.fromDom(t.selection.getNode()))).each(sa),s(),n.set(_.none()),r.set(!1)}},c=Xt((function(){return ax(t)})),l=function(n,i){var o=dt(i,(function(t){return _.from(t.columns)})).getOr(1);return nt(i,(function(i){var a=i.items;return oE(a,i.matchText,(function(e,o){var a=t.selection.getRng();x_(t.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(t){var n=t.range,a={hide:function(){u()},reload:function(t){s(),p(t)}};r.set(!0),i.onAction(a,n,e,o),r.set(!1)}))}),o,ux.BUBBLE_TO_SANDBOX,e,i.highlightOn)}))},f=function(e){if(!a()){var i=p_(t,e.range);n.set(_.some({triggerChar:e.triggerChar,element:i,matchLength:e.text.length})),r.set(!1)}},d=function(e,n,r,o){e.matchLength=n.text.length;var a=dt(r,(function(t){return _.from(t.columns)})).getOr(1);Lw.showAt(i,{anchor:"node",root:er.fromDom(t.getBody()),node:_.from(e.element)},xw.sketch(uE(Wx("autocompleter-value",!0,o,a,"normal"),a,RM.ContentFocus,"normal"))),Lw.getContent(i).each(jg.highlightFirst)},h=function(e){return n.get().map((function(n){return x_(t.dom,t.selection.getRng(),n.triggerChar).bind((function(n){return I_(t,c,n,e)}))})).getOrThunk((function(){return P_(t,c)}))},p=function(t){h(t).fold(u,(function(t){f(t.context),t.lookupData.then((function(e){n.get().map((function(n){var r=t.context;if(n.triggerChar===r.triggerChar){var i=l(r.triggerChar,e);i.length>0?d(n,r,e,i):r.text.length-n.matchLength>=10?u():s()}}))}))}))},m=c_((function(t){27!==t.which&&p()}),50),g={onKeypress:m,cancelIfNecessary:u,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return Lw.getContent(i)}};!1===t.hasPlugin("rtc")&&S_.setup(g,t)},lE={register:cE},fE=f,dE=function(t,e,n){return $u(t,e,fE,n)},hE=function(t,e,n){return Hu(t,e,fE,n)},pE=zu,mE=function(t,e,n){return mc(t,e,n).isSome()};function gE(t,e){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout((function(){t.apply(null,r),n=null}),e)},i=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:i,schedule:r}}var vE=5,bE=400,yE=function(t){var e=t.raw;return void 0===e.touches||1!==e.touches.length?_.none():_.some(e.touches[0])},wE=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>vE||r>vE},_E=function(t){var e=Yn(_.none()),n=Yn(!1),r=gE((function(e){t.triggerEvent(qi(),e),n.set(!0)}),bE),i=function(t){return yE(t).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:t.target};r.schedule(t),n.set(!1),e.set(_.some(o))})),_.none()},o=function(t){return r.cancel(),yE(t).each((function(t){e.get().each((function(n){wE(t,n)&&e.set(_.none())}))})),_.none()},a=function(i){r.cancel();var o=function(t){return ii(t.target,i.target)};return e.get().filter(o).map((function(e){return n.get()?(i.prevent(),!1):t.triggerEvent(Ui(),i)}))},s=le([{key:bi(),value:i},{key:yi(),value:o},{key:wi(),value:a}]),u=function(t,e){return jt(s,e).bind((function(e){return e(t)}))};return{fireIfReady:u}},xE=function(t){var e=t.raw;return e.which===Fg[0]&&!$(["input","textarea"],Po(t.target))&&!mE(t.target,'[contenteditable="true"]')},CE=function(){return Kr().browser.isFirefox()},SE=Le([kn("triggerEvent"),zn("stopBackspace",!0)]),kE=function(t,e){return CE()?hE(t,"focus",e):dE(t,"focusin",e)},ME=function(t,e){return CE()?hE(t,"blur",e):dE(t,"focusout",e)},EE=function(t,e){var n=on("Getting GUI events settings",SE,e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=_E(n),o=q(r.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(e){return dE(t,e,(function(t){i.fireIfReady(t,e).each((function(e){e&&t.kill()}));var r=n.triggerEvent(e,t);r&&t.kill()}))})),a=Yn(_.none()),s=dE(t,"paste",(function(t){i.fireIfReady(t,"paste").each((function(e){e&&t.kill()}));var e=n.triggerEvent("paste",t);e&&t.kill(),a.set(_.some(setTimeout((function(){n.triggerEvent(Fi(),t)}),0)))})),u=dE(t,"keydown",(function(t){var e=n.triggerEvent("keydown",t);e?t.kill():!0===n.stopBackspace&&xE(t)&&t.prevent()})),c=kE(t,(function(t){var e=n.triggerEvent("focusin",t);e&&t.kill()})),l=Yn(_.none()),f=ME(t,(function(t){var e=n.triggerEvent("focusout",t);e&&t.kill(),l.set(_.some(setTimeout((function(){n.triggerEvent(ji(),t)}),0)))})),d=function(){W(o,(function(t){t.unbind()})),u.unbind(),c.unbind(),f.unbind(),s.unbind(),a.get().each(clearTimeout),l.get().each(clearTimeout)};return{unbind:d}},OE=function(t,e){var n=jt(t,"target").getOr(e);return Yn(n)},TE=function(t,e){var n=Yn(!1),r=Yn(!1),i=function(){n.set(!0)},o=function(){r.set(!0)};return{stop:i,cut:o,isStopped:n.get,isCut:r.get,event:t,setSource:e.set,getSource:e.get}},AE=function(t){var n=Yn(!1),r=function(){n.set(!0)};return{stop:r,cut:e,isStopped:n.get,isCut:l,event:t,setSource:c("Cannot set source of a broadcasted event"),getSource:c("Cannot get source of a broadcasted event")}},DE=Vt.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),NE=function(t,e,n,r,i,o){var a=t(e,r),s=TE(n,i);return a.fold((function(){return o.logEventNoHandlers(e,r),DE.complete()}),(function(t){var n=t.descHandler,r=as(n);return r(s),s.isStopped()?(o.logEventStopped(e,t.element,n.purpose),DE.stopped()):s.isCut()?(o.logEventCut(e,t.element,n.purpose),DE.complete()):qo(t.element).fold((function(){return o.logNoParent(e,t.element,n.purpose),DE.complete()}),(function(r){return o.logEventResponse(e,t.element,n.purpose),DE.resume(r)}))}))},RE=function(t,e,n,r,i,o){return NE(t,e,n,r,i,o).fold((function(){return!0}),(function(r){return RE(t,e,n,r,i,o)}),(function(){return!1}))},PE=function(t,e,n,r,i){var o=OE(n,r);return NE(t,e,n,r,o,i)},IE=function(t,e,n){var r=AE(e);return W(t,(function(t){var e=t.descHandler,n=as(e);n(r)})),r.isStopped()},BE=function(t,e,n,r){return LE(t,e,n,n.target,r)},LE=function(t,e,n,r,i){var o=OE(n,r);return RE(t,e,n,r,o,i)},zE=function(t,e){return{element:t,descHandler:e}},jE=function(t,e){return{id:t,descHandler:e}};function FE(){var t={},e=function(e,n,r){At(r,(function(r,i){var o=void 0!==t[i]?t[i]:{};o[n]=os(r,e),t[i]=o}))},n=function(t,e){return Pa(e).fold((function(){return _.none()}),(function(n){return t.bind((function(t){return jt(t,n)})).map((function(t){return zE(e,t)}))}))},r=function(e){return jt(t,e).map((function(t){return Bt(t,(function(t,e){return jE(e,t)}))})).getOr([])},i=function(e,r,i){var o=jt(t,r);return li(i,(function(t){return n(o,t)}),e)},o=function(e){At(t,(function(t,n){t.hasOwnProperty(e)&&delete t[e]}))};return{registerId:e,unregisterId:o,filterByType:r,find:i}}function $E(){var t=FE(),e={},n=function(t){var e=t.element;return Pa(e).fold((function(){return Na("uid-",t.element)}),(function(t){return t}))},r=function(t,n){var r=e[n];if(r!==t)throw new Error('The tagId "'+n+'" is already used by: '+xa(r.element)+"\nCannot use it for: "+xa(t.element)+"\nThe conflicting element is"+(Us(r.element)?" ":" not ")+"already in the DOM");o(t)},i=function(i){var o=n(i);$t(e,o)&&r(i,o);var a=[i];t.registerId(a,o,i.events),e[o]=i},o=function(n){Pa(n.element).each((function(n){delete e[n],t.unregisterId(n)}))},a=function(e){return t.filterByType(e)},s=function(e,n,r){return t.find(e,n,r)},u=function(t){return jt(e,t)};return{find:s,filter:a,register:i,unregister:o,getById:u}}var HE=function(t){var e=t.dom,n=e.attributes,r=p(e,["attributes"]);return{uid:t.uid,dom:h({tag:"div",attributes:h({role:"presentation"},n)},r),components:t.components,behaviours:Xp(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},VE=sg({name:"Container",factory:HE,configFields:[zn("components",[]),Yp("containerBehaviours",[]),zn("events",{}),zn("domModification",{}),zn("eventOrder",{})]}),UE=function(t){var n=function(e){return qo(t.element).fold((function(){return!0}),(function(t){return ii(e,t)}))},r=$E(),i=function(t,e){return r.find(n,t,e)},a=EE(t.element,{triggerEvent:function(t,e){return Oc(t,e.target,(function(n){return BE(i,t,e,n)}))}}),s={debugInfo:o("real"),triggerEvent:function(t,e,n){Oc(t,e,(function(r){return LE(i,t,n,e,r)}))},triggerFocus:function(t,n){Pa(t).fold((function(){Xl(t)}),(function(r){Oc(zi(),t,(function(r){return PE(i,zi(),{originator:n,kill:e,prevent:e,target:t},t,r),!1}))}))},triggerEscape:function(t,e){s.triggerEvent("keydown",t.element,e.event)},getByUid:function(t){return b(t)},getByDom:function(t){return y(t)},build:yu,addToGui:function(t){l(t)},removeFromGui:function(t){d(t)},addToWorld:function(t){u(t)},removeFromWorld:function(t){c(t)},broadcast:function(t){m(t)},broadcastOn:function(t,e){g(t,e)},broadcastEvent:function(t,e){v(t,e)},isConnected:f},u=function(t){t.connect(s),zo(t.element)||(r.register(t),W(t.components(),u),s.triggerEvent(Gi(),t.element,{target:t.element}))},c=function(t){zo(t.element)||(W(t.components(),c),r.unregister(t)),t.disconnect()},l=function(e){zh(t,e)},d=function(t){$h(t)},h=function(){a.unbind(),aa(t.element)},p=function(t){var e=r.filter($i());W(e,(function(e){var n=e.descHandler,r=as(n);r(t)}))},m=function(t){p({universal:!0,data:t})},g=function(t,e){p({universal:!1,channels:t,data:e})},v=function(t,e){var n=r.filter(t);return IE(n,e)},b=function(t){return r.getById(t).fold((function(){return gt.error(new Error('Could not find component with uid: "'+t+'" in system.'))}),gt.value)},y=function(t){var e=Pa(t).getOr("not found");return b(e)};return u(t),{root:t,element:t.element,destroy:h,add:l,remove:d,getByUid:b,getByDom:y,addToWorld:u,removeFromWorld:c,broadcast:m,broadcastOn:g,broadcastEvent:v}},qE=function(t,e){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:q(t.items,e.interpreter)}},WE=o([zn("prefix","form-field"),Yp("fieldBehaviours",[yg,Gp])]),KE=o([Tm({schema:[yn("dom")],name:"label"}),Tm({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[yn("text")],name:"aria-descriptor"}),Em({factory:{sketch:function(t){var e=ue(t,["factory"]);return t.factory.sketch(e)}},schema:[yn("factory")],name:"field"})]),GE=function(t,e,n,r){var i=Zp(t.fieldBehaviours,[yg.config({find:function(e){return Hm(e,t,"field")}}),Gp.config({store:{mode:"manual",getValue:function(t){return yg.getCurrent(t).bind(Gp.getValue)},setValue:function(t,e){yg.getCurrent(t).each((function(t){Gp.setValue(t,e)}))}}})]),o=go([Ao((function(e,n){var r=Um(e,t,["label","field","aria-descriptor"]);r.field().each((function(e){var n=Ea(t.prefix);r.label().each((function(t){ha(t.element,"for",n),ha(e.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=Ea(t.prefix);ha(n.element,"id",r),ha(e.element,"aria-describedby",r)}))}))}))]),a={getField:function(e){return Hm(e,t,"field")},getLabel:function(e){return Hm(e,t,"label")}};return{uid:t.uid,dom:t.dom,components:e,behaviours:i,events:o,apis:a}},YE=ug({name:"FormField",configFields:WE(),partFields:KE(),factory:GE,apis:{getField:function(t,e){return t.getField(e)},getLabel:function(t,e){return t.getLabel(e)}}}),XE=function(t,e){return Qa({attributes:le([{key:e.tabAttr,value:"true"}])})},ZE=Object.freeze({__proto__:null,exhibit:XE}),JE=[zn("tabAttr","data-alloy-tabstop")],QE=Hl({fields:JE,name:"tabstopping",active:ZE}),tO=tinymce.util.Tools.resolve("tinymce.html.Entities"),eO=function(t,e,n,r){var i=rO(t,e,n,r);return YE.sketch(i)},nO=function(t,e){return eO(t,e,[],[])},rO=function(t,e,n,r){return{dom:oO(n),components:t.toArray().concat([e]),fieldBehaviours:Fl(r)}},iO=function(){return oO([])},oO=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},aO=function(t,e){return YE.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}})},sO=Ea("form-component-change"),uO=Ea("form-close"),cO=Ea("form-cancel"),lO=Ea("form-action"),fO=Ea("form-submit"),dO=Ea("form-block"),hO=Ea("form-unblock"),pO=Ea("form-tabchange"),mO=Ea("form-resize"),gO=function(t,e){var n,r=t.label.map((function(t){return aO(t,e)})),i=function(t){return function(e,n){mc(n.event.target,"[data-collection-item-value]").each((function(r){t(e,n,r,ma(r,"data-collection-item-value"))}))}},o=function(n,r){var i=q(r,(function(n){var r=AC.translate(n.text),i=1===t.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(t){return a[t]})),u=e.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+u+'" tabindex="-1" data-collection-item-value="'+tO.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"})),o="auto"!==t.columns&&t.columns>1?U(i,t.columns):[i],a=q(o,(function(t){return'<div class="tox-collection__group">'+t.join("")+"</div>"}));la(n.element,a.join(""))},s=i((function(n,r,i,o){r.stop(),e.isDisabled()||lo(n,lO,{name:t.name,value:o})})),u=[wo(Mi(),i((function(t,e,n){Xl(n)}))),wo(Ri(),s),wo(Ui(),s),wo(Ei(),i((function(t,e,n){pc(t.element,"."+wx).each((function(t){Ts(t,wx)})),Es(n,wx)}))),wo(Oi(),i((function(t){pc(t.element,"."+wx).each((function(t){Ts(t,wx)}))}))),Ro(i((function(e,n,r,i){lo(e,lO,{name:t.name,value:i})})))],c=function(t,e){return q(Bd(t.element,".tox-collection__item"),e)},l=YE.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==t.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:a},behaviours:Fl([YC.config({disabled:e.isDisabled,onDisabled:function(t){c(t,(function(t){Es(t,"tox-collection__item--state-disabled"),ha(t,"aria-disabled",!0)}))},onEnabled:function(t){c(t,(function(t){Ts(t,"tox-collection__item--state-disabled"),ba(t,"aria-disabled")}))}}),HS(),_y.config({}),Gp.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,n){o(e,n),"auto"===t.columns&&hC(e,5,"tox-collection__item").each((function(t){var n=t.numRows,r=t.numColumns;fy.setGridSize(e,n,r)})),co(e,mO)}}),QE.config({}),fy.config(DM(t.columns,"normal")),Cy("collection-events",u)]),eventOrder:(n={},n[Hi()]=["disabling","alloy.base.behaviour","collection-events"],n)}),f=["tox-form__group--collection"];return eO(r,l,f,[])},vO=o([An("data"),zn("inputAttributes",{}),zn("inputStyles",{}),zn("tag","input"),zn("inputClasses",[]),zc("onSetValue"),zn("styles",{}),zn("eventOrder",{}),Yp("inputBehaviours",[Gp,Ny]),zn("selectOnFocus",!0)]),bO=function(t){return Fl([Ny.config({onFocus:t.selectOnFocus?function(t){var e=t.element,n=ou(e);e.dom.setSelectionRange(0,n.length)}:e})])},yO=function(t){return h(h({},bO(t)),Zp(t.inputBehaviours,[Gp.config({store:h(h({mode:"manual"},t.data.map((function(t){return{initialValue:t}})).getOr({})),{getValue:function(t){return ou(t.element)},setValue:function(t,e){var n=ou(t.element);n!==e&&au(t.element,e)}}),onSetValue:t.onSetValue})]))},wO=function(t){return{tag:t.tag,attributes:h({type:"text"},t.inputAttributes),styles:t.inputStyles,classes:t.inputClasses}},_O=function(t,e){return{uid:t.uid,dom:wO(t),components:[],behaviours:yO(t),eventOrder:t.eventOrder}},xO=sg({name:"Input",configFields:vO(),factory:_O}),CO={},SO={exports:CO};(function(e,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof e&&e.amd)e([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function t(e,n,r){function o(s,u){if(!n[s]){if(!e[s]){var c="function"==typeof i&&i;if(!u&&c)return c(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[s]={exports:{}};e[s][0].call(f.exports,(function(t){var n=e[s][1][t];return o(n||t)}),f,f.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return t}()({1:[function(t,e,n){var r,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(t){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(t){i=s}})();var l,f=[],d=!1,h=-1;function p(){d&&l&&(d=!1,l.length?f=l.concat(f):h=-1,f.length&&m())}function m(){if(!d){var t=u(p);d=!0;var e=f.length;while(e){l=f,f=[];while(++h<e)l&&l[h].run();h=-1,e=f.length}l=null,d=!1,c(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new g(t,e)),1!==f.length||d||u(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(t,e,n){(function(t){(function(n){var r=setTimeout;function i(){}function o(t,e){return function(){t.apply(e,arguments)}}function a(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function s(t,e){while(3===t._state)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void c(e.promise,i)}u(e.promise,r)}else(1===t._state?u:c)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void l(t);if("function"===typeof n)return void d(o(n,e),t)}t._state=1,t._value=e,l(t)}catch(r){c(t,r)}}function c(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&a._immediateFn((function(){t._handled||a._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)s(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,u(e,t))}),(function(t){n||(n=!0,c(e,t))}))}catch(r){if(n)return;n=!0,c(e,r)}}a.prototype["catch"]=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(i);return s(this,new f(t,e,n)),n},a.all=function(t){var e=Array.prototype.slice.call(t);return new a((function(t,n){if(0===e.length)return t([]);var r=e.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){i(o,t)}),n)}e[o]=a,0===--r&&t(e)}catch(u){n(u)}}for(var o=0;o<e.length;o++)i(o,e[o])}))},a.resolve=function(t){return t&&"object"===typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)}))},a._immediateFn="function"===typeof t?function(e){t(e)}:function(t){r(t,0)},a._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},a._setImmediateFn=function(t){a._immediateFn=t},a._setUnhandledRejectionFn=function(t){a._unhandledRejectionFn=t},"undefined"!==typeof e&&e.exports?e.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,e,n){(function(e,r){var i=t("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"===typeof e?e:function(t){var e=u++,r=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,i((function(){s[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"===typeof r?r:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e,n){var r=t("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();e.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,CO,SO,void 0);var kO,MO=SO.exports.boltExport,EO=function(t){var e=_.none(),n=[],r=function(t){return EO((function(e){i((function(n){e(t(n))}))}))},i=function(t){a()?u(t):n.push(t)},o=function(t){a()||(e=_.some(t),s(n),n=[])},a=function(){return e.isSome()},s=function(t){W(t,u)},u=function(t){e.each((function(e){setTimeout((function(){t(e)}),0)}))};return t(o),{get:i,map:r,isReady:a}},OO=function(t){return EO((function(e){e(t)}))},TO={nu:EO,pure:OO},AO=function(t){setTimeout((function(){throw t}),0)},DO=function(t){var e=function(e){t().then(e,AO)},n=function(e){return DO((function(){return t().then(e)}))},r=function(e){return DO((function(){return t().then((function(t){return e(t).toPromise()}))}))},i=function(e){return DO((function(){return t().then((function(){return e.toPromise()}))}))},o=function(){return TO.nu(e)},a=function(){var e=null;return DO((function(){return null===e&&(e=t()),e}))},s=t;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:e}},NO=function(t){return DO((function(){return new MO(t)}))},RO=function(t){return DO((function(){return MO.resolve(t)}))},PO={nu:NO,pure:RO},IO=["input","textarea"],BO=function(t){var e=Po(t);return $(IO,e)},LO=function(t,e){var n=e.getRoot(t).getOr(t.element);Ts(n,e.invalidClass),e.notify.each((function(e){BO(t.element)&&ha(t.element,"aria-invalid",!1),e.getContainer(t).each((function(t){la(t,e.validHtml)})),e.onValid(t)}))},zO=function(t,e,n,r){var i=e.getRoot(t).getOr(t.element);Es(i,e.invalidClass),e.notify.each((function(e){BO(t.element)&&ha(t.element,"aria-invalid",!0),e.getContainer(t).each((function(t){la(t,r)})),e.onInvalid(t,r)}))},jO=function(t,e,n){return e.validator.fold((function(){return PO.pure(gt.value(!0))}),(function(e){return e.validate(t)}))},FO=function(t,e,n){return e.notify.each((function(e){e.onValidate(t)})),jO(t,e).map((function(r){return t.getSystem().isConnected()?r.fold((function(r){return zO(t,e,n,r),gt.error(r)}),(function(n){return LO(t,e),gt.value(n)})):gt.error("No longer in system")}))},$O=function(t,e){var n=e.getRoot(t).getOr(t.element);return As(n,e.invalidClass)},HO=Object.freeze({__proto__:null,markValid:LO,markInvalid:zO,query:jO,run:FO,isInvalid:$O}),VO=function(t,n){return t.validator.map((function(r){return go([wo(r.onEvent,(function(e){FO(e,t,n).get(a)}))].concat(r.validateOnLoad?[Ao((function(r){FO(r,t,n).get(e)}))]:[]))})).getOr({})},UO=Object.freeze({__proto__:null,events:VO}),qO=[yn("invalidClass"),zn("getRoot",_.none),Bn("notify",[zn("aria","alert"),zn("getContainer",_.none),zn("validHtml",""),zc("onValid"),zc("onInvalid"),zc("onValidate")]),Bn("validator",[yn("validate"),zn("onEvent","input"),zn("validateOnLoad",!0)])],WO=Hl({fields:qO,name:"invalidating",active:UO,apis:HO,extra:{validation:function(t){return function(e){var n=Gp.getValue(e);return PO.pure(t(n))}}}}),KO=function(t,e,n,r){return n.getOrCreate(t,e,r)},GO=Object.freeze({__proto__:null,getCoupled:KO}),YO=[wn("others",tn(gt.value,ln()))],XO=function(){var t={},e=function(e,n,r){var i=Ot(n.others);if(i)return jt(t,r).getOrThunk((function(){var i=jt(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(e),a=e.getSystem().build(o);return t[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=o({});return Ga({readState:n,getOrCreate:e})},ZO=Object.freeze({__proto__:null,init:XO}),JO=Hl({fields:YO,name:"coupling",apis:GO,state:ZO}),QO=o("sink"),tT=o(Tm({name:QO(),overrides:o({dom:{tag:"div"},behaviours:Fl([Nh.config({useFixed:f})]),events:go([Eo(Ti()),Eo(xi()),Eo(Ri())])})}));(function(t){t[t["HighlightFirst"]=0]="HighlightFirst",t[t["HighlightNone"]=1]="HighlightNone"})(kO||(kO={}));var eT=function(t,e){var n=t.getHotspot(e).getOr(e),r="hotspot",i=t.getAnchorOverrides();return t.layouts.fold((function(){return{anchor:r,hotspot:n,overrides:i}}),(function(t){return{anchor:r,hotspot:n,overrides:i,layouts:t}}))},nT=function(t,e,n){var r=t.fetch;return r(n).map(e)},rT=function(t,e,n,r,i,o,a){var s=nT(t,e,r),u=uT(r,t);return s.map((function(t){return t.bind((function(t){return _.from(Pw.sketch(h(h({},o.menu()),{uid:Ia(""),data:t,highlightImmediately:a===kO.HighlightFirst,onOpenMenu:function(t,e){var r=u().getOrDie();Nh.position(r,n,e),dp.decloak(i)},onOpenSubmenu:function(t,e,n){var r=u().getOrDie();Nh.position(r,{anchor:"submenu",item:e},n),dp.decloak(i)},onRepositionMenu:function(t,e,r){var i=u().getOrDie();Nh.position(i,n,e),W(r,(function(t){Nh.position(i,{anchor:"submenu",item:t.triggeringItem},t.triggeredMenu)}))},onEscape:function(){return Ny.focus(r),dp.close(i),_.some(!0)}})))}))}))},iT=function(t,e,n,r,i,o,a){var s=eT(t,n),u=rT(t,e,s,n,r,i,a);return u.map((function(t){return t.fold((function(){dp.isOpen(r)&&dp.close(r)}),(function(t){dp.cloak(r),dp.open(r,t),o(r)})),r}))},oT=function(t,e,n,r,i,o,a){return dp.close(r),PO.pure(r)},aT=function(t,e,n,r,i,o){var a=JO.getCoupled(n,"sandbox"),s=dp.isOpen(a),u=s?oT:iT;return u(t,e,n,a,r,i,o)},sT=function(t,e,n){var r=yg.getCurrent(e).getOr(e),i=Pu(t.element);n?Ys(r.element,"min-width",i+"px"):Ru(r.element,i)},uT=function(t,e){return t.getSystem().getByUid(e.uid+"-"+QO()).map((function(t){return function(){return gt.value(t)}})).getOrThunk((function(){return e.lazySink.fold((function(){return function(){return gt.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(e){return function(){return e(t)}}))}))},cT=function(t){dp.getState(t).each((function(t){Pw.repositionMenus(t)}))},lT=function(t,e,n){var r=vc(),i=function(i,o){var a=eT(t,e);r.link(e.element),t.matchWidth&&sT(a.hotspot,o,t.useMinWidth),t.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(t,i){r.unlink(e.element),void 0!==n&&void 0!==n.onClose&&n.onClose(t,i)},a=uT(e,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:Jp.augment(t.sandboxBehaviours,[Gp.config({store:{mode:"memory",initialValue:e}}),dp.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return yc(n,r)||yc(e,r)},getAttachPoint:function(){return a().getOrDie()}}),yg.config({find:function(t){return dp.getState(t).bind((function(t){return yg.getCurrent(t)}))}}),Wl.config({channels:h(h({},vp({isExtraPart:l})),yp({doReposition:cT}))})])}},fT=function(t){var e=JO.getCoupled(t,"sandbox");cT(e)},dT=function(){return[zn("sandboxClasses",[]),Jp.field("sandboxBehaviours",[yg,Wl,dp,Gp])]},hT=o([yn("dom"),yn("fetch"),zc("onOpen"),jc("onExecute"),zn("getHotspot",_.some),zn("getAnchorOverrides",o({})),Hf(),Yp("dropdownBehaviours",[Zy,JO,fy,Ny]),yn("toggleClass"),zn("eventOrder",{}),An("lazySink"),zn("matchWidth",!1),zn("useMinWidth",!1),An("role")].concat(dT())),pT=o([Om({schema:[Ic()],name:"menu",defaults:function(t){return{onExecute:t.onExecute}}}),tT()]),mT=function(t,n,r,i){var o,a=function(e){return jt(t.dom,"attributes").bind((function(t){return jt(t,e)}))},s=function(t){dp.getState(t).each((function(t){Pw.highlightPrimary(t)}))},u=function(n){var r=s;aT(t,(function(t){return t}),n,i,r,kO.HighlightFirst).get(e)},c={expand:function(n){Zy.isOn(n)||aT(t,(function(t){return t}),n,i,e,kO.HighlightNone).get(e)},open:function(n){Zy.isOn(n)||aT(t,(function(t){return t}),n,i,e,kO.HighlightFirst).get(e)},isOpen:Zy.isOn,close:function(n){Zy.isOn(n)&&aT(t,(function(t){return t}),n,i,e,kO.HighlightFirst).get(e)},repositionMenus:function(t){Zy.isOn(t)&&fT(t)}},l=function(t,e){return fo(t),_.some(!0)};return{uid:t.uid,dom:t.dom,components:n,behaviours:Zp(t.dropdownBehaviours,[Zy.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),JO.config({others:{sandbox:function(e){return lT(t,e,{onOpen:function(){Zy.on(e)},onClose:function(){Zy.off(e)}})}}}),fy.config({mode:"special",onSpace:l,onEnter:l,onDown:function(t,e){if(gT.isOpen(t)){var n=JO.getCoupled(t,"sandbox");s(n)}else gT.open(t);return _.some(!0)},onEscape:function(t,e){return gT.isOpen(t)?(gT.close(t),_.some(!0)):_.none()}}),Ny.config({})]),events:Qy(_.some(u)),eventOrder:h(h({},t.eventOrder),(o={},o[Hi()]=["disabling","toggling","alloy.base.behaviour"],o)),apis:c,domModification:{attributes:h(h({"aria-haspopup":"true"},t.role.fold((function(){return{}}),(function(t){return{role:t}}))),"button"===t.dom.tag?{type:a("type").getOr("button")}:{})}}},gT=ug({name:"Dropdown",configFields:hT(),partFields:pT(),factory:mT,apis:{open:function(t,e){return t.open(e)},expand:function(t,e){return t.expand(e)},close:function(t,e){return t.close(e)},isOpen:function(t,e){return t.isOpen(e)},repositionMenus:function(t,e){return t.repositionMenus(e)}}}),vT=function(){return Qa({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},bT=function(){return go([vo(Ii(),f)])},yT=Object.freeze({__proto__:null,events:bT,exhibit:vT}),wT=Hl({fields:[],name:"unselecting",active:yT}),_T=function(t,e){return gT.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:Fl([KS.button(e.providers.isDisabled),HS(),wT.config({}),QE.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:e.getSink,fetch:function(n){return PO.nu((function(e){return t.fetch(e)})).map((function(r){return _.from(sE(Gt(OM(Ea("menu-value"),r,(function(e){t.onItemAction(n,e)}),t.columns,t.presets,ux.CLOSE_ON_EXECUTE,(function(){return!1}),e.providers),{movement:AM(t.columns,t.presets)})))}))},parts:{menu:Bx(!1,1,t.presets)}})},xT=Ea("color-input-change"),CT=Ea("color-swatch-change"),ST=Ea("color-picker-cancel"),kT=function(t,e,n){var r=YE.parts.field({factory:xO,inputClasses:["tox-textfield"],onSetValue:function(t){return WO.run(t).get((function(){}))},inputBehaviours:Fl([YC.config({disabled:e.providers.isDisabled}),HS(),QE.config({}),WO.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(t){return qo(t.element)},notify:{onValid:function(t){var e=Gp.getValue(t);lo(t,xT,{color:e})}},validator:{validateOnLoad:!1,validate:function(t){var e=Gp.getValue(t);if(0===e.length)return PO.pure(gt.value(!0));var n=er.fromTag("span");Ys(n,"background-color",e);var r=tu(n,"background-color").fold((function(){return gt.error("blah")}),(function(t){return gt.value(e)}));return PO.pure(r)}}})]),selectOnFocus:!1}),i=t.label.map((function(t){return aO(t,e.providers)})),o=function(t,e){lo(t,CT,{value:e})},a=function(t,e){s.getOpt(t).each((function(t){"custom"===e?n.colorPicker((function(e){e.fold((function(){return co(t,ST)}),(function(e){o(t,e),dM(e)}))}),"#ffffff"):o(t,"remove"===e?"":e)}))},s=Jw(_T({dom:{tag:"span",attributes:{"aria-label":e.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[gl,ml,wl]},onLtr:function(){return[ml,gl,wl]}},components:[],fetch:xM(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},e));return YE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:Fl([Cy("form-field-events",[wo(xT,(function(e,n){s.getOpt(e).each((function(t){Ys(t.element,"background-color",n.event.color)})),lo(e,sO,{name:t.name})})),wo(CT,(function(t,e){YE.getField(t).each((function(n){Gp.setValue(n,e.event.value),yg.getCurrent(t).each(Ny.focus)}))})),wo(ST,(function(t,e){YE.getField(t).each((function(e){yg.getCurrent(t).each(Ny.focus)}))}))])])})},MT=function(t,e,n){return{hue:t,saturation:e,value:n}},ET=function(t){var e=0,n=0,r=0,i=t.red/255,o=t.green/255,a=t.blue/255,s=Math.min(i,Math.min(o,a)),u=Math.max(i,Math.max(o,a));if(s===u)return r=s,MT(0,0,100*r);var c=i===s?o-a:a===s?i-o:a-i;return e=i===s?3:a===s?1:5,e=60*(e-c/(u-s)),n=(u-s)/u,r=u,MT(Math.round(e),Math.round(100*n),Math.round(100*r))},OT=function(t){var e=(100-t)/100*360,n=MT(e,100,100),r=Hk(n);return Pk(r)},TT=Ea("rgb-hex-update"),AT=Ea("slider-update"),DT=Ea("palette-update"),NT=Tm({schema:[yn("dom")],name:"label"}),RT=function(t){return Tm({name:t+"-edge",overrides:function(e){var n=e.model.manager.edgeActions[t];return n.fold((function(){return{}}),(function(t){return{events:go([_o(bi(),(function(e,n,r){return t(e,r)}),[e]),_o(xi(),(function(e,n,r){return t(e,r)}),[e]),_o(Ci(),(function(e,n,r){r.mouseIsDown.get()&&t(e,r)}),[e])])}}))}})},PT=RT("top-left"),IT=RT("top"),BT=RT("top-right"),LT=RT("right"),zT=RT("bottom-right"),jT=RT("bottom"),FT=RT("bottom-left"),$T=RT("left"),HT=Em({name:"thumb",defaults:o({dom:{styles:{position:"absolute"}}}),overrides:function(t){return{events:go([ko(bi(),t,"spectrum"),ko(yi(),t,"spectrum"),ko(wi(),t,"spectrum"),ko(xi(),t,"spectrum"),ko(Ci(),t,"spectrum"),ko(ki(),t,"spectrum")])}}}),VT=Em({schema:[Gn("mouseIsDown",(function(){return Yn(!1)}))],name:"spectrum",overrides:function(t){var e=t.model,n=e.manager,r=function(e,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(e,t,r)}))};return{behaviours:Fl([fy.config({mode:"special",onLeft:function(e){return n.onLeft(e,t)},onRight:function(e){return n.onRight(e,t)},onUp:function(e){return n.onUp(e,t)},onDown:function(e){return n.onDown(e,t)}}),Ny.config({})]),events:go([wo(bi(),r),wo(yi(),r),wo(xi(),r),wo(Ci(),(function(e,n){t.mouseIsDown.get()&&r(e,n)}))])}}}),UT=[NT,$T,LT,IT,jT,PT,BT,FT,zT,HT,VT],qT="slider.change.value",WT=o(qT),KT=function(t){return-1!==t.type.indexOf("touch")},GT=function(t){var e=t.event.raw;if(KT(e)){var n=e;return void 0!==n.touches&&1===n.touches.length?_.some(n.touches[0]).map((function(t){return Eu(t.clientX,t.clientY)})):_.none()}var r=e;return void 0!==r.clientX?_.some(r).map((function(t){return Eu(t.clientX,t.clientY)})):_.none()},YT="top",XT="right",ZT="bottom",JT="left",QT=function(t){return t.model.minX},tA=function(t){return t.model.minY},eA=function(t){return t.model.minX-1},nA=function(t){return t.model.minY-1},rA=function(t){return t.model.maxX},iA=function(t){return t.model.maxY},oA=function(t){return t.model.maxX+1},aA=function(t){return t.model.maxY+1},sA=function(t,e,n){return e(t)-n(t)},uA=function(t){return sA(t,rA,QT)},cA=function(t){return sA(t,iA,tA)},lA=function(t){return uA(t)/2},fA=function(t){return cA(t)/2},dA=function(t){return t.stepSize},hA=function(t){return t.snapToGrid},pA=function(t){return t.snapStart},mA=function(t){return t.rounded},gA=function(t,e){return void 0!==t[e+"-edge"]},vA=function(t){return gA(t,JT)},bA=function(t){return gA(t,XT)},yA=function(t){return gA(t,YT)},wA=function(t){return gA(t,ZT)},_A=function(t){return t.model.value.get()},xA=function(t){return{x:t}},CA=function(t){return{y:t}},SA=function(t,e){return{x:t,y:e}},kA=function(t,e){lo(t,WT(),{value:e})},MA=function(t,e){kA(t,SA(eA(e),nA(e)))},EA=function(t,e){kA(t,CA(nA(e)))},OA=function(t,e){kA(t,SA(lA(e),nA(e)))},TA=function(t,e){kA(t,SA(oA(e),nA(e)))},AA=function(t,e){kA(t,xA(oA(e)))},DA=function(t,e){kA(t,SA(oA(e),fA(e)))},NA=function(t,e){kA(t,SA(oA(e),aA(e)))},RA=function(t,e){kA(t,CA(aA(e)))},PA=function(t,e){kA(t,SA(lA(e),aA(e)))},IA=function(t,e){kA(t,SA(eA(e),aA(e)))},BA=function(t,e){kA(t,xA(eA(e)))},LA=function(t,e){kA(t,SA(eA(e),fA(e)))},zA=function(t,e,n,r){return t<e?t:t>n?n:t===e?e-1:Math.max(e,t-r)},jA=function(t,e,n,r){return t>n?t:t<e?e:t===n?n+1:Math.min(n,t+r)},FA=function(t,e,n){return Math.max(e,Math.min(n,t))},$A=function(t,e,n,r,i){return i.fold((function(){var i=t-e,o=Math.round(i/r)*r;return FA(e+o,e-1,n+1)}),(function(e){var i=(t-e)%r,o=Math.round(i/r),a=Math.floor((t-e)/r),s=Math.floor((n-e)/r),u=Math.min(s,a+o),c=e+u*r;return Math.max(e,c)}))},HA=function(t,e,n){return Math.min(n,Math.max(t,e))-e},VA=function(t){var e=t.min,n=t.max,r=t.range,i=t.value,o=t.step,a=t.snap,s=t.snapStart,u=t.rounded,c=t.hasMinEdge,l=t.hasMaxEdge,f=t.minBound,d=t.maxBound,h=t.screenRange,p=c?e-1:e,m=l?n+1:n;if(i<f)return p;if(i>d)return m;var g=HA(i,f,d),v=FA(g/h*r+e,p,m);return a&&v>=e&&v<=n?$A(v,e,n,o,s):u?Math.round(v):v},UA=function(t){var e=t.min,n=t.max,r=t.range,i=t.value,o=t.hasMinEdge,a=t.hasMaxEdge,s=t.maxBound,u=t.maxOffset,c=t.centerMinEdge,l=t.centerMaxEdge;return i<e?o?0:c:i>n?a?s:l:(i-e)/r*u},qA="top",WA="right",KA="bottom",GA="left",YA="width",XA="height",ZA=function(t){return t.element.dom.getBoundingClientRect()},JA=function(t,e){return t[e]},QA=function(t){var e=ZA(t);return JA(e,GA)},tD=function(t){var e=ZA(t);return JA(e,WA)},eD=function(t){var e=ZA(t);return JA(e,qA)},nD=function(t){var e=ZA(t);return JA(e,KA)},rD=function(t){var e=ZA(t);return JA(e,YA)},iD=function(t){var e=ZA(t);return JA(e,XA)},oD=function(t,e,n){return(t+e)/2-n},aD=function(t,e){var n=ZA(t),r=ZA(e),i=JA(n,GA),o=JA(n,WA),a=JA(r,GA);return oD(i,o,a)},sD=function(t,e){var n=ZA(t),r=ZA(e),i=JA(n,qA),o=JA(n,KA),a=JA(r,qA);return oD(i,o,a)},uD=function(t,e){lo(t,WT(),{value:e})},cD=function(t){return{x:t}},lD=function(t,e,n){var r={min:QT(e),max:rA(e),range:uA(e),value:n,step:dA(e),snap:hA(e),snapStart:pA(e),rounded:mA(e),hasMinEdge:vA(e),hasMaxEdge:bA(e),minBound:QA(t),maxBound:tD(t),screenRange:rD(t)};return VA(r)},fD=function(t,e,n){var r=lD(t,e,n),i=cD(r);return uD(t,i),r},dD=function(t,e){var n=QT(e);uD(t,cD(n))},hD=function(t,e){var n=rA(e);uD(t,cD(n))},pD=function(t,e,n){var r=t>0?jA:zA,i=r(_A(n).x,QT(n),rA(n),dA(n));return uD(e,cD(i)),_.some(i)},mD=function(t){return function(e,n){return pD(t,e,n).map((function(){return!0}))}},gD=function(t){var e=GT(t);return e.map((function(t){return t.left}))},vD=function(t,e,n,r,i){var o=0,a=rD(t),s=r.bind((function(e){return _.some(aD(e,t))})).getOr(o),u=i.bind((function(e){return _.some(aD(e,t))})).getOr(a),c={min:QT(e),max:rA(e),range:uA(e),value:n,hasMinEdge:vA(e),hasMaxEdge:bA(e),minBound:QA(t),minOffset:o,maxBound:tD(t),maxOffset:a,centerMinEdge:s,centerMaxEdge:u};return UA(c)},bD=function(t,e,n,r,i,o){var a=vD(e,o,n,r,i);return QA(e)-QA(t)+a},yD=function(t,e,n,r){var i=_A(n),o=bD(t,r.getSpectrum(t),i.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=Pu(e.element)/2;Ys(e.element,"left",o-a+"px")},wD=mD(-1),_D=mD(1),xD=_.none,CD=_.none,SD={"top-left":_.none(),top:_.none(),"top-right":_.none(),right:_.some(AA),"bottom-right":_.none(),bottom:_.none(),"bottom-left":_.none(),left:_.some(BA)},kD=Object.freeze({__proto__:null,setValueFrom:fD,setToMin:dD,setToMax:hD,findValueOfOffset:lD,getValueFromEvent:gD,findPositionOfValue:bD,setPositionFromValue:yD,onLeft:wD,onRight:_D,onUp:xD,onDown:CD,edgeActions:SD}),MD=function(t,e){lo(t,WT(),{value:e})},ED=function(t){return{y:t}},OD=function(t,e,n){var r={min:tA(e),max:iA(e),range:cA(e),value:n,step:dA(e),snap:hA(e),snapStart:pA(e),rounded:mA(e),hasMinEdge:yA(e),hasMaxEdge:wA(e),minBound:eD(t),maxBound:nD(t),screenRange:iD(t)};return VA(r)},TD=function(t,e,n){var r=OD(t,e,n),i=ED(r);return MD(t,i),r},AD=function(t,e){var n=tA(e);MD(t,ED(n))},DD=function(t,e){var n=iA(e);MD(t,ED(n))},ND=function(t,e,n){var r=t>0?jA:zA,i=r(_A(n).y,tA(n),iA(n),dA(n));return MD(e,ED(i)),_.some(i)},RD=function(t){return function(e,n){return ND(t,e,n).map((function(){return!0}))}},PD=function(t){var e=GT(t);return e.map((function(t){return t.top}))},ID=function(t,e,n,r,i){var o=0,a=iD(t),s=r.bind((function(e){return _.some(sD(e,t))})).getOr(o),u=i.bind((function(e){return _.some(sD(e,t))})).getOr(a),c={min:tA(e),max:iA(e),range:cA(e),value:n,hasMinEdge:yA(e),hasMaxEdge:wA(e),minBound:eD(t),minOffset:o,maxBound:nD(t),maxOffset:a,centerMinEdge:s,centerMaxEdge:u};return UA(c)},BD=function(t,e,n,r,i,o){var a=ID(e,o,n,r,i);return eD(e)-eD(t)+a},LD=function(t,e,n,r){var i=_A(n),o=BD(t,r.getSpectrum(t),i.y,r.getTopEdge(t),r.getBottomEdge(t),n),a=Cu(e.element)/2;Ys(e.element,"top",o-a+"px")},zD=_.none,jD=_.none,FD=RD(-1),$D=RD(1),HD={"top-left":_.none(),top:_.some(EA),"top-right":_.none(),right:_.none(),"bottom-right":_.none(),bottom:_.some(RA),"bottom-left":_.none(),left:_.none()},VD=Object.freeze({__proto__:null,setValueFrom:TD,setToMin:AD,setToMax:DD,findValueOfOffset:OD,getValueFromEvent:PD,findPositionOfValue:BD,setPositionFromValue:LD,onLeft:zD,onRight:jD,onUp:FD,onDown:$D,edgeActions:HD}),UD=function(t,e){lo(t,WT(),{value:e})},qD=function(t,e){return{x:t,y:e}},WD=function(t,e,n){var r=lD(t,e,n.left),i=OD(t,e,n.top),o=qD(r,i);return UD(t,o),o},KD=function(t,e,n,r){var i=t>0?jA:zA,o=e?_A(r).x:i(_A(r).x,QT(r),rA(r),dA(r)),a=e?i(_A(r).y,tA(r),iA(r),dA(r)):_A(r).y;return UD(n,qD(o,a)),_.some(o)},GD=function(t,e){return function(n,r){return KD(t,e,n,r).map((function(){return!0}))}},YD=function(t,e){var n=QT(e),r=tA(e);UD(t,qD(n,r))},XD=function(t,e){var n=rA(e),r=iA(e);UD(t,qD(n,r))},ZD=function(t){return GT(t)},JD=function(t,e,n,r){var i=_A(n),o=bD(t,r.getSpectrum(t),i.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=BD(t,r.getSpectrum(t),i.y,r.getTopEdge(t),r.getBottomEdge(t),n),s=Pu(e.element)/2,u=Cu(e.element)/2;Ys(e.element,"left",o-s+"px"),Ys(e.element,"top",a-u+"px")},QD=GD(-1,!1),tN=GD(1,!1),eN=GD(-1,!0),nN=GD(1,!0),rN={"top-left":_.some(MA),top:_.some(OA),"top-right":_.some(TA),right:_.some(DA),"bottom-right":_.some(NA),bottom:_.some(PA),"bottom-left":_.some(IA),left:_.some(LA)},iN=Object.freeze({__proto__:null,setValueFrom:WD,setToMin:YD,setToMax:XD,getValueFromEvent:ZD,setPositionFromValue:JD,onLeft:QD,onRight:tN,onUp:eN,onDown:nN,edgeActions:rN}),oN=[zn("stepSize",1),zn("onChange",e),zn("onChoose",e),zn("onInit",e),zn("onDragStart",e),zn("onDragEnd",e),zn("snapToGrid",!1),zn("rounded",!0),An("snapStart"),wn("model",un("mode",{x:[zn("minX",0),zn("maxX",100),Gn("value",(function(t){return Yn(t.mode.minX)})),yn("getInitialValue"),Hc("manager",kD)],y:[zn("minY",0),zn("maxY",100),Gn("value",(function(t){return Yn(t.mode.minY)})),yn("getInitialValue"),Hc("manager",VD)],xy:[zn("minX",0),zn("maxX",100),zn("minY",0),zn("maxY",100),Gn("value",(function(t){return Yn({x:t.mode.minX,y:t.mode.minY})})),yn("getInitialValue"),Hc("manager",iN)]})),Yp("sliderBehaviours",[fy,Gp]),Gn("mouseIsDown",(function(){return Yn(!1)}))],aN=function(t,e,n,r){var i,o=function(e){return Vm(e,t,"thumb")},a=function(e){return Vm(e,t,"spectrum")},s=function(e){return Hm(e,t,"left-edge")},u=function(e){return Hm(e,t,"right-edge")},c=function(e){return Hm(e,t,"top-edge")},l=function(e){return Hm(e,t,"bottom-edge")},d=t.model,h=d.manager,p=function(e,n){h.setPositionFromValue(e,n,t,{getLeftEdge:s,getRightEdge:u,getTopEdge:c,getBottomEdge:l,getSpectrum:a})},m=function(e,n){d.value.set(n);var r=o(e);return p(e,r),t.onChange(e,r,n),_.some(!0)},g=function(e){h.setToMin(e,t)},v=function(e){h.setToMax(e,t)},b=function(e){var n=function(){Hm(e,t,"thumb").each((function(n){var r=d.value.get();t.onChoose(e,n,r)}))},r=t.mouseIsDown.get();t.mouseIsDown.set(!1),r&&n()},y=function(e,n){n.stop(),t.mouseIsDown.set(!0),t.onDragStart(e,o(e))},w=function(e,n){n.stop(),t.onDragEnd(e,o(e)),b(e)};return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.sliderBehaviours,[fy.config({mode:"special",focusIn:function(e){return Hm(e,t,"spectrum").map(fy.focusIn).map(f)}}),Gp.config({store:{mode:"manual",getValue:function(t){return d.value.get()}}}),Wl.config({channels:(i={},i[mp()]={onReceive:b},i)})]),events:go([wo(WT(),(function(t,e){m(t,e.event.value)})),Ao((function(e,n){var r=d.getInitialValue();d.value.set(r);var i=o(e);p(e,i);var s=a(e);t.onInit(e,i,s,d.value.get())})),wo(bi(),y),wo(wi(),w),wo(xi(),y),wo(ki(),w)]),apis:{resetToMin:g,resetToMax:v,changeValue:m,refresh:p},domModification:{styles:{position:"relative"}}}},sN=ug({name:"Slider",configFields:oN,partFields:UT,factory:aN,apis:{resetToMin:function(t,e){t.resetToMin(e)},resetToMax:function(t,e){t.resetToMax(e)},refresh:function(t,e){t.refresh(e)}}}),uN=function(t,e){var n=sN.parts.spectrum({dom:{tag:"div",classes:[e("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=sN.parts.thumb({dom:{tag:"div",classes:[e("hue-slider-thumb")],attributes:{role:"presentation"}}});return sN.sketch({dom:{tag:"div",classes:[e("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:o({y:0})},components:[n,r],sliderBehaviours:Fl([Ny.config({})]),onChange:function(t,e,n){lo(t,AT,{value:n})}})},cN="form",lN=[Yp("formBehaviours",[Gp])],fN=function(t){return"<alloy.field."+t+">"},dN=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),Lm(cN,fN(e),n)};return{field:e,record:function(){return t}}}(),n=t(e),r=e.record(),i=q(r,(function(t){return Em({name:t,pname:fN(t)})}));return tg(cN,lN,i,pN,n)},hN=function(t,e){return t.fold((function(){return gt.error(e)}),gt.value)},pN=function(t,e){return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.formBehaviours,[Gp.config({store:{mode:"manual",getValue:function(e){var n=qm(e,t);return Dt(n,(function(t,e){return t().bind((function(t){var n=yg.getCurrent(t);return hN(n,new Error("Cannot find a current component to extract the value from for form part '"+e+"': "+xa(t.element)))})).map(Gp.getValue)}))},setValue:function(e,n){At(n,(function(n,r){Hm(e,t,r).each((function(t){yg.getCurrent(t).each((function(t){Gp.setValue(t,n)}))}))}))}}})]),apis:{getField:function(e,n){return Hm(e,t,n).bind(yg.getCurrent)}}}},mN={getField:Wa((function(t,e,n){return t.getField(e,n)})),sketch:dN},gN=Ea("valid-input"),vN=Ea("invalid-input"),bN=Ea("validating-input"),yN="colorcustom.rgb.",wN=function(t,n,r,i){var o=function(e,r){return WO.config({invalidClass:n("invalid"),notify:{onValidate:function(t){lo(t,bN,{type:e})},onValid:function(t){lo(t,gN,{type:e,value:Gp.getValue(t)})},onInvalid:function(t){lo(t,vN,{type:e,value:Gp.getValue(t)})}},validator:{validate:function(e){var n=Gp.getValue(e),i=r(n)?gt.value(!0):gt.error(t("aria.input.invalid"));return PO.pure(i)},validateOnLoad:!1}})},a=function(r,i,a,s,u){var c=t(yN+"range"),l=YE.parts.label({dom:{tag:"label",innerHtml:a,attributes:{"aria-label":s}}}),f=YE.parts.field({data:u,factory:xO,inputAttributes:h({type:"text"},"hex"===i?{"aria-live":"polite"}:{}),inputClasses:[n("textfield")],inputBehaviours:Fl([o(i,r),QE.config({})]),onSetValue:function(t){if(WO.isInvalid(t)){var n=WO.run(t);n.get(e)}}}),d=[l,f],p="hex"!==i?[YE.parts["aria-descriptor"]({text:c})]:[],m=d.concat(p);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},s=function(t,e){var n=Pk(e);return mN.getField(t,"hex").each((function(e){Ny.isFocused(e)||Gp.setValue(t,{hex:n.value})})),n},u=function(t,e){var n=e.red,r=e.green,i=e.blue;Gp.setValue(t,{red:n,green:r,blue:i})},c=Jw({dom:{tag:"div",classes:[n("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(t,e){c.getOpt(t).each((function(t){Ys(t.element,"background-color","#"+e.value)}))},f=function(){var e={red:Yn(_.some(255)),green:Yn(_.some(255)),blue:Yn(_.some(255)),hex:Yn(_.some("ffffff"))},o=function(t,e){var n=Vk(e);u(t,n),p(n)},f=function(t){return e[t].get()},d=function(t,n){e[t].set(n)},h=function(){return f("red").bind((function(t){return f("green").bind((function(e){return f("blue").map((function(n){return Fk(t,e,n,1)}))}))}))},p=function(t){var e=t.red,n=t.green,r=t.blue;d("red",_.some(e)),d("green",_.some(n)),d("blue",_.some(r))},m=function(t,e){var n=e.event;"hex"!==n.type?d(n.type,_.none()):i(t)},g=function(t,e){r(t);var n=Ek(e);d("hex",_.some(e));var i=Vk(n);u(t,i),p(i),lo(t,TT,{hex:n}),l(t,n)},v=function(t,e,n){var r=parseInt(n,10);d(e,_.some(r)),h().each((function(e){var n=s(t,e);l(t,n)}))},b=function(t){return"hex"===t.type},y=function(t,e){var n=e.event;b(n)?g(t,n.value):v(t,n.type,n.value)},w=function(e){return{label:t(yN+e+".label"),description:t(yN+e+".description")}},x=w("red"),C=w("green"),S=w("blue"),k=w("hex");return Gt(mN.sketch((function(e){return{dom:{tag:"form",classes:[n("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[e.field("red",YE.sketch(a($k,"red",x.label,x.description,255))),e.field("green",YE.sketch(a($k,"green",C.label,C.description,255))),e.field("blue",YE.sketch(a($k,"blue",S.label,S.description,255))),e.field("hex",YE.sketch(a(Ak,"hex",k.label,k.description,"ffffff"))),c.asSpec()],formBehaviours:Fl([WO.config({invalidClass:n("form-invalid")}),Cy("rgb-form-events",[wo(gN,y),wo(vN,m),wo(bN,m)])])}})),{apis:{updateHex:function(t,e){Gp.setValue(t,{hex:e.value}),o(t,e),l(t,e)}}})},d=sg({factory:f,name:"RgbForm",configFields:[],apis:{updateHex:function(t,e,n){t.updateHex(e,n)}},extraApis:{}});return d},_N=function(t,e){var n=sN.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[e("sv-palette-spectrum")]}}),r=sN.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette-thumb")],innerHtml:"<div class="+e("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(t,e){var n=t.width,r=t.height,i=t.getContext("2d");if(null!==i){i.fillStyle=e,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},a=function(t,e){var n=t.components()[0].element.dom;i(n,Wk(e))},s=function(t){var a=o({x:0,y:0}),s=function(t,e,n){lo(t,DT,{value:n})},u=function(t,e,n,r){i(n.element.dom,Wk(Kk))},c=Fl([yg.config({find:_.some}),Ny.config({})]);return sN.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette")]},model:{mode:"xy",getInitialValue:a},rounded:!1,components:[n,r],onChange:s,onInit:u,sliderBehaviours:c})},u=sg({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(t,e,n){a(e,n)}},extraApis:{}});return u},xN=function(t,n){var r=function(e){var r=wN(t,n,e.onValidHex,e.onInvalidHex),i=_N(t,n),o={paletteRgba:Yn(Kk)},a=Jw(i.sketch({})),s=Jw(r.sketch({})),u=function(t,e){a.getOpt(t).each((function(t){var n=Vk(e);o.paletteRgba.set(n),i.setRgba(t,n)}))},c=function(t,e){s.getOpt(t).each((function(t){r.updateHex(t,e)}))},l=function(t,e,n){W(n,(function(n){n(t,e)}))},f=function(){var t=[c];return function(e,n){var r=n.event.value,i=o.paletteRgba.get(),a=ET(i),s=MT(a.hue,r.x,100-r.y),u=Hk(s),c=Pk(u);l(e,c,t)}},d=function(){var t=[u,c];return function(e,n){var r=n.event.value,i=OT(r.y);l(e,i,t)}};return{uid:e.uid,dom:e.dom,components:[a.asSpec(),uN(t,n),s.asSpec()],behaviours:Fl([Cy("colour-picker-events",[wo(DT,f()),wo(AT,d())]),yg.config({find:function(t){return s.getOpt(t)}}),fy.config({mode:"acyclic"})])}},i=sg({name:"ColourPicker",configFields:[yn("dom"),zn("onValidHex",e),zn("onInvalidHex",e)],factory:r});return i},CN=function(){return yg.config({find:_.some})},SN=function(t){return yg.config({find:t.getOpt})},kN=function(t){return yg.config({find:function(e){return Xo(e.element,t).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}})},MN={self:CN,memento:SN,childAt:kN},EN={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},ON=function(t){return EN[t]},TN=function(t){return ON(t)},AN=function(t){var e=function(t){return"tox-"+t},n=xN(TN,e),r=function(t){lo(t,lO,{name:"hex-valid",value:!0})},i=function(t){lo(t,lO,{name:"hex-valid",value:!1})},o=Jw(n.sketch({dom:{tag:"div",classes:[e("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:Fl([Gp.config({store:{mode:"manual",getValue:function(t){var e=o.get(t),n=yg.getCurrent(e),r=n.bind((function(t){var e=Gp.getValue(t);return e.hex}));return r.map((function(t){return"#"+t})).getOr("")},setValue:function(t,e){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(e),i=o.get(t),a=yg.getCurrent(i);a.fold((function(){console.log("Can not find form")}),(function(t){Gp.setValue(t,{hex:_.from(r[1]).getOr("")}),mN.getField(t,"hex").each((function(t){co(t,Di())}))}))}}}),MN.self()])}},DN=tinymce.util.Tools.resolve("tinymce.Resource"),NN=function(t){return Object.prototype.hasOwnProperty.call(t,"init")},RN=function(t){var e=Yn(_.none()),n=Jw({dom:{tag:t.tag}}),r=Yn(_.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Fl([Cy("custom-editor-events",[Ao((function(i){n.getOpt(i).each((function(n){(NN(t)?t.init(n.element.dom):DN.load(t.scriptId,t.scriptUrl).then((function(e){return e(n.element.dom,t.settings)}))).then((function(t){r.get().each((function(e){t.setValue(e)})),r.set(_.none()),e.set(_.some(t))}))}))}))]),Gp.config({store:{mode:"manual",getValue:function(){return e.get().fold((function(){return r.get().getOr("")}),(function(t){return t.getValue()}))},setValue:function(t,n){e.get().fold((function(){r.set(_.some(n))}),(function(t){return t.setValue(n)}))}}}),MN.self()]),components:[n.asSpec()]}},PN=tinymce.util.Tools.resolve("tinymce.util.Tools"),IN=ze([zn("preprocess",a),zn("postprocess",a)]),BN=function(t,e){var n=on("RepresentingConfigs.memento processors",IN,e);return Gp.config({store:{mode:"manual",getValue:function(e){var r=t.get(e),i=Gp.getValue(r);return n.postprocess(i)},setValue:function(e,r){var i=n.preprocess(r),o=t.get(e);Gp.setValue(o,i)}}})},LN=function(t,e,n){return Gp.config(Gt({store:{mode:"manual",getValue:e,setValue:n}},t.map((function(t){return{store:{initialValue:t}}})).getOr({})))},zN=function(t,e,n){return LN(t,(function(t){return e(t.element)}),(function(t,e){return n(t.element,e)}))},jN=function(t){return zN(t,ou,au)},FN=function(t){return zN(t,ca,la)},$N=function(t){return Gp.config({store:{mode:"memory",initialValue:t}})},HN={memento:BN,withElement:zN,withComp:LN,domValue:jN,domHtml:FN,memory:$N},VN="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",UN=function(t,e){var n=PN.explode(e.getSetting("images_file_types",VN,"string")),r=function(t){return H(n,(function(e){return mr(t.name,"."+e)}))};return Y(ft(t),r)},qN=function(t,e){var n=function(t,e){e.stop()},r=function(t){return function(e,n){W(t,(function(t){t(e,n)}))}},i=function(t,e){if(!YC.isDisabled(t)){var n=e.event.raw;a(t,n.dataTransfer.files)}},o=function(t,e){var n=e.event.raw.target;a(t,n.files)},a=function(n,r){Gp.setValue(n,UN(r,e)),lo(n,sO,{name:t.name})},s=Jw({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Fl([Cy("input-file-events",[Eo(Ri()),Eo(Ui())])])}),u=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Fl([HN.memory([]),MN.self(),YC.config({}),Zy.config({toggleClass:"dragenter",toggleOnExecute:!1}),Cy("dropzone-events",[wo("dragenter",r([n,Zy.toggle])),wo("dragleave",r([n,Zy.toggle])),wo("dragover",n),wo("drop",r([n,i])),wo(Ni(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:e.translate("Drop an image here")}},Zw.sketch({dom:{tag:"button",innerHtml:e.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(t){var e=s.get(t);e.element.dom.click()},buttonBehaviours:Fl([QE.config({}),KS.button(e.isDisabled),HS()])})]}]}},c=t.label.map((function(t){return aO(t,e)})),l=YE.parts.field({factory:{sketch:u}});return eO(c,l,["tox-form__group--stretched"],[])},WN=function(t,e){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+t.columns+"col"]},components:q(t.items,e.interpreter)}},KN=Ea("alloy-fake-before-tabstop"),GN=Ea("alloy-fake-after-tabstop"),YN=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:Fl([Ny.config({ignore:!0}),QE.config({})])}},XN=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[YN([KN]),t,YN([GN])],behaviours:Fl([MN.childAt(1)])}},ZN=function(t,e){lo(t,Ti(),{raw:{which:9,shiftKey:e}})},JN=function(t,e){var n=e.element;As(n,KN)?ZN(t,!0):As(n,GN)&&ZN(t,!1)},QN=function(t){return mE(t,["."+KN,"."+GN].join(","),l)},tR=!(Kr().browser.isIE()||Kr().browser.isEdge()),eR=function(t){var e=Yn("");return{getValue:function(t){return e.get()},setValue:function(n,r){if(t)ha(n.element,"srcdoc",r);else{ha(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}e.set(r)}}},nR=function(t,e){var n=tR&&t.sandboxed,r=h(h({},t.label.map((function(t){return{title:t}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=eR(n),o=t.label.map((function(t){return aO(t,e)})),a=function(t){return XN({uid:t.uid,dom:{tag:"iframe",attributes:r},behaviours:Fl([QE.config({}),Ny.config({}),HN.withComp(_.none(),i.getValue,i.setValue)])})},s=YE.parts.field({factory:{sketch:a}});return eO(o,s,["tox-form__group--stretched"],[])};function rR(t,e){return aR(document.createElement("canvas"),t,e)}function iR(t){var e=rR(t.width,t.height),n=oR(e);return n.drawImage(t,0,0),e}function oR(t){return t.getContext("2d")}function aR(t,e,n){return t.width=e,t.height=n,t}function sR(t){return t.naturalWidth||t.width}function uR(t){return t.naturalHeight||t.height}var cR=function(){var t=function(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(t,r(a,this),r(s,this))},e=window,n=t.immediateFn||"function"===typeof e.setImmediate&&e.setImmediate||function(t){setTimeout(t,1)};function r(t,e){return function(){return t.apply(e,arguments)}}var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t){var e=this;null!==this._state?n((function(){var n=e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void t.reject(i)}t.resolve(r)}else(e._state?t.resolve:t.reject)(e._value)})):this._deferreds.push(t)}function a(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var e=t.then;if("function"===typeof e)return void l(r(e,t),r(a,this),r(s,this))}this._state=!0,this._value=t,u.call(this)}catch(n){s.call(this,n)}}function s(t){this._state=!1,this._value=t,u.call(this)}function u(){for(var t=0,e=this._deferreds;t<e.length;t++){var n=e[t];o.call(this,n)}this._deferreds=[]}function c(t,e,n,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r}function l(t,e,n){var r=!1;try{t((function(t){r||(r=!0,e(t))}),(function(t){r||(r=!0,n(t))}))}catch(i){if(r)return;r=!0,n(i)}}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.then=function(e,n){var r=this;return new t((function(t,i){o.call(r,new c(e,n,t,i))}))},t.all=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Array.prototype.slice.call(1===e.length&&i(e[0])?e[0]:e);return new t((function(t,e){if(0===r.length)return t([]);var n=r.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){i(o,t)}),e)}r[o]=a,0===--n&&t(r)}catch(u){e(u)}}for(var o=0;o<r.length;o++)i(o,r[o])}))},t.resolve=function(e){return e&&"object"===typeof e&&e.constructor===t?e:new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];o.then(t,n)}}))},t},lR=window.Promise?window.Promise:cR();function fR(t){return new lR((function(e,n){var r=URL.createObjectURL(t),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)};function a(){o(),e(i)}function s(){o(),n("Unable to load data of type "+t.type+": "+r)}i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&a()}))}function dR(t){var e=t.split(","),n=/data:([^;]+)/.exec(e[0]);if(!n)return _.none();for(var r=n[1],i=e[1],o=1024,a=atob(i),s=a.length,u=Math.ceil(s/o),c=new Array(u),l=0;l<u;++l){for(var f=l*o,d=Math.min(f+o,s),h=new Array(d-f),p=f,m=0;p<d;++m,++p)h[m]=a[p].charCodeAt(0);c[l]=new Uint8Array(h)}return _.some(new Blob(c,{type:r}))}function hR(t){return new lR((function(e,n){dR(t).fold((function(){n("uri is not base64: "+t)}),e)}))}function pR(t,e,n){return e=e||"image/png",R(HTMLCanvasElement.prototype.toBlob)?new lR((function(r,i){t.toBlob((function(t){t?r(t):i()}),e,n)})):hR(t.toDataURL(e,n))}function mR(t,e,n){return e=e||"image/png",t.toDataURL(e,n)}function gR(t){return fR(t).then((function(t){bR(t);var e=rR(sR(t),uR(t)),n=oR(e);return n.drawImage(t,0,0),e}))}function vR(t){return new lR((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))}function bR(t){URL.revokeObjectURL(t.src)}function yR(t,e,n){var r=e.type,i=o(r);function a(){return lR.resolve(e)}var s=o(n);function u(){return n.split(",")[1]}function c(e,n){return t.then((function(t){return pR(t,e,n)}))}function l(e,n){return t.then((function(t){return mR(t,e,n)}))}function f(t,e){return l(t,e).then((function(t){return t.split(",")[1]}))}function d(){return t.then(iR)}return{getType:i,toBlob:a,toDataURL:s,toBase64:u,toAdjustedBlob:c,toAdjustedDataURL:l,toAdjustedBase64:f,toCanvas:d}}function wR(t){return vR(t).then((function(e){return yR(gR(t),t,e)}))}function _R(t,e){return pR(t,e).then((function(e){return yR(lR.resolve(t),e,t.toDataURL())}))}var xR=function(t){return wR(t)};function CR(t,e,n){var r="string"===typeof t?parseFloat(t):t;return r>n?r=n:r<e&&(r=e),r}function SR(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}var kR=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10];function MR(t,e){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=e[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=t[a+5*s]*r[s];i[a+5*o]=n}}return i}function ER(t,e){var n;return e=CR(e,-1,1),e*=100,e<0?n=127+e/100*127:(n=e%1,n=0===n?kR[e]:kR[Math.floor(e)]*(1-n)+kR[Math.floor(e)+1]*n,n=127*n+127),MR(t,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])}function OR(t,e){return e=CR(255*e,-255,255),MR(t,[1,0,0,0,e,0,1,0,0,e,0,0,1,0,e,0,0,0,1,0,0,0,0,0,1])}function TR(t,e,n,r){return e=CR(e,0,2),n=CR(n,0,2),r=CR(r,0,2),MR(t,[e,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])}function AR(t,e){return t.toCanvas().then((function(n){return DR(n,t.getType(),e)}))}function DR(t,e,n){var r=oR(t);function i(t,e){for(var n,r,i,o,a=t.data,s=e[0],u=e[1],c=e[2],l=e[3],f=e[4],d=e[5],h=e[6],p=e[7],m=e[8],g=e[9],v=e[10],b=e[11],y=e[12],w=e[13],_=e[14],x=e[15],C=e[16],S=e[17],k=e[18],M=e[19],E=0;E<a.length;E+=4)n=a[E],r=a[E+1],i=a[E+2],o=a[E+3],a[E]=n*s+r*u+i*c+o*l+f,a[E+1]=n*d+r*h+i*p+o*m+g,a[E+2]=n*v+r*b+i*y+o*w+_,a[E+3]=n*x+r*C+i*S+o*k+M;return t}var o=i(r.getImageData(0,0,t.width,t.height),n);return r.putImageData(o,0,0),_R(t,e)}function NR(t,e){return t.toCanvas().then((function(n){return RR(n,t.getType(),e)}))}function RR(t,e,n){var r=oR(t);function i(t,e,n){function r(t,e,n){return t>n?t=n:t<e&&(t=e),t}for(var i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=t.data,s=e.data,u=t.width,c=t.height,l=0;l<c;l++)for(var f=0;f<u;f++){for(var d=0,h=0,p=0,m=0;m<i;m++)for(var g=0;g<i;g++){var v=r(f+g-o,0,u-1),b=r(l+m-o,0,c-1),y=4*(b*u+v),w=n[m*i+g];d+=a[y]*w,h+=a[y+1]*w,p+=a[y+2]*w}var _=4*(l*u+f);s[_]=r(d,0,255),s[_+1]=r(h,0,255),s[_+2]=r(p,0,255)}return e}var o=r.getImageData(0,0,t.width,t.height),a=r.getImageData(0,0,t.width,t.height);return a=i(o,a,n),r.putImageData(a,0,0),_R(t,e)}function PR(t){var e=function(e,n,r){var i=oR(e),o=new Array(256);function a(t,e){for(var n=t.data,r=0;r<n.length;r+=4)n[r]=e[n[r]],n[r+1]=e[n[r+1]],n[r+2]=e[n[r+2]];return t}for(var s=0;s<o.length;s++)o[s]=t(s,r);var u=a(i.getImageData(0,0,e.width,e.height),o);return i.putImageData(u,0,0),_R(e,n)};return function(t,n){return t.toCanvas().then((function(r){return e(r,t.getType(),n)}))}}function IR(t){return function(e,n){return AR(e,t(SR(),n))}}function BR(t){return function(e){return AR(e,t)}}function LR(t){return function(e){return NR(e,t)}}var zR=BR([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),jR=IR(OR),FR=IR(ER),$R=function(t,e,n,r){return AR(t,TR(SR(),e,n,r))},HR=LR([0,-1,0,-1,5,-1,0,-1,0]),VR=PR((function(t,e){return 255*Math.pow(t/255,1-e)}));function UR(t,e,n){var r=sR(t),i=uR(t),o=e/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var u=qR(t,o,a);return s?u.then((function(t){return UR(t,e,n)})):u}function qR(t,e,n){return new lR((function(r){var i=sR(t),o=uR(t),a=Math.floor(i*e),s=Math.floor(o*n),u=rR(a,s),c=oR(u);c.drawImage(t,0,0,i,o,0,0,a,s),r(u)}))}function WR(t,e){return t.toCanvas().then((function(n){return KR(n,t.getType(),e)}))}function KR(t,e,n){var r=rR(t.width,t.height),i=oR(r),o=0,a=0;return n=n<0?360+n:n,90!==n&&270!==n||aR(r,r.height,r.width),90!==n&&180!==n||(o=r.width),270!==n&&180!==n||(a=r.height),i.translate(o,a),i.rotate(n*Math.PI/180),i.drawImage(t,0,0),_R(r,e)}function GR(t,e){return t.toCanvas().then((function(n){return YR(n,t.getType(),e)}))}function YR(t,e,n){var r=rR(t.width,t.height),i=oR(r);return"v"===n?(i.scale(1,-1),i.drawImage(t,0,-r.height)):(i.scale(-1,1),i.drawImage(t,-r.width,0)),_R(r,e)}function XR(t,e,n,r,i){return t.toCanvas().then((function(o){return ZR(o,t.getType(),e,n,r,i)}))}function ZR(t,e,n,r,i,o){var a=rR(i,o),s=oR(a);return s.drawImage(t,-n,-r),_R(a,e)}function JR(t,e,n){return t.toCanvas().then((function(r){return UR(r,e,n).then((function(e){return _R(e,t.getType())}))}))}var QR,tP=function(t){return zR(t)},eP=function(t){return HR(t)},nP=function(t,e){return VR(t,e)},rP=function(t,e,n,r){return $R(t,e,n,r)},iP=function(t,e){return jR(t,e)},oP=function(t,e){return FR(t,e)},aP=function(t,e){return GR(t,e)},sP=function(t,e,n,r,i){return XR(t,e,n,r,i)},uP=function(t,e,n){return JR(t,e,n)},cP=function(t,e){return WR(t,e)},lP=function(t,e){return h({dom:{tag:"span",innerHtml:t,classes:["tox-icon","tox-tbtn__icon-wrap"]}},e)},fP=function(t,e){return lP(t_(t,e),{})},dP=function(t,e){return lP(t_(t,e),{behaviours:Fl([_y.config({})])})},hP=function(t,e,n){return{dom:{tag:"span",innerHtml:n.translate(t),classes:[e+"__select-label"]},behaviours:Fl([_y.config({})])}},pP=Ea("toolbar.button.execute"),mP=function(t){return Ro((function(e,n){GS(t,e)((function(n){lo(e,pP,{buttonApi:n}),t.onAction(n)}))}))},gP=(QR={},QR[Hi()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],QR),vP=Ea("update-menu-text"),bP=Ea("update-menu-icon"),yP=function(t,n,r){var i=Yn(e),o=t.text.map((function(t){return Jw(hP(t,n,r.providers))})),a=t.icon.map((function(t){return Jw(dP(t,r.providers.icons))})),u=function(t,e){var n=Gp.getValue(t);return Ny.focus(n),lo(n,"keydown",{raw:e.event.raw}),gT.close(n),_.some(!0)},c=t.role.fold((function(){return{}}),(function(t){return{role:t}})),l=t.tooltip.fold((function(){return{}}),(function(t){var e=r.providers.translate(t);return{title:e,"aria-label":e}})),f=Jw(gT.sketch(h(h(h({},t.uid?{uid:t.uid}:{}),c),{dom:{tag:"button",classes:[n,n+"--select"].concat(q(t.classes,(function(t){return n+"--"+t}))),attributes:h({},l)},components:QS([a.map((function(t){return t.asSpec()})),o.map((function(t){return t.asSpec()})),_.some({dom:{tag:"div",classes:[n+"__select-chevron"],innerHtml:t_("chevron-down",r.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:Fl(m(t.dropdownBehaviours,[KS.button((function(){return t.disabled||r.providers.isDisabled()})),HS(),wT.config({}),_y.config({}),Cy("dropdown-events",[YS(t,i),XS(t,i)]),Cy("menubutton-update-display-text",[wo(vP,(function(t,e){o.bind((function(e){return e.getOpt(t)})).each((function(t){_y.set(t,[gu(r.providers.translate(e.event.text))])}))})),wo(bP,(function(t,e){a.bind((function(e){return e.getOpt(t)})).each((function(t){_y.set(t,[dP(e.event.icon,r.providers.icons)])}))}))])])),eventOrder:Gt(gP,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:Fl([fy.config({mode:"special",onLeft:u,onRight:u})]),lazySink:r.getSink,toggleClass:n+"--active",parts:{menu:Bx(!1,t.columns,t.presets)},fetch:function(e){return PO.nu(s(t.fetch,e))}})));return f.asSpec()},wP=function(t){return M(t)},_P=function(t){return"separator"===t.type},xP=function(t){return Ft(t,"getSubmenuItems")},CP={type:"separator"},SP=function(t,e){var n=Z(t,(function(t,n){return wP(n)?""===n?t:"|"===n?t.length>0&&!_P(t[t.length-1])?t.concat([CP]):t:Ft(e,n.toLowerCase())?t.concat([e[n.toLowerCase()]]):t:t.concat([n])}),[]);return n.length>0&&_P(n[n.length-1])&&n.pop(),n},kP=function(t,e){var n=t.getSubmenuItems(),r=OP(n,e),i=Gt(r.menus,ce(t.value,r.items)),o=Gt(r.expansions,ce(t.value,t.value));return{item:t,menus:i,expansions:o}},MP=function(t,e){return xP(t)?kP(t,e):{item:t,menus:{},expansions:{}}},EP=function(t){if(_P(t))return t;var e=jt(t,"value").getOrThunk((function(){return Ea("generated-menu-item")}));return Gt({value:e},t)},OP=function(t,e){var n=SP(M(t)?t.split(" "):t,e);return X(n,(function(t,n){var r=EP(n),i=MP(r,e);return{menus:Gt(t.menus,i.menus),items:[i.item].concat(t.items),expansions:Gt(t.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},TP=function(t,e,n,r){var i=Ea("primary-menu"),o=OP(t,n.shared.providers.menuItems());if(0===o.items.length)return _.none();var a=aE(i,o.items,e,n,r),s=Dt(o.menus,(function(t,r){return aE(r,t,e,n,!1)})),u=Gt(s,ce(i,a));return _.from(Pw.tieredData(i,u,o.expansions))},AP=function(t){return{isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)},setActive:function(e){var n=t.element;e?(Es(n,"tox-tbtn--enabled"),ha(n,"aria-pressed",!0)):(Ts(n,"tox-tbtn--enabled"),ba(n,"aria-pressed"))},isActive:function(){return As(t.element,"tox-tbtn--enabled")}}},DP=function(t,e,n,r){return yP({text:t.text,icon:t.icon,tooltip:t.tooltip,role:r,fetch:function(e,r){t.fetch((function(t){r(TP(t,ux.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:t.onSetup,getApi:AP,columns:1,presets:"normal",classes:[],dropdownBehaviours:[QE.config({})]},e,n.shared)},NP=function(t,e,n){var r=function(t){return function(r){var i=!r.isActive();r.setActive(i),t.storage.set(i),n.shared.getSink().each((function(n){e().getOpt(n).each((function(e){Xl(e.element),lo(e,lO,{name:t.name,value:t.storage.get()})}))}))}},i=function(t){return function(e){e.setActive(t.storage.get())}};return function(e){e(q(t,(function(t){var e=t.text.fold((function(){return{}}),(function(t){return{text:t}}));return h(h({type:t.type,active:!1},e),{onAction:r(t),onSetup:i(t)})})))}},RP=function(t,e,n,r,i,o){void 0===n&&(n=[]);var a=e.fold((function(){return{}}),(function(t){return{action:t}})),s=h({buttonBehaviours:Fl([KS.button((function(){return t.disabled||o.isDisabled()})),HS(),QE.config({}),Cy("button press",[yo("click"),yo("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),u=Gt(s,{dom:r});return Gt(u,{components:i})},PP=function(t,e,n,r){void 0===r&&(r=[]);var i=t.tooltip.map((function(t){return{"aria-label":n.translate(t),title:n.translate(t)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=t.icon.map((function(t){return fP(t,n.icons)})),s=QS([a]);return RP(t,e,r,o,s,n)},IP=function(t,e,n,r){void 0===r&&(r=[]);var i=PP(t,_.some(e),n,r);return Zw.sketch(i)},BP=function(t,e,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(t.text),a=t.icon?t.icon.map((function(t){return fP(t,n.icons)})):_.none(),s=a.isSome()?QS([a]):[],u=a.isSome()?{}:{innerHtml:o},c=m(t.primary||t.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],t.borderless?["tox-button--naked"]:[],i),l=h(h({tag:"button",classes:c},u),{attributes:{title:o}});return RP(t,e,r,l,s,n)},LP=function(t,e,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=BP(t,_.some(e),n,r,i);return Zw.sketch(o)},zP=function(t,e){return function(n){"custom"===e?lo(n,lO,{name:t,value:{}}):"submit"===e?co(n,fO):"cancel"===e?co(n,cO):console.error("Unknown button type: ",e)}},jP=function(t,e){return"menu"===e},FP=function(t,e){return"custom"===e||"cancel"===e||"submit"===e},$P=function(t,n,r){if(jP(t,n)){var i=function(){return s},o=t,a=h(h({},t),{onSetup:function(n){return n.setDisabled(t.disabled),e},fetch:NP(o.items,i,r)}),s=Jw(DP(a,"tox-tbtn",r,_.none()));return s.asSpec()}if(FP(t,n)){var u=zP(t.name,n),c=h(h({},t),{borderless:!1});return LP(c,u,r.shared.providers,[])}console.error("Unknown footer button type: ",n)},HP=function(t,e){var n=zP(t.name,"custom");return nO(_.none(),YE.parts.field(h({factory:Zw},BP(t,_.some(n),e,[HN.memory(""),MN.self()]))))},VP=o([zn("field1Name","field1"),zn("field2Name","field2"),Fc("onLockedChange"),Bc(["lockClass"]),zn("locked",!1),Jp.field("coupledFieldBehaviours",[yg,Gp])]),UP=function(t,e,n){return Hm(t,e,n).bind(yg.getCurrent)},qP=function(t,e){return Em({factory:YE,name:t,overrides:function(t){return{fieldBehaviours:Fl([Cy("coupled-input-behaviour",[wo(Di(),(function(n){UP(n,t,e).each((function(e){Hm(n,t,"lock").each((function(r){Zy.isOn(r)&&t.onLockedChange(n,e,r)}))}))}))])])}}})},WP=o([qP("field1","field2"),qP("field2","field1"),Em({factory:Zw,schema:[yn("dom")],name:"lock",overrides:function(t){return{buttonBehaviours:Fl([Zy.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])}}})]),KP=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:Jp.augment(t.coupledFieldBehaviours,[yg.config({find:_.some}),Gp.config({store:{mode:"manual",getValue:function(e){var n,r=Km(e,t,["field1","field2"]);return n={},n[t.field1Name]=Gp.getValue(r.field1()),n[t.field2Name]=Gp.getValue(r.field2()),n},setValue:function(e,n){var r=Km(e,t,["field1","field2"]);$t(n,t.field1Name)&&Gp.setValue(r.field1(),n[t.field1Name]),$t(n,t.field2Name)&&Gp.setValue(r.field2(),n[t.field2Name])}}})]),apis:{getField1:function(e){return Hm(e,t,"field1")},getField2:function(e){return Hm(e,t,"field2")},getLock:function(e){return Hm(e,t,"lock")}}}},GP=ug({name:"FormCoupledInputs",configFields:VP(),partFields:WP(),factory:KP,apis:{getField1:function(t,e){return t.getField1(e)},getField2:function(t,e){return t.getField2(e)},getLock:function(t,e){return t.getLock(e)}}}),YP=function(t){var e={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(t){return t in e?e[t]:1},r=t.value.toFixed(n(t.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+t.unit},XP=function(t){var e=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=e.exec(t);if(null!==n){var r=parseFloat(n[1]),i=n[2];return gt.value({value:r,unit:i})}return gt.error(t)},ZP=function(t,e){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(t){return Object.prototype.hasOwnProperty.call(n,t)};return t.unit===e?_.some(t.value):r(t.unit)&&r(e)?n[t.unit]===n[e]?_.some(t.value):_.some(t.value/n[t.unit]*n[e]):_.none()},JP=function(t){return _.none()},QP=function(t,e){return function(n){return ZP(n,e).map((function(n){return{value:n*t,unit:e}}))}},tI=function(t,e){var n=XP(t).toOptional(),r=XP(e).toOptional();return fg(n,r,(function(t,e){return ZP(t,e.unit).map((function(t){return e.value/t})).map((function(t){return QP(t,e.unit)})).getOr(JP)})).getOr(JP)},eI=function(t,e){var n=JP,r=Ea("ratio-event"),i=GP.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:e.translate(t.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:t_("lock",e.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:t_("unlock",e.icons)}}],buttonBehaviours:Fl([YC.config({disabled:function(){return t.disabled||e.isDisabled()}}),HS(),QE.config({})])}),o=function(t){return{dom:{tag:"div",classes:["tox-form__group"]},components:t}},a=function(n){return YE.parts.field({factory:xO,inputClasses:["tox-textfield"],inputBehaviours:Fl([YC.config({disabled:function(){return t.disabled||e.isDisabled()}}),HS(),QE.config({}),Cy("size-input-events",[wo(Ei(),(function(t,e){lo(t,r,{isField1:n})})),wo(Ni(),(function(e,n){lo(e,sO,{name:t.name})}))])]),selectOnFocus:!1})},s=function(t){return{dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}},u=GP.parts.field1(o([YE.parts.label(s("Width")),a(!0)])),c=GP.parts.field2(o([YE.parts.label(s("Height")),a(!1)]));return GP.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[u,c,o([s(" "),i])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(t,e,r){XP(Gp.getValue(t)).each((function(t){n(t).each((function(t){Gp.setValue(e,YP(t))}))}))},coupledFieldBehaviours:Fl([YC.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){GP.getField1(t).bind(YE.getField).each(YC.disable),GP.getField2(t).bind(YE.getField).each(YC.disable),GP.getLock(t).each(YC.disable)},onEnabled:function(t){GP.getField1(t).bind(YE.getField).each(YC.enable),GP.getField2(t).bind(YE.getField).each(YC.enable),GP.getLock(t).each(YC.enable)}}),HS(),Cy("size-input-events2",[wo(r,(function(t,e){var r=e.event.isField1,i=r?GP.getField1(t):GP.getField2(t),o=r?GP.getField2(t):GP.getField1(t),a=i.map(Gp.getValue).getOr(""),s=o.map(Gp.getValue).getOr("");n=tI(a,s)}))])])})},nI=o(Ea("undo")),rI=o(Ea("redo")),iI=o(Ea("zoom")),oI=o(Ea("back")),aI=o(Ea("apply")),sI=o(Ea("swap")),uI=o(Ea("transform")),cI=o(Ea("temp-transform")),lI=o(Ea("transform-apply")),fI={undo:nI,redo:rI,zoom:iI,back:oI,apply:aI,swap:sI,transform:uI,tempTransform:cI,transformApply:lI},dI=o("save-state"),hI=o("disable"),pI=o("enable"),mI={formActionEvent:lO,saveState:dI,disable:hI,enable:pI},gI=function(t,n){var r=function(t,e,r,i){return Jw(LP({name:t,text:t,disabled:r,primary:i,icon:_.none(),borderless:!1},e,n))},i=function(t,e,r,i){return Jw(IP({name:t,icon:_.some(t),tooltip:_.some(e),disabled:i,primary:!1,borderless:!1},r,n))},a=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(YC)&&YC.disable(n)}))},s=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(YC)&&YC.enable(n)}))},u={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},c=e,l=function(t,e,n){lo(t,e,n)},f=function(t){return co(t,mI.disable())},d=function(t){return co(t,mI.enable())},h=function(t,e){f(t),l(t,fI.transform(),{transform:e}),d(t)},p=function(t,e){f(t),l(t,fI.tempTransform(),{transform:e}),d(t)},m=function(t){return function(){at.getOpt(t).each((function(t){_y.set(t,[it])}))}},g=function(t,e){f(t),l(t,fI.transformApply(),{transform:e,swap:m(t)}),d(t)},v=function(){return r("Back",(function(t){return l(t,fI.back(),{swap:m(t)})}),!1,!1)},b=function(){return Jw({dom:{tag:"div",classes:["tox-spacer"]},behaviours:Fl([YC.config({})])})},y=function(){return r("Apply",(function(t){return l(t,fI.apply(),{swap:m(t)})}),!0,!0)},w=function(){return function(e){var n=t.getRect();return sP(e,n.x,n.y,n.w,n.h)}},x=[v(),b(),r("Apply",(function(e){var n=w();g(e,n),t.hideCrop()}),!1,!0)],C=VE.sketch({dom:u,components:x.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-crop-buttons-events",[wo(mI.disable(),(function(t,e){a(x,t)})),wo(mI.enable(),(function(t,e){s(x,t)}))])])}),S=Jw(eI({name:"size",label:_.none(),constrain:!0,disabled:!1},n)),k=function(t,e){return function(n){return uP(n,t,e)}},M=[v(),b(),S,b(),r("Apply",(function(t){S.getOpt(t).each((function(e){var n=Gp.getValue(e),r=parseInt(n.width,10),i=parseInt(n.height,10),o=k(r,i);g(t,o)}))}),!1,!0)],E=VE.sketch({dom:u,components:M.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-resize-buttons-events",[wo(mI.disable(),(function(t,e){a(M,t)})),wo(mI.enable(),(function(t,e){s(M,t)}))])])}),O=function(t,e){return function(n){return t(n,e)}},T=O(aP,"h"),A=O(aP,"v"),D=O(cP,-90),N=O(cP,90),R=function(t,e){p(t,e)},P=[v(),b(),i("flip-horizontally","Flip horizontally",(function(t){R(t,T)}),!1),i("flip-vertically","Flip vertically",(function(t){R(t,A)}),!1),i("rotate-left","Rotate counterclockwise",(function(t){R(t,D)}),!1),i("rotate-right","Rotate clockwise",(function(t){R(t,N)}),!1),b(),y()],I=VE.sketch({dom:u,components:P.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-fliprotate-buttons-events",[wo(mI.disable(),(function(t,e){a(P,t)})),wo(mI.enable(),(function(t,e){s(P,t)}))])])}),B=function(t,e,r,i,a){var s=sN.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(t)}}),u=sN.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=sN.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Jw(sN.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:a,getInitialValue:o({x:i})},components:[s,u,c],sliderBehaviours:Fl([Ny.config({})]),onChoose:e}))},L=function(t,e,n,r,i){var o=function(t,n,r){var i=O(e,r.x/100);h(t,i)};return B(t,o,n,r,i)},z=function(t,e,n,r,i){return[v(),L(t,e,n,r,i),y()]},j=function(t,e,n,r,i){var o=z(t,e,n,r,i);return VE.sketch({dom:u,components:o.map((function(t){return t.asSpec()})),containerBehaviours:Fl([Cy("image-tools-filter-panel-buttons-events",[wo(mI.disable(),(function(t,e){a(o,t)})),wo(mI.enable(),(function(t,e){s(o,t)}))])])})},F=[v(),b(),y()],$=VE.sketch({dom:u,components:F.map((function(t){return t.asSpec()}))}),H=j("Brightness",iP,-100,0,100),V=j("Contrast",oP,-100,0,100),U=j("Gamma",nP,-100,0,100),q=function(t,e,n){return function(r){return rP(r,t,e,n)}},W=function(t){var e=function(t,e,n){var r=K.getOpt(t),i=Y.getOpt(t),o=G.getOpt(t);r.each((function(e){i.each((function(n){o.each((function(r){var i=Gp.getValue(e).x/100,o=Gp.getValue(r).x/100,a=Gp.getValue(n).x/100,s=q(i,o,a);h(t,s)}))}))}))};return B(t,e,0,100,200)},K=W("R"),G=W("G"),Y=W("B"),X=[v(),K,G,Y,y()],Z=VE.sketch({dom:u,components:X.map((function(t){return t.asSpec()}))}),J=function(t,e,n){return function(r){var i=function(){at.getOpt(r).each((function(e){_y.set(e,[t]),n(e)}))};l(r,fI.swap(),{transform:e,swap:i})}},Q=function(e){t.showCrop()},tt=function(e){S.getOpt(e).each((function(e){var n=t.getMeasurements(),r=n.width,i=n.height;Gp.setValue(e,{width:r,height:i})}))},et=_.some(eP),nt=_.some(tP),rt=[i("crop","Crop",J(C,_.none(),Q),!1),i("resize","Resize",J(E,_.none(),tt),!1),i("orientation","Orientation",J(I,_.none(),c),!1),i("brightness","Brightness",J(H,_.none(),c),!1),i("sharpen","Sharpen",J($,et,c),!1),i("contrast","Contrast",J(V,_.none(),c),!1),i("color-levels","Color levels",J(Z,_.none(),c),!1),i("gamma","Gamma",J(U,_.none(),c),!1),i("invert","Invert",J($,nt,c),!1)],it=VE.sketch({dom:u,components:rt.map((function(t){return t.asSpec()}))}),ot=VE.sketch({dom:{tag:"div"},components:[it],containerBehaviours:Fl([_y.config({})])}),at=Jw(ot),st=function(t){return at.getOpt(t).map((function(t){var e=t.components()[0];return e.components()[e.components().length-1]}))};return{memContainer:at,getApplyButton:st}},vI=tinymce.util.Tools.resolve("tinymce.geom.Rect"),bI=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),yI=tinymce.util.Tools.resolve("tinymce.util.Observable"),wI=tinymce.util.Tools.resolve("tinymce.util.VK");function _I(t){var e=Math.max,n=t.documentElement,r=t.body,i=e(n.scrollWidth,r.scrollWidth),o=e(n.clientWidth,r.clientWidth),a=e(n.offsetWidth,r.offsetWidth),s=e(n.scrollHeight,r.scrollHeight),u=e(n.clientHeight,r.clientHeight),c=e(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<c?u:s}}function xI(t){var e,n;if(t.changedTouches)for(e="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<e.length;n++)t[e[n]]=t.changedTouches[0][e[n]]}function CI(t,e){var n,r,i,o,a=e.document||document,s=a.getElementById(e.handle||t),u=function(t){var u,f=_I(a);xI(t),t.preventDefault(),r=t.button;var d=s;i=t.screenX,o=t.screenY,u=window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue("cursor"):d.runtimeStyle.cursor,n=bI("<div></div>").css({position:"absolute",top:0,left:0,width:f.width,height:f.height,zIndex:2147483647,opacity:1e-4,cursor:u}).appendTo(a.body),bI(a).on("mousemove touchmove",c).on("mouseup touchend",l),e.start(t)},c=function(t){if(xI(t),t.button!==r)return l(t);t.deltaX=t.screenX-i,t.deltaY=t.screenY-o,t.preventDefault(),e.drag(t)},l=function(t){xI(t),bI(a).off("mousemove touchmove",c).off("mouseup touchend",l),n.remove(),e.stop&&e.stop(t)};this.destroy=function(){bI(s).off()},bI(s).on("mousedown touchstart",u)}var SI=0,kI=function(t,e,n,r,i){var o,a="tox-",s=a+"crid-"+SI++,u=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],c=["top","right","bottom","left"],l=function(t,e){return{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},f=function(t,e){return{x:e.x-t.x,y:e.y-t.y,w:e.w,h:e.h}},d=function(){return f(n,t)};function h(e,r,i,o){var a,s,u,c,l;a=r.x,s=r.y,u=r.w,c=r.h,a+=i*e.deltaX,s+=o*e.deltaY,u+=i*e.deltaW,c+=o*e.deltaH,u<20&&(u=20),c<20&&(c=20),l=t=vI.clamp({x:a,y:s,w:u,h:c},n,"move"===e.name),l=f(n,l),x.fire("updateRect",{rect:l}),y(l)}function p(){function e(e){var n;return new CI(s,{document:r.ownerDocument,handle:s+"-"+e.name,start:function(){n=t},drag:function(t){h(e,n,t.deltaX,t.deltaY)}})}bI('<div id="'+s+'" class="'+a+'croprect-container" role="grid" aria-dropeffect="execute">').appendTo(r),PN.each(c,(function(t){bI("#"+s,r).append('<div id="'+s+"-"+t+'"class="'+a+'croprect-block" style="display: none" data-mce-bogus="all">')})),PN.each(u,(function(t){bI("#"+s,r).append('<div id="'+s+"-"+t.name+'" class="'+a+"croprect-handle "+a+"croprect-handle-"+t.name+'"style="display: none" data-mce-bogus="all" role="gridcell" tabindex="-1" aria-label="'+t.label+'" aria-grabbed="false" title="'+t.label+'">')})),o=PN.map(u,e),g(t),bI(r).on("focusin focusout",(function(t){bI(t.target).attr("aria-grabbed","focus"===t.type?"true":"false")})),bI(r).on("keydown",(function(e){var n;function r(t,e,r,i,o){t.stopPropagation(),t.preventDefault(),h(n,r,i,o)}switch(PN.each(u,(function(t){if(e.target.id===s+"-"+t.name)return n=t,!1})),e.keyCode){case wI.LEFT:r(e,n,t,-10,0);break;case wI.RIGHT:r(e,n,t,10,0);break;case wI.UP:r(e,n,t,0,-10);break;case wI.DOWN:r(e,n,t,0,10);break;case wI.ENTER:case wI.SPACEBAR:e.preventDefault(),i();break}}))}function m(t){var e=PN.map(u,(function(t){return"#"+s+"-"+t.name})).concat(PN.map(c,(function(t){return"#"+s+"-"+t}))).join(",");t?bI(e,r).show():bI(e,r).hide()}function g(t){function n(t,e){e.h<0&&(e.h=0),e.w<0&&(e.w=0),bI("#"+s+"-"+t,r).css({left:e.x,top:e.y,width:e.w,height:e.h})}PN.each(u,(function(e){bI("#"+s+"-"+e.name,r).css({left:t.w*e.xMul+t.x,top:t.h*e.yMul+t.y})})),n("top",{x:e.x,y:e.y,w:e.w,h:t.y-e.y}),n("right",{x:t.x+t.w,y:t.y,w:e.w-t.x-t.w+e.x,h:t.h}),n("bottom",{x:e.x,y:t.y+t.h,w:e.w,h:e.h-t.y-t.h+e.y}),n("left",{x:e.x,y:t.y,w:t.x-e.x,h:t.h}),n("move",t)}function v(e){t=e,g(t)}function b(n){e=n,g(t)}function y(t){v(l(n,t))}function w(e){n=e,g(t)}function _(){PN.each(o,(function(t){t.destroy()})),o=[]}p();var x=PN.extend({toggleVisibility:m,setClampRect:w,setRect:v,getInnerRect:d,setInnerRect:y,setViewPortRect:b,destroy:_},yI);return x},MI={create:kI},EI=function(t){return new k_((function(e){var n=function(){t.removeEventListener("load",n),e(t)};t.complete?e(t):t.addEventListener("load",n)}))},OI=function(t){var e=Jw({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=Yn(1),r=Yn(_.none()),i=Yn({x:0,y:0,w:1,h:1}),o=Yn({x:0,y:0,w:1,h:1}),a=function(t,o){p.getOpt(t).each((function(t){var a=n.get(),s=Pu(t.element),u=Cu(t.element),c=o.dom.naturalWidth*a,l=o.dom.naturalHeight*a,f=Math.max(0,s/2-c/2),d=Math.max(0,u/2-l/2),h={left:f.toString()+"px",top:d.toString()+"px",width:c.toString()+"px",height:l.toString()+"px",position:"absolute"};Xs(o,h),e.getOpt(t).each((function(t){Xs(t.element,h)})),r.get().each((function(t){var e=i.get();t.setRect({x:e.x*a+f,y:e.y*a+d,w:e.w*a,h:e.h*a}),t.setClampRect({x:f,y:d,w:c,h:l}),t.setViewPortRect({x:0,y:0,w:s,h:u})}))}))},s=function(t,e){p.getOpt(t).each((function(t){var r=Pu(t.element),i=Cu(t.element),o=e.dom.naturalWidth,a=e.dom.naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)}))},u=function(t,e){var n=er.fromTag("img");return ha(n,"src",e),EI(n.dom).then((function(){return p.getOpt(t).map((function(t){var e=vu({element:n});_y.replaceAt(t,1,_.some(e));var r=o.get(),u={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};o.set(u);var c=vI.inflate(u,-20,-20);return i.set(c),r.w===u.w&&r.h===u.h||s(t,n),a(t,n),n}))}))},c=function(t,e){var r=n.get(),i=e>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),p.getOpt(t).each((function(t){var e=t.components()[1].element;a(t,e)}))},l=function(){r.get().each((function(t){t.toggleVisibility(!0)}))},f=function(){r.get().each((function(t){t.toggleVisibility(!1)}))},d=function(){return i.get()},h=VE.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[e.asSpec(),{dom:{tag:"img",attributes:{src:t}}},{dom:{tag:"div"},behaviours:Fl([Cy("image-panel-crop-events",[Ao((function(t){p.getOpt(t).each((function(t){var e=t.element.dom,o=MI.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},e,(function(){}));o.toggleVisibility(!1),o.on("updateRect",(function(t){var e=t.rect,r=n.get(),o={x:Math.round(e.x/r),y:Math.round(e.y/r),w:Math.round(e.w/r),h:Math.round(e.h/r)};i.set(o)})),r.set(_.some(o))}))}))])])}],containerBehaviours:Fl([_y.config({}),Cy("image-panel-events",[Ao((function(e){u(e,t)}))])])}),p=Jw(h),m=function(){var t=o.get();return{width:t.w,height:t.h}};return{memContainer:p,updateSrc:u,zoom:c,showCrop:l,hideCrop:f,getRect:d,getMeasurements:m}},TI=function(t,e,n,r,i){return IP({name:t,icon:_.some(e),disabled:n,tooltip:_.some(t),primary:!1,borderless:!1},r,i)},AI=function(t,e){e?YC.enable(t):YC.disable(t)},DI=function(t){var e=function(t,e,i){n.getOpt(t).each((function(t){AI(t,e)})),r.getOpt(t).each((function(t){AI(t,i)}))},n=Jw(TI("Undo","undo",!0,(function(t){lo(t,fI.undo(),{direction:1})}),t)),r=Jw(TI("Redo","redo",!0,(function(t){lo(t,fI.redo(),{direction:1})}),t)),i=VE.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),TI("Zoom in","zoom-in",!1,(function(t){lo(t,fI.zoom(),{direction:1})}),t),TI("Zoom out","zoom-out",!1,(function(t){lo(t,fI.zoom(),{direction:-1})}),t)]});return{container:i,updateButtonUndoStates:e}};function NI(){var t=[],e=-1;function n(n){var r=t.splice(++e);return t.push(n),{state:n,removed:r}}function r(){if(o())return t[--e]}function i(){if(a())return t[++e]}function o(){return e>0}function a(){return-1!==e&&e<t.length-1}return{data:t,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var RI,PI=function(t){var e=Yn(t),n=Yn(_.none()),r=NI();r.add(t);var i=function(){return e.get()},o=function(t){e.set(t)},a=function(){return n.get().fold((function(){return e.get()}),(function(t){return t}))},s=function(t){var e=u(t);return f(),n.set(_.some(e)),e.url},u=function(t){return{blob:t,url:URL.createObjectURL(t)}},c=function(t){URL.revokeObjectURL(t.url)},l=function(t){PN.each(t,c)},f=function(){n.get().each(c),n.set(_.none())},d=function(t){var e=u(t);o(e);var n=r.add(e).removed;return l(n),e.url},h=function(t){var e=u(t);return n.set(_.some(e)),e.url},p=function(t){return n.get().fold((function(){}),(function(e){d(e.blob),t()}))},m=function(){var t=r.undo();return o(t),t.url},g=function(){var t=r.redo();return o(t),t.url},v=function(){var t=r.canUndo(),e=r.canRedo();return{undoEnabled:t,redoEnabled:e}};return{getBlobState:i,setBlobState:o,addBlobState:d,getTempState:a,updateTempState:s,addTempState:h,applyTempState:p,destroyTempState:f,undo:m,redo:g,getHistoryStates:v}},II=function(t,n){var r=PI(t.currentState),i=function(t,e){var n=e.event.direction;S.zoom(t,n)},o=function(t){var e=r.getHistoryStates();k.updateButtonUndoStates(t,e.undoEnabled,e.redoEnabled),lo(t,mI.formActionEvent,{name:mI.saveState(),value:e.undoEnabled})},a=function(t){k.updateButtonUndoStates(t,!1,!1)},s=function(t,e){var n=r.undo();d(t,n).then((function(e){f(t),o(t)}))},u=function(t,e){var n=r.redo();d(t,n).then((function(e){f(t),o(t)}))},c=function(t){return t.toBlob()},l=function(t){lo(t,mI.formActionEvent,{name:mI.disable(),value:{}})},f=function(t){M.getApplyButton(t).each((function(t){YC.enable(t)})),lo(t,mI.formActionEvent,{name:mI.enable(),value:{}})},d=function(t,e){return l(t),S.updateSrc(t,e)},h=function(t,e,n,r,i){return l(t),xR(e).then(n).then(c).then(r).then((function(e){return d(t,e).then((function(e){return o(t),i(),f(t),e}))})).catch((function(e){return console.log(e),f(t),e}))},p=function(t,e,n){var i=r.getBlobState().blob,o=function(t){return r.updateTempState(t)};h(t,i,e,o,n)},m=function(t,n){var i=r.getTempState().blob,o=function(t){return r.addTempState(t)};h(t,i,n,o,e)},g=function(t,e,n){var i=r.getBlobState().blob,o=function(e){var n=r.addBlobState(e);return b(t),n};h(t,i,e,o,n)},v=function(t,e){var n=function(){b(t);var n=e.event.swap;n()};r.applyTempState(n)},b=function(t){var e=r.getBlobState().url;return r.destroyTempState(),o(t),e},y=function(t){var e=b(t);d(t,e).then((function(e){f(t)}))},w=function(t,e){y(t);var n=e.event.swap;n(),S.hideCrop()},_=function(t,n){return p(t,n.event.transform,e)},x=function(t,e){return m(t,e.event.transform)},C=function(t,e){return g(t,e.event.transform,e.event.swap)},S=OI(t.currentState.url),k=DI(n),M=gI(S,n),E=function(t,e){a(t);var n=e.event.transform,r=e.event.swap;n.fold((function(){r()}),(function(e){p(t,e,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[M.memContainer.asSpec(),S.memContainer.asSpec(),k.container],behaviours:Fl([Gp.config({store:{mode:"manual",getValue:function(){return r.getBlobState()}}}),Cy("image-tools-events",[wo(fI.undo(),s),wo(fI.redo(),u),wo(fI.zoom(),i),wo(fI.back(),w),wo(fI.apply(),v),wo(fI.transform(),_),wo(fI.tempTransform(),x),wo(fI.transformApply(),C),wo(fI.swap(),E)]),MN.self()])}},BI=function(t,e){var n={dom:{tag:"label",innerHtml:e.providers.translate(t.label),classes:["tox-label"]}},r=q(t.items,e.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:Fl([MN.self(),_y.config({}),HN.domHtml(_.none()),fy.config({mode:"acyclic"})])}},LI=function(t){return!Ft(t,"items")},zI="data-value",jI=function(t,e,n,r){return q(n,(function(n){return LI(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){Gp.setValue(t,n.value),lo(t,sO,{name:e}),Ny.focus(t)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return jI(t,e,n.items,r)}}}))},FI=function(t,e){return dt(t,(function(t){return LI(t)?pg(t.value===e,t):FI(t.items,e)}))},$I=function(t,n){var r=n.shared.providers,i=ct(t.items).filter(LI),a=t.label.map((function(t){return aO(t,r)})),s=YE.parts.field({dom:{},factory:{sketch:function(r){return yP({uid:r.uid,text:i.map((function(t){return t.text})),icon:_.none(),tooltip:t.label,role:_.none(),fetch:function(e,r){var i=jI(e,t.name,t.items,Gp.getValue(e));r(TP(i,ux.CLOSE_ON_EXECUTE,n,!1))},onSetup:o(e),getApi:o({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[QE.config({}),Gp.config({store:{mode:"manual",initialValue:i.map((function(t){return t.value})).getOr(""),getValue:function(t){return ma(t.element,zI)},setValue:function(e,n){FI(t.items,n).each((function(t){ha(e.element,zI,t.value),lo(e,vP,{text:t.text})}))}}})]},"tox-listbox",n.shared)}}}),u={dom:{tag:"div",classes:["tox-listboxfield"]},components:[s]};return YE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:et([a.toArray(),[u]]),fieldBehaviours:Fl([YC.config({disabled:o(t.disabled),onDisabled:function(t){YE.getField(t).each(YC.disable)},onEnabled:function(t){YE.getField(t).each(YC.enable)}})])})},HI=function(t,e){return{dom:{tag:"div",classes:t.classes},components:q(t.items,e.shared.interpreter)}},VI=function(t,e){var n=q(t.options,(function(t){return{dom:{tag:"option",value:t.value,innerHtml:t.text}}})),r=t.data.map((function(t){return ce("initialValue",t)})).getOr({});return{uid:t.uid,dom:{tag:"select",classes:t.selectClasses,attributes:t.selectAttributes},components:n,behaviours:Zp(t.selectBehaviours,[Ny.config({}),Gp.config({store:h({mode:"manual",getValue:function(t){return ou(t.element)},setValue:function(e,n){var r=Q(t.options,(function(t){return t.value===n}));r.isSome()&&au(e.element,n)}},r)})])}},UI=sg({name:"HtmlSelect",configFields:[yn("options"),Yp("selectBehaviours",[Ny,Gp]),zn("selectClasses",[]),zn("selectAttributes",{}),An("data")],factory:VI}),qI=function(t,e){var n=q(t.items,(function(t){return{text:e.translate(t.text),value:t.value}})),r=t.label.map((function(t){return aO(t,e)})),i=YE.parts.field({dom:{},selectAttributes:{size:t.size},options:n,factory:UI,selectBehaviours:Fl([YC.config({disabled:function(){return t.disabled||e.isDisabled()}}),QE.config({}),Cy("selectbox-change",[wo(Ni(),(function(e,n){lo(e,sO,{name:t.name})}))])])}),o=t.size>1?_.none():_.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:t_("chevron-down",e.icons)}}),a={dom:{tag:"div",classes:["tox-selectfield"]},components:et([[i],o.toArray()])};return YE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:et([r.toArray(),[a]]),fieldBehaviours:Fl([YC.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){YE.getField(t).each(YC.disable)},onEnabled:function(t){YE.getField(t).each(YC.enable)}}),HS()])})},WI=function(t,e){var n=function(t){return{dom:{tag:"th",innerHtml:e.translate(t)}}},r=function(t){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:q(t,n)}]}},i=function(t){return{dom:{tag:"td",innerHtml:e.translate(t)}}},o=function(t){return{dom:{tag:"tr"},components:q(t,i)}},a=function(t){return{dom:{tag:"tbody"},components:q(t,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(t.header),a(t.cells)],behaviours:Fl([QE.config({}),Ny.config({})])}},KI=function(t,e){var n=t.label.map((function(t){return aO(t,e)})),r=[YC.config({disabled:function(){return t.disabled||e.isDisabled()}}),HS(),fy.config({mode:"execution",useEnter:!0!==t.multiline,useControlEnter:!0===t.multiline,execute:function(t){return co(t,fO),_.some(!0)}}),Cy("textfield-change",[wo(Di(),(function(e,n){lo(e,sO,{name:t.name})})),wo(Fi(),(function(e,n){lo(e,sO,{name:t.name})}))]),QE.config({})],i=t.validation.map((function(t){return WO.config({getRoot:function(t){return qo(t.element)},invalidClass:"tox-invalid",validator:{validate:function(e){var n=Gp.getValue(e),r=t.validator(n);return PO.pure(!0===r?gt.value(n):gt.error(r))},validateOnLoad:t.validateOnLoad}})})).toArray(),a=t.placeholder.fold(o({}),(function(t){return{placeholder:e.translate(t)}})),s=t.inputMode.fold(o({}),(function(t){return{inputmode:t}})),u=h(h({},a),s),c=YE.parts.field({tag:!0===t.multiline?"textarea":"input",inputAttributes:u,inputClasses:[t.classname],inputBehaviours:Fl(et([r,i])),selectOnFocus:!1,factory:xO}),l=t.flex?["tox-form__group--stretched"]:[],f=l.concat(t.maximized?["tox-form-group--maximize"]:[]),d=[YC.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){YE.getField(t).each(YC.disable)},onEnabled:function(t){YE.getField(t).each(YC.enable)}}),HS()];return eO(n,c,f,d)},GI=function(t,e){return KI({name:t.name,multiline:!1,label:t.label,inputMode:t.inputMode,placeholder:t.placeholder,flex:!1,disabled:t.disabled,classname:"tox-textfield",validation:_.none(),maximized:t.maximized},e)},YI=function(t,e){return KI({name:t.name,multiline:!0,label:t.label,inputMode:_.none(),placeholder:t.placeholder,flex:!0,disabled:t.disabled,classname:"tox-textarea",validation:_.none(),maximized:t.maximized},e)},XI=function(t,e){var n=t.stream.streams,r=n.setup(t,e);return go([wo(t.event,r),Do((function(){return e.cancel()}))].concat(t.cancelEvent.map((function(t){return[wo(t,(function(){return e.cancel()}))]})).getOr([])))},ZI=Object.freeze({__proto__:null,events:XI}),JI=function(t){var e=Yn(null),n=function(){return{timer:null!==e.get()?"set":"unset"}},r=function(t){e.set(t)},i=function(){var t=e.get();null!==t&&t.cancel()};return Ga({readState:n,setTimer:r,cancel:i})},QI=function(t){return t.stream.streams.state(t)},tB=Object.freeze({__proto__:null,throttle:JI,init:QI}),eB=function(t,e){var n=t.stream,r=c_(t.onStream,n.delay);return e.setTimer(r),function(t,e){r.throttle(t,e),n.stopEvent&&e.stop()}},nB=[wn("stream",un("mode",{throttle:[yn("delay"),zn("stopEvent",!0),Hc("streams",{setup:eB,state:JI})]})),zn("event","input"),An("cancelEvent"),Fc("onStream")],rB=Hl({fields:nB,name:"streaming",active:ZI,state:tB}),iB=function(t,e,n){var r=Gp.getValue(n);Gp.setValue(e,r),aB(e)},oB=function(t,e){var n=t.element,r=ou(n),i=n.dom;"number"!==ma(n,"type")&&e(i,r)},aB=function(t){oB(t,(function(t,e){return t.setSelectionRange(e.length,e.length)}))},sB=function(t,e){oB(t,(function(t,n){return t.setSelectionRange(e,n.length)}))},uB=function(t,e,n){if(t.selectsOver){var r=Gp.getValue(e),i=t.getDisplayText(r),o=Gp.getValue(n),a=t.getDisplayText(o);return 0===a.indexOf(i)?_.some((function(){iB(t,e,n),sB(e,i.length)})):_.none()}return _.none()},cB=o("alloy.typeahead.itemexecute"),lB=function(t,n,r,i){var o=function(n,r,o){t.previewing.set(!1);var a=JO.getCoupled(n,"sandbox");if(dp.isOpen(a))yg.getCurrent(a).each((function(t){jg.getHighlighted(t).fold((function(){o(t)}),(function(){mo(a,t.element,"keydown",r)}))}));else{var u=function(t){yg.getCurrent(t).each(o)};iT(t,s(n),n,a,i,u,kO.HighlightFirst).get(e)}},a=bO(t),s=function(t){return function(e){return e.map((function(e){var n=zt(e.menus),r=nt(n,(function(t){return Y(t.items,(function(t){return"item"===t.type}))})),i=Gp.getState(t);return i.update(q(r,(function(t){return t.data}))),e}))}},u=[Ny.config({}),Gp.config({onSetValue:t.onSetValue,store:h({mode:"dataset",getDataKey:function(t){return ou(t.element)},getFallbackEntry:function(t){return{value:t,meta:{}}},setValue:function(e,n){au(e.element,t.model.getDisplayText(n))}},t.initialData.map((function(t){return ce("initialValue",t)})).getOr({}))}),rB.config({stream:{mode:"throttle",delay:t.responseTime,stopEvent:!1},onStream:function(n,r){var o=JO.getCoupled(n,"sandbox"),a=Ny.isFocused(n);if(a&&ou(n.element).length>=t.minChars){var u=yg.getCurrent(o).bind((function(t){return jg.getHighlighted(t).map(Gp.getValue)}));t.previewing.set(!0);var c=function(e){yg.getCurrent(o).each((function(e){u.fold((function(){t.model.selectsOver&&jg.highlightFirst(e)}),(function(t){jg.highlightBy(e,(function(e){var n=Gp.getValue(e);return n.value===t.value})),jg.getHighlighted(e).orThunk((function(){return jg.highlightFirst(e),_.none()}))}))}))};iT(t,s(n),n,o,i,c,kO.HighlightFirst).get(e)}},cancelEvent:Ki()}),fy.config({mode:"special",onDown:function(t,e){return o(t,e,jg.highlightFirst),_.some(!0)},onEscape:function(t){var e=JO.getCoupled(t,"sandbox");return dp.isOpen(e)?(dp.close(e),_.some(!0)):_.none()},onUp:function(t,e){return o(t,e,jg.highlightLast),_.some(!0)},onEnter:function(e){var n=JO.getCoupled(e,"sandbox"),r=dp.isOpen(n);if(r&&!t.previewing.get())return yg.getCurrent(n).bind((function(t){return jg.getHighlighted(t)})).map((function(t){return lo(e,cB(),{item:t}),!0}));var i=Gp.getValue(e);return co(e,Ki()),t.onExecute(n,e,i),r&&dp.close(n),_.some(!0)}}),Zy.config({toggleClass:t.markers.openClass,aria:{mode:"expanded"}}),JO.config({others:{sandbox:function(e){return lT(t,e,{onOpen:function(){return Zy.on(e)},onClose:function(){return Zy.off(e)}})}}}),Cy("typeaheadevents",[Ro((function(n){var r=e;aT(t,s(n),n,i,r,kO.HighlightFirst).get(e)})),wo(cB(),(function(e,n){var r=JO.getCoupled(e,"sandbox");iB(t.model,e,n.event.item),co(e,Ki()),t.onItemExecute(e,r,n.event.item,Gp.getValue(e)),dp.close(r),aB(e)}))].concat(t.dismissOnBlur?[wo(ji(),(function(t){var e=JO.getCoupled(t,"sandbox");tf(e.element).isNone()&&dp.close(e)}))]:[]))];return{uid:t.uid,dom:wO(Gt(t,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:h(h({},a),Zp(t.typeaheadBehaviours,u)),eventOrder:t.eventOrder}},fB=o([An("lazySink"),yn("fetch"),zn("minChars",5),zn("responseTime",1e3),zc("onOpen"),zn("getHotspot",_.some),zn("getAnchorOverrides",o({})),zn("layouts",_.none()),zn("eventOrder",{}),Kn("model",{},[zn("getDisplayText",(function(t){return void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.value})),zn("selectsOver",!0),zn("populateFromBrowse",!0)]),zc("onSetValue"),jc("onExecute"),zc("onItemExecute"),zn("inputClasses",[]),zn("inputAttributes",{}),zn("inputStyles",{}),zn("matchWidth",!0),zn("useMinWidth",!1),zn("dismissOnBlur",!0),Bc(["openClass"]),An("initialData"),Yp("typeaheadBehaviours",[Ny,Gp,rB,fy,Zy,JO]),Gn("previewing",(function(){return Yn(!0)}))].concat(vO()).concat(dT())),dB=o([Om({schema:[Ic()],name:"menu",overrides:function(t){return{fakeFocus:!0,onHighlight:function(e,n){t.previewing.get()?e.getSystem().getByUid(t.uid).each((function(r){uB(t.model,r,n).fold((function(){return jg.dehighlight(e,n)}),(function(t){return t()}))})):e.getSystem().getByUid(t.uid).each((function(e){t.model.populateFromBrowse&&iB(t.model,e,n)})),t.previewing.set(!1)},onExecute:function(e,n){return e.getSystem().getByUid(t.uid).toOptional().map((function(t){return lo(t,cB(),{item:n}),!0}))},onHover:function(e,n){t.previewing.set(!1),e.getSystem().getByUid(t.uid).each((function(e){t.model.populateFromBrowse&&iB(t.model,e,n)}))}}}})]),hB=ug({name:"Typeahead",configFields:fB(),partFields:dB(),factory:lB}),pB=function(t){var e=function(){return pB(t.toCached())},n=function(e){return pB(t.bind((function(t){return t.fold((function(t){return PO.pure(gt.error(t))}),(function(t){return e(t)}))})))},r=function(e){return pB(t.map((function(t){return t.bind(e)})))},i=function(e){return pB(t.map((function(t){return t.map(e)})))},o=function(e){return pB(t.map((function(t){return t.mapError(e)})))},a=function(e,n){return t.map((function(t){return t.fold(e,n)}))},s=function(e,n){return pB(PO.nu((function(r){var i=!1,o=setTimeout((function(){i=!0,r(gt.error(n()))}),e);t.get((function(t){i||(clearTimeout(o),r(t))}))})))};return h(h({},t),{toCached:e,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},mB=function(t){return pB(PO.nu(t))},gB=function(t){return pB(PO.pure(gt.value(t)))},vB=function(t){return pB(PO.pure(gt.error(t)))},bB=function(t){return pB(PO.pure(t))},yB=function(t){return pB(t.map(gt.value))},wB=function(t){return mB((function(e){t.then((function(t){e(gt.value(t))}),(function(t){e(gt.error(t))}))}))},_B={nu:mB,wrap:pB,pure:gB,value:gB,error:vB,fromResult:bB,fromFuture:yB,fromPromise:wB},xB={type:"separator"},CB=function(t){return{type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:function(){}}},SB=function(t,e){return{type:"menuitem",value:e,text:t,meta:{attach:void 0},onAction:function(){}}},kB=function(t){return q(t,CB)},MB=function(t,e){return Y(e,(function(e){return e.type===t}))},EB=function(t,e){return kB(MB(t,e))},OB=function(t){return EB("header",t.targets)},TB=function(t){return EB("anchor",t.targets)},AB=function(t){return _.from(t.anchorTop).map((function(t){return SB("<top>",t)})).toArray()},DB=function(t){return _.from(t.anchorBottom).map((function(t){return SB("<bottom>",t)})).toArray()},NB=function(t){return q(t,(function(t){return SB(t,t)}))},RB=function(t){return Z(t,(function(t,e){var n=0===t.length||0===e.length;return n?t.concat(e):t.concat(xB,e)}),[])},PB=function(t,e){var n=t.toLowerCase();return Y(e,(function(t){var e=void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.text;return pr(e.toLowerCase(),n)||pr(t.value.toLowerCase(),n)}))},IB=function(t,e,n){var r=Gp.getValue(e),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(e){var r=PB(i,NB(n.getHistory(t)));return"file"===t?RB([r,PB(i,OB(e)),PB(i,et([AB(e),TB(e),DB(e)]))]):r}))},BB=Ea("aria-invalid"),LB=function(t,n,r){var i,o=n.shared.providers,a=function(e){var n=Gp.getValue(e);r.addToHistory(n.value,t.filetype)},s=YE.parts.field({factory:hB,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":BB,type:"url"},minChars:0,responseTime:0,fetch:function(e){var i=IB(t.filetype,e,r),o=TP(i,ux.BUBBLE_TO_SANDBOX,n,!1);return PO.pure(o)},getHotspot:function(t){return m.getOpt(t)},onSetValue:function(t,n){t.hasConfigured(WO)&&WO.run(t).get(e)},typeaheadBehaviours:Fl(et([r.getValidationHandler().map((function(e){return WO.config({getRoot:function(t){return qo(t.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(t,e){l.getOpt(t).each((function(t){ha(t.element,"title",o.translate(e))}))}},validator:{validate:function(n){var r=Gp.getValue(n);return _B.nu((function(n){e({type:t.filetype,url:r.value},(function(t){if("invalid"===t.status){var e=gt.error(t.message);n(e)}else{var r=gt.value(t.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[YC.config({disabled:function(){return t.disabled||o.isDisabled()}}),QE.config({}),Cy("urlinput-events",et(["file"===t.filetype?[wo(Di(),(function(e){lo(e,sO,{name:t.name})}))]:[],[wo(Ni(),(function(e){lo(e,sO,{name:t.name}),a(e)})),wo(Fi(),(function(e){lo(e,sO,{name:t.name}),a(e)}))]]))]])),eventOrder:(i={},i[Di()]=["streaming","urlinput-events","invalidating"],i),model:{getDisplayText:function(t){return t.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:n.shared.getSink,parts:{menu:Bx(!1,1,"normal")},onExecute:function(t,e,n){lo(e,fO,{})},onItemExecute:function(e,n,r,i){a(e),lo(e,sO,{name:t.name})}}),u=t.label.map((function(t){return aO(t,o)})),c=function(t,e,n,r){return void 0===n&&(n=t),void 0===r&&(r=t),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+t],innerHtml:t_(n,o.icons),attributes:h({title:o.translate(r),"aria-live":"polite"},e.fold((function(){return{}}),(function(t){return{id:t}})))}}},l=Jw(c("invalid",_.some(BB),"warning")),f=Jw({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[l.asSpec()]}),d=r.getUrlPicker(t.filetype),p=Ea("browser.url.event"),m=Jw({dom:{tag:"div",classes:["tox-control-wrap"]},components:[s,f.asSpec()],behaviours:Fl([YC.config({disabled:function(){return t.disabled||o.isDisabled()}})])}),g=Jw(LP({name:t.name,icon:_.some("browse"),text:t.label.getOr(""),disabled:t.disabled,primary:!1,borderless:!0},(function(t){return co(t,p)}),o,[],["tox-browse-url"])),v=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:et([[m.asSpec()],d.map((function(){return g.asSpec()})).toArray()])}},b=function(e){yg.getCurrent(e).each((function(n){var r=Gp.getValue(n),i=h({fieldname:t.name},r);d.each((function(r){r(i).get((function(r){Gp.setValue(n,r),lo(e,sO,{name:t.name})}))}))}))};return YE.sketch({dom:iO(),components:u.toArray().concat([v()]),fieldBehaviours:Fl([YC.config({disabled:function(){return t.disabled||o.isDisabled()},onDisabled:function(t){YE.getField(t).each(YC.disable),g.getOpt(t).each(YC.disable)},onEnabled:function(t){YE.getField(t).each(YC.enable),g.getOpt(t).each(YC.enable)}}),HS(),Cy("url-input-events",[wo(p,b)])])})},zB=function(t,e){return VE.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+t.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[Zw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:t_(t.icon,e.icons),attributes:{title:e.translate(t.iconTooltip)}},action:function(e){lo(e,lO,{name:"alert-banner",value:t.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:e.translate(t.text)}}]})},jB=function(t,e){var n=Gp.config({store:{mode:"manual",getValue:function(t){var e=t.element.dom;return e.checked},setValue:function(t,e){var n=t.element.dom;n.checked=e}}}),r=function(t){return t.element.dom.click(),_.some(!0)},i=YE.parts.field({factory:{sketch:a},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Fl([MN.self(),YC.config({disabled:function(){return t.disabled||e.isDisabled()}}),QE.config({}),Ny.config({}),n,fy.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),Cy("checkbox-events",[wo(Ni(),(function(e,n){lo(e,sO,{name:t.name})}))])])}),o=YE.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:e.translate(t.label)},behaviours:Fl([wT.config({})])}),s=function(t){var n="checked"===t?"selected":"unselected";return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+t],innerHtml:t_(n,e.icons)}}},u=Jw({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[s("checked"),s("unchecked")]});return YE.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,u.asSpec(),o],fieldBehaviours:Fl([YC.config({disabled:function(){return t.disabled||e.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(t){YE.getField(t).each(YC.disable)},onEnabled:function(t){YE.getField(t).each(YC.enable)}}),HS()])})},FB=function(t){return"presentation"===t.presets?VE.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):VE.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:Fl([QE.config({}),Ny.config({})])})},$B=function(t){return function(e,n,r){return jt(n,"name").fold((function(){return t(n,r)}),(function(i){return e.field(i,t(n,r))}))}},HB=function(t){return function(e,n,r){var i=Gt(n,{source:"dynamic"});return $B(t)(e,i,r)}},VB={bar:$B((function(t,e){return qE(t,e.shared)})),collection:$B((function(t,e){return gO(t,e.shared.providers)})),alertbanner:$B((function(t,e){return zB(t,e.shared.providers)})),input:$B((function(t,e){return GI(t,e.shared.providers)})),textarea:$B((function(t,e){return YI(t,e.shared.providers)})),label:$B((function(t,e){return BI(t,e.shared)})),iframe:HB((function(t,e){return nR(t,e.shared.providers)})),button:$B((function(t,e){return HP(t,e.shared.providers)})),checkbox:$B((function(t,e){return jB(t,e.shared.providers)})),colorinput:$B((function(t,e){return kT(t,e.shared,e.colorinput)})),colorpicker:$B(AN),dropzone:$B((function(t,e){return qN(t,e.shared.providers)})),grid:$B((function(t,e){return WN(t,e.shared)})),listbox:$B((function(t,e){return $I(t,e)})),selectbox:$B((function(t,e){return qI(t,e.shared.providers)})),sizeinput:$B((function(t,e){return eI(t,e.shared.providers)})),urlinput:$B((function(t,e){return LB(t,e,e.urlinput)})),customeditor:$B(RN),htmlpanel:$B(FB),imagetools:$B((function(t,e){return II(t,e.shared.providers)})),table:$B((function(t,e){return WI(t,e.shared.providers)})),panel:$B((function(t,e){return HI(t,e)}))},UB={field:function(t,e){return e}},qB=function(t,e,n){var r=Gt(n,{shared:{interpreter:function(e){return WB(t,e,r)}}});return WB(t,e,r)},WB=function(t,e,n){return jt(VB,e.type).fold((function(){return console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e}),(function(r){return r(t,e,n)}))},KB=function(t,e){var n=UB;return WB(n,t,e)},GB={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},YB=function(t,e,n){var r=If(-12,12,GB),i={maxHeightFunction:Af()},o=function(){return{anchor:"node",root:zs(t()),node:_.from(t()),bubble:r,layouts:{onRtl:function(){return[Ww]},onLtr:function(){return[qw]}},overrides:i}},a=function(){return{anchor:"hotspot",hotspot:e(),bubble:r,layouts:{onRtl:function(){return[ml]},onLtr:function(){return[gl]}},overrides:i}};return function(){return n()?o():a()}},XB=function(t,e,n){var r=function(){return{anchor:"node",root:zs(t()),node:_.from(t()),layouts:{onRtl:function(){return[Kw]},onLtr:function(){return[Kw]}}}},i=function(){return{anchor:"hotspot",hotspot:e(),layouts:{onRtl:function(){return[wl]},onLtr:function(){return[wl]}}}};return function(){return n()?r():i()}},ZB=function(t,e){return function(){return{anchor:"selection",root:e(),getSelection:function(){var e=t.selection.getRng();return _.some(hd.range(er.fromDom(e.startContainer),e.startOffset,er.fromDom(e.endContainer),e.endOffset))}}}},JB=function(t){return function(e){return{anchor:"node",root:t(),node:e}}},QB=function(t,e,n){var r=CS(t),i=function(){return er.fromDom(t.getBody())},o=function(){return er.fromDom(t.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:YB(o,e,a),banner:XB(o,e,a),cursor:ZB(t,i),node:JB(i)}},tL=function(t){return function(e,n){var r=MM(t);r(e,n)}},eL=function(t){return function(){return uM(t)}},nL=function(t){return function(){return lM(t)}},rL=function(t){return function(){return bM(t)}},iL=function(t){return{colorPicker:tL(t),hasCustomColors:eL(t),getColors:nL(t),getColorCols:rL(t)}},oL=function(t){return function(){return ES(t)}},aL=function(t){return{isDraggableModal:oL(t)}},sL=function(t){var e=Yn(yS(t)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===e.get()},getDockingMode:e.get,setDockingMode:e.set}},uL=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],cL=function(t){return Ft(t,"items")},lL=function(t){return Ft(t,"block")},fL=function(t){return Ft(t,"inline")},dL=function(t){return Ft(t,"selector")},hL=function(t){return Z(t,(function(t,e){if(cL(e)){var n=hL(e.items);return{customFormats:t.customFormats.concat(n.customFormats),formats:t.formats.concat([{title:e.title,items:n.formats}])}}if(fL(e)||lL(e)||dL(e)){var r=M(e.name)?e.name:e.title.toLowerCase(),i="custom-"+r;return{customFormats:t.customFormats.concat([{name:i,format:e}]),formats:t.formats.concat([{title:e.title,format:i,icon:e.icon}])}}return h(h({},t),{formats:t.formats.concat(e)})}),{customFormats:[],formats:[]})},pL=function(t,e){var n=hL(e),r=function(e){W(e,(function(e){t.formatter.has(e.name)||t.formatter.register(e.name,e.format)}))};return t.formatter?r(n.customFormats):t.on("init",(function(){r(n.customFormats)})),n.formats},mL=function(t){return aS(t).map((function(e){var n=pL(t,e);return sS(t)?uL.concat(n):n})).getOr(uL)},gL=function(t,e,n){var r={type:"formatter",isSelected:e(t.format),getStylePreview:n(t.format)};return Gt(t,r)},vL=function(t,e,n,r){var i=function(t){return gL(t,n,r)},o=function(t){var e={type:"submenu"};return Gt(t,e)},a=function(e){var i=M(e.name)?e.name:Ea(e.title),o="custom-"+i,a={type:"formatter",format:o,isSelected:n(o),getStylePreview:r(o)},s=Gt(e,a);return t.formatter.register(i,s),s},s=function(t){return q(t,(function(t){var e=Ot(t);if($t(t,"items")){var n=s(t.items);return Gt(o(t),{getStyleItems:function(){return n}})}return $t(t,"format")?i(t):1===e.length&&$(e,"title")?Gt(t,{type:"separator"}):a(t)}))};return s(e)},bL=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?_.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):_.none()}},r=function(t){var e=t.items;return void 0!==e&&e.length>0?nt(e,r):[t.format]},i=Yn([]),o=Yn([]),a=Yn([]),s=Yn([]),u=Yn(!1);t.on("PreInit",(function(a){var s=mL(t),u=vL(t,s,e,n);i.set(u),o.set(nt(u,r))})),t.on("addStyleModifications",(function(i){var o=vL(t,i.items,e,n);a.set(o),u.set(i.replace),s.set(nt(o,r))}));var c=function(){var t=u.get()?[]:i.get(),e=a.get();return t.concat(e)},l=function(){var t=u.get()?[]:o.get(),e=s.get();return t.concat(e)};return{getData:c,getFlattenedKeys:l}},yL=PN.trim,wL=function(t){return function(e){if(e&&1===e.nodeType){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},_L=wL("true"),xL=wL("false"),CL=function(t,e,n,r,i){return{type:t,title:e,url:n,level:r,attach:i}},SL=function(t){while(t=t.parentNode){var e=t.contentEditable;if(e&&"inherit"!==e)return _L(t)}return!1},kL=function(t,e){return q(Bd(er.fromDom(e),t),(function(t){return t.dom}))},ML=function(t){return t.innerText||t.textContent},EL=function(t){return t.id?t.id:Ea("h")},OL=function(t){return t&&"A"===t.nodeName&&void 0!==(t.id||t.name)},TL=function(t){return OL(t)&&DL(t)},AL=function(t){return t&&/^(H[1-6])$/.test(t.nodeName)},DL=function(t){return SL(t)&&!xL(t)},NL=function(t){return AL(t)&&DL(t)},RL=function(t){return AL(t)?parseInt(t.nodeName.substr(1),10):0},PL=function(t){var e=EL(t),n=function(){t.id=e};return CL("header",ML(t),"#"+e,RL(t),n)},IL=function(t){var n=t.id||t.name,r=ML(t);return CL("anchor",r||"#"+n,"#"+n,0,e)},BL=function(t){return q(Y(t,NL),PL)},LL=function(t){return q(Y(t,TL),IL)},zL=function(t){var e=kL("h1,h2,h3,h4,h5,h6,a:not([href])",t);return e},jL=function(t){return yL(t.title).length>0},FL=function(t){var e=zL(t);return Y(BL(e).concat(LL(e)),jL)},$L={find:FL},HL="tinymce-url-history",VL=5,UL=function(t){return M(t)&&/^https?/.test(t)},qL=function(t){return O(t)&&t.length<=VL&&rt(t,UL)},WL=function(t){return E(t)&&Lt(t,(function(t){return!qL(t)})).isNone()},KL=function(){var t,e=tM.getItem(HL);if(null===e)return{};try{t=JSON.parse(e)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+HL+" was not valid JSON",n),{};throw n}return WL(t)?t:(console.log("Local storage "+HL+" was not valid format",t),{})},GL=function(t){if(!WL(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));tM.setItem(HL,JSON.stringify(t))},YL=function(t){var e=KL();return Object.prototype.hasOwnProperty.call(e,t)?e[t]:[]},XL=function(t,e){if(UL(t)){var n=KL(),r=Object.prototype.hasOwnProperty.call(n,e)?n[e]:[],i=Y(r,(function(e){return e!==t}));n[e]=[t].concat(i).slice(0,VL),GL(n)}},ZL=function(t){return!!t},JL=function(t){return Dt(PN.makeMap(t,/[, ]/),ZL)},QL=function(t){return _.from(DS(t)).filter(R)},tz=function(t){var e=_.some(NS(t)).filter(ZL),n=_.some(RS(t)).filter(ZL),r=e.or(n).map(JL);return QL(t).fold((function(){return!1}),(function(t){return r.fold((function(){return!0}),(function(t){return Ot(t).length>0&&t}))}))},ez=function(t,e){var n=tz(t);return T(n)?n?QL(t):_.none():n[e]?QL(t):_.none()},nz=function(t,e){return ez(t,e).map((function(n){return function(r){return PO.nu((function(i){var o=function(t,e){if(!M(t))throw new Error("Expected value to be string");if(void 0!==e&&!E(e))throw new Error("Expected meta to be a object");var n={value:t,meta:e};i(n)},a=h({filetype:e,fieldname:r.fieldname},_.from(r.meta).getOr({}));n.call(t,o,r.value,a)}))}}))},rz=function(t){return _.from(t).filter(M).getOrUndefined()},iz=function(t){return PS(t)?_.none():_.some({targets:$L.find(t.getBody()),anchorTop:rz(IS(t)),anchorBottom:rz(BS(t))})},oz=function(t){return _.from(LS(t))},az=function(t){return{getHistory:YL,addToHistory:XL,getLinkInformation:function(){return iz(t)},getValidationHandler:function(){return oz(t)},getUrlPicker:function(e){return nz(t,e)}}},sz=function(t,e,n){var r=Yn(!1),i=sL(e),o={shared:{providers:{icons:function(){return e.ui.registry.getAll().icons},menuItems:function(){return e.ui.registry.getAll().menuItems},translate:AC.translate,isDisabled:function(){return e.mode.isReadOnly()||e.ui.isDisabled()},getSetting:e.getParam.bind(e)},interpreter:function(t){return KB(t,o)},anchors:QB(e,n,i.isPositionedAtTop),header:i,getSink:function(){return gt.value(t)}},urlinput:az(e),styleselect:bL(e),colorinput:iL(e),dialog:aL(e),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(t){return r.set(t)}};return o},uz=o((function(t,e){Bu(t,Math.floor(e))})),cz="contexttoolbar-show",lz="contexttoolbar-hide",fz=o([yn("dom"),zn("shell",!0),Yp("toolbarBehaviours",[_y])]),dz=function(){return{behaviours:Fl([_y.config({})])}},hz=o([Tm({name:"groups",overrides:dz})]),pz=function(t,e,n,r){var i=function(t,e){o(t).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(t){_y.set(t,e)}))},o=function(e){return t.shell?_.some(e):Hm(e,t,"groups")},a=t.shell?{behaviours:[_y.config({})],components:[]}:{behaviours:[],components:e};return{uid:t.uid,dom:t.dom,components:a.components,behaviours:Zp(t.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},mz=ug({name:"Toolbar",configFields:fz(),partFields:hz(),factory:pz,apis:{setGroups:function(t,e,n){t.setGroups(e,n)}}}),gz=function(t,e){var n={len:0,list:[]},r=Z(t,(function(t,n){var r=e(n,t.len);return r.fold(o(t),(function(e){return{len:e.finish,list:t.list.concat([e])}}))}),n);return r.list},vz=function(t,e,n){return{within:t,extra:e,withinWidth:n}},bz=function(t,e,n){var r=gz(t,(function(t,e){var r=n(t);return _.some({element:t,start:e,finish:e+r,width:r})})),i=Y(r,(function(t){return t.finish<=e})),o=X(i,(function(t,e){return t+e.width}),0),a=r.slice(i.length);return{within:i,extra:a,withinWidth:o}},yz=function(t){return q(t,(function(t){return t.element}))},wz=function(t,e,n){var r=yz(t.concat(e));return vz(r,[],n)},_z=function(t,e,n,r){var i=yz(t).concat([n]);return vz(i,yz(e),r)},xz=function(t,e,n){return vz(yz(t),[],n)},Cz=function(t,e,n){var r=bz(e,t,n);return 0===r.extra.length?_.some(r):_.none()},Sz=function(t,e,n,r){var i=Cz(t,e,n).getOrThunk((function(){return bz(e,t-n(r),n)})),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?wz(o,a,s):a.length>=1?_z(o,a,r,s):xz(o,a,s)},kz=function(t,e){var n=q(e,(function(t){return wu(t)}));mz.setGroups(t,n)},Mz=function(t){return dt(t,(function(t){return tf(t.element).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}))},Ez=function(t,e,n){var r=Vm(t,e,"primary"),i=JO.getCoupled(t,"overflowGroup");Ys(r.element,"visibility","hidden");var o=e.builtGroups.get().concat([i]),a=Mz(o);n([]),kz(r,o);var s=Pu(r.element),u=Sz(s,e.builtGroups.get(),(function(t){return Pu(t.element)}),i);0===u.extra.length?(_y.remove(r,i),n([])):(kz(r,u.within),n(u.extra)),ru(r.element,"visibility"),iu(r.element),a.each(Ny.focus)},Oz=o([Yp("splitToolbarBehaviours",[JO]),Gn("builtGroups",(function(){return Yn([])}))]),Tz=o([Bc(["overflowToggledClass"]),Pn("getOverflowBounds"),yn("lazySink"),Gn("overflowGroups",(function(){return Yn([])}))].concat(Oz())),Az=o([Em({factory:mz,schema:fz(),name:"primary"}),Om({schema:fz(),name:"overflow"}),Om({name:"overflow-button"}),Om({name:"overflow-group"})]),Dz=o([Bc(["toggledClass"]),yn("lazySink"),kn("fetch"),Pn("getBounds"),Bn("fireDismissalEventInstead",[zn("event",eo())]),Hf()]),Nz=o([Om({name:"button",overrides:function(t){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Fl([Zy.config({toggleClass:t.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Om({factory:mz,schema:fz(),name:"toolbar",overrides:function(t){return{toolbarBehaviours:Fl([fy.config({mode:"cyclic",onEscape:function(e){return Hm(e,t,"button").each(Ny.focus),_.none()}})])}}})]),Rz=function(t,e){var n=JO.getCoupled(t,"toolbarSandbox");dp.isOpen(n)?dp.close(n):dp.open(n,e.toolbar())},Pz=function(t,e,n,r){var i=n.getBounds.map((function(t){return t()})),o=n.lazySink(t).getOrDie();Nh.positionWithinBounds(o,{anchor:"hotspot",hotspot:t,layouts:r,overrides:{maxWidthFunction:uz()}},e,i)},Iz=function(t,e,n,r,i){mz.setGroups(e,i),Pz(t,e,n,r),Zy.on(t)},Bz=function(t,e,n){var r=vc(),i=function(i,o){n.fetch().get((function(i){Iz(t,o,n,e.layouts,i),r.link(t.element),fy.focusIn(o)}))},o=function(){Zy.off(t),Ny.focus(t),r.unlink(t.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:Fl([fy.config({mode:"special",onEscape:function(t){return dp.close(t),_.some(!0)}}),dp.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return yc(n,r)||yc(t,r)},getAttachPoint:function(){return n.lazySink(t).getOrDie()}}),Wl.config({channels:h(h({},vp(h({isExtraPart:l},n.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),yp({doReposition:function(){dp.getState(JO.getCoupled(t,"toolbarSandbox")).each((function(r){Pz(t,r,n,e.layouts)}))}}))})])}},Lz=function(t,e,n,r){return h(h({},Zw.sketch(h(h({},r.button()),{action:function(t){Rz(t,r)},buttonBehaviours:Jp.augment({dump:r.button().buttonBehaviours},[JO.config({others:{toolbarSandbox:function(e){return Bz(e,n,t)}}})])}))),{apis:{setGroups:function(e,r){dp.getState(JO.getCoupled(e,"toolbarSandbox")).each((function(i){Iz(e,i,t,n.layouts,r)}))},reposition:function(e){dp.getState(JO.getCoupled(e,"toolbarSandbox")).each((function(r){Pz(e,r,t,n.layouts)}))},toggle:function(t){Rz(t,r)},getToolbar:function(t){return dp.getState(JO.getCoupled(t,"toolbarSandbox"))},isOpen:function(t){return dp.isOpen(JO.getCoupled(t,"toolbarSandbox"))}}})},zz=ug({name:"FloatingToolbarButton",factory:Lz,configFields:Dz(),partFields:Nz(),apis:{setGroups:function(t,e,n){t.setGroups(e,n)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},getToolbar:function(t,e){return t.getToolbar(e)},isOpen:function(t,e){return t.isOpen(e)}}}),jz=o([yn("items"),Bc(["itemSelector"]),Yp("tgroupBehaviours",[fy])]),Fz=o([Am({name:"items",unit:"item"})]),$z=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.tgroupBehaviours,[fy.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},Hz=ug({name:"ToolbarGroup",configFields:jz(),partFields:Fz(),factory:$z}),Vz=function(t){return q(t,(function(t){return wu(t)}))},Uz=function(t,e,n){Ez(t,n,(function(r){n.overflowGroups.set(r),e.getOpt(t).each((function(t){zz.setGroups(t,Vz(r))}))}))},qz=function(t,e,n,r){var i=Jw(zz.sketch({fetch:function(){return PO.nu((function(e){e(Vz(t.overflowGroups.get()))}))},layouts:{onLtr:function(){return[gl,ml]},onRtl:function(){return[ml,gl]},onBottomLtr:function(){return[bl,vl]},onBottomRtl:function(){return[vl,bl]}},getBounds:n.getOverflowBounds,lazySink:t.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:t.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.splitToolbarBehaviours,[JO.config({others:{overflowGroup:function(){return Hz.sketch(h(h({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(e,n){t.builtGroups.set(q(n,e.getSystem().build)),Uz(e,i,t)},refresh:function(e){return Uz(e,i,t)},toggle:function(t){i.getOpt(t).each((function(t){zz.toggle(t)}))},isOpen:function(t){return i.getOpt(t).map(zz.isOpen).getOr(!1)},reposition:function(t){i.getOpt(t).each((function(t){zz.reposition(t)}))},getOverflow:function(t){return i.getOpt(t).bind(zz.getToolbar)}},domModification:{attributes:{role:"group"}}}},Wz=ug({name:"SplitFloatingToolbar",configFields:Tz(),partFields:Az(),factory:qz,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)},getOverflow:function(t,e){return t.getOverflow(e)}}}),Kz=function(t,e){return e.getAnimationRoot.fold((function(){return t.element}),(function(e){return e(t)}))},Gz=function(t){return t.dimension.property},Yz=function(t,e){return t.dimension.getDimension(e)},Xz=function(t,e){var n=Kz(t,e);Ns(n,[e.shrinkingClass,e.growingClass])},Zz=function(t,e){Ts(t.element,e.openClass),Es(t.element,e.closedClass),Ys(t.element,Gz(e),"0px"),iu(t.element)},Jz=function(t,e){Ts(t.element,e.closedClass),Es(t.element,e.openClass),ru(t.element,Gz(e))},Qz=function(t,e,n,r){n.setCollapsed(),Ys(t.element,Gz(e),Yz(e,t.element)),iu(t.element),Xz(t,e),Zz(t,e),e.onStartShrink(t),e.onShrunk(t)},tj=function(t,e,n,r){var i=r.getOrThunk((function(){return Yz(e,t.element)}));n.setCollapsed(),Ys(t.element,Gz(e),i),iu(t.element);var o=Kz(t,e);Ts(o,e.growingClass),Es(o,e.shrinkingClass),Zz(t,e),e.onStartShrink(t)},ej=function(t,e,n){var r=Yz(e,t.element),i="0px"===r?Qz:tj;i(t,e,n,_.some(r))},nj=function(t,e,n){var r=Kz(t,e),i=As(r,e.shrinkingClass),o=Yz(e,t.element);Jz(t,e);var a=Yz(e,t.element),s=function(){Ys(t.element,Gz(e),o),iu(t.element)},u=function(){Zz(t,e)},c=i?s:u;c(),Ts(r,e.shrinkingClass),Es(r,e.growingClass),Jz(t,e),Ys(t.element,Gz(e),a),n.setExpanded(),e.onStartGrow(t)},rj=function(t,e,n){if(n.isExpanded()){ru(t.element,Gz(e));var r=Yz(e,t.element);Ys(t.element,Gz(e),r)}},ij=function(t,e,n){n.isExpanded()||nj(t,e,n)},oj=function(t,e,n){n.isExpanded()&&ej(t,e,n)},aj=function(t,e,n){n.isExpanded()&&Qz(t,e,n,_.none())},sj=function(t,e,n){return n.isExpanded()},uj=function(t,e,n){return n.isCollapsed()},cj=function(t,e,n){var r=Kz(t,e);return!0===As(r,e.growingClass)},lj=function(t,e,n){var r=Kz(t,e);return!0===As(r,e.shrinkingClass)},fj=function(t,e,n){return!0===cj(t,e)||!0===lj(t,e)},dj=function(t,e,n){var r=n.isExpanded()?ej:nj;r(t,e,n)},hj=Object.freeze({__proto__:null,refresh:rj,grow:ij,shrink:oj,immediateShrink:aj,hasGrown:sj,hasShrunk:uj,isGrowing:cj,isShrinking:lj,isTransitioning:fj,toggleGrow:dj,disableTransitions:Xz}),pj=function(t,e,n){var r=e.expanded;return Qa(r?{classes:[e.openClass],styles:{}}:{classes:[e.closedClass],styles:ce(e.dimension.property,"0px")})},mj=function(t,e){return go([To(Pi(),(function(n,r){var i=r.event.raw;if(i.propertyName===t.dimension.property){Xz(n,t),e.isExpanded()&&ru(n.element,t.dimension.property);var o=e.isExpanded()?t.onGrown:t.onShrunk;o(n)}}))])},gj=Object.freeze({__proto__:null,exhibit:pj,events:mj}),vj=[yn("closedClass"),yn("openClass"),yn("shrinkingClass"),yn("growingClass"),An("getAnimationRoot"),zc("onShrunk"),zc("onStartShrink"),zc("onGrown"),zc("onStartGrow"),zn("expanded",!1),wn("dimension",un("property",{width:[Hc("property","width"),Hc("getDimension",(function(t){return Pu(t)+"px"}))],height:[Hc("property","height"),Hc("getDimension",(function(t){return Cu(t)+"px"}))]}))],bj=function(t){var e=Yn(t.expanded),n=function(){return"expanded: "+e.get()};return Ga({isExpanded:function(){return!0===e.get()},isCollapsed:function(){return!1===e.get()},setCollapsed:s(e.set,!1),setExpanded:s(e.set,!0),readState:n})},yj=Object.freeze({__proto__:null,init:bj}),wj=Hl({fields:vj,name:"sliding",active:gj,apis:hj,state:yj}),_j=o([Bc(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),zc("onOpened"),zc("onClosed")].concat(Oz())),xj=o([Em({factory:mz,schema:fz(),name:"primary"}),Em({factory:mz,schema:fz(),name:"overflow",overrides:function(t){return{toolbarBehaviours:Fl([wj.config({dimension:{property:"height"},closedClass:t.markers.closedClass,openClass:t.markers.openClass,shrinkingClass:t.markers.shrinkingClass,growingClass:t.markers.growingClass,onShrunk:function(e){Hm(e,t,"overflow-button").each((function(t){Zy.off(t),Ny.focus(t)})),t.onClosed(e)},onGrown:function(e){fy.focusIn(e),t.onOpened(e)},onStartGrow:function(e){Hm(e,t,"overflow-button").each(Zy.on)}}),fy.config({mode:"acyclic",onEscape:function(e){return Hm(e,t,"overflow-button").each(Ny.focus),_.some(!0)}})])}}}),Om({name:"overflow-button",overrides:function(t){return{buttonBehaviours:Fl([Zy.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Om({name:"overflow-group"})]),Cj=function(t,e){return Hm(t,e,"overflow").map(wj.hasGrown).getOr(!1)},Sj=function(t,e){Hm(t,e,"overflow-button").bind((function(){return Hm(t,e,"overflow")})).each((function(n){kj(t,e),wj.toggleGrow(n)}))},kj=function(t,e){Hm(t,e,"overflow").each((function(n){Ez(t,e,(function(t){var e=q(t,(function(t){return wu(t)}));mz.setGroups(n,e)})),Hm(t,e,"overflow-button").each((function(t){wj.hasGrown(n)&&Zy.on(t)})),wj.refresh(n)}))},Mj=function(t,e,n,r){var i="alloy.toolbar.toggle",o=function(e,n){var r=q(n,e.getSystem().build);t.builtGroups.set(r)};return{uid:t.uid,dom:t.dom,components:e,behaviours:Zp(t.splitToolbarBehaviours,[JO.config({others:{overflowGroup:function(t){return Hz.sketch(h(h({},r["overflow-group"]()),{items:[Zw.sketch(h(h({},r["overflow-button"]()),{action:function(e){co(t,i)}}))]}))}}}),Cy("toolbar-toggle-events",[wo(i,(function(e){Sj(e,t)}))])]),apis:{setGroups:function(e,n){o(e,n),kj(e,t)},refresh:function(e){return kj(e,t)},toggle:function(e){return Sj(e,t)},isOpen:function(e){return Cj(e,t)}},domModification:{attributes:{role:"group"}}}},Ej=ug({name:"SplitSlidingToolbar",configFields:_j(),partFields:xj(),factory:Mj,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)}}}),Oj=o(Ea("toolbar-height-change")),Tj=function(t){var e=t.title.fold((function(){return{}}),(function(t){return{attributes:{title:t}}}));return{dom:h({tag:"div",classes:["tox-toolbar__group"]},e),components:[Hz.parts.items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:Fl([QE.config({}),Ny.config({})])}},Aj=function(t){return Hz.sketch(Tj(t))},Dj=function(t,e){var n=Ao((function(e){var n=q(t.initGroups,Aj);mz.setGroups(e,n)}));return Fl([KS.toolbarButton(t.providers.isDisabled),HS(),fy.config({mode:e,onEscape:t.onEscape,selector:".tox-toolbar__group"}),Cy("toolbar-events",[n])])},Nj=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return{uid:t.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":Tj({title:_.none(),items:[]}),"overflow-button":PP({name:"more",icon:_.some("more-drawer"),disabled:!1,tooltip:_.some("More..."),primary:!1,borderless:!1},_.none(),t.providers)},splitToolbarBehaviours:Dj(t,e)}},Rj=function(t){var e=Nj(t),n=4,r=Wz.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return Wz.sketch(h(h({},e),{lazySink:t.getSink,getOverflowBounds:function(){var e=t.moreDrawerData.lazyHeader().element,r=oc(e),i=Vo(e),o=oc(i),a=Math.max(i.dom.scrollHeight,o.height);return rc(r.x+n,o.y,r.width-2*n,a)},parts:h(h({},e.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:t.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},Pj=function(t){var e=Ej.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=Ej.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=Nj(t);return Ej.sketch(h(h({},r),{components:[e,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(t){t.getSystem().broadcastOn([Oj()],{type:"opened"})},onClosed:function(t){t.getSystem().broadcastOn([Oj()],{type:"closed"})}}))},Ij=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return mz.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(t.type===sx.scrolling?["tox-toolbar--scrolling"]:[])},components:[mz.parts.groups({})],toolbarBehaviours:Dj(t,e)})},Bj=ze([xn("type"),wn("items",Fe([Xe([xn("name"),Tn("items",hn)]),hn]))].concat(V_)),Lj=function(t){return nn("GroupToolbarButton",Bj,t)},zj=[Rn("text"),Rn("tooltip"),Rn("icon"),kn("fetch"),Un("onSetup",(function(){return e}))],jj=ze(m([xn("type")],zj)),Fj=function(t){return nn("menubutton",jj,t)},$j=ze([xn("type"),Rn("tooltip"),Rn("icon"),Rn("text"),Pn("select"),kn("fetch"),Un("onSetup",(function(){return e})),Hn("presets","normal",["normal","color","listpreview"]),zn("columns",1),kn("onAction"),kn("onItemAction")]),Hj=function(t){return nn("SplitButton",$j,t)},Vj=function(t,e){var n=function(n,r){t.updateState.each((function(t){var i=t(n,r);e.set(i)})),t.renderComponents.each((function(t){var i=t(r,e.get()),o=q(i,n.getSystem().build);Lh(n,o)}))};return go([wo($i(),(function(e,r){var i=r;if(!i.universal){var o=t.channel;$(i.channels,o)&&n(e,i.data)}})),Ao((function(e,r){t.initialData.each((function(t){n(e,t)}))}))])},Uj=Object.freeze({__proto__:null,events:Vj}),qj=function(t,e,n){return n},Wj=Object.freeze({__proto__:null,getState:qj}),Kj=[yn("channel"),An("renderComponents"),An("updateState"),An("initialData")],Gj=function(){var t=Yn(_.none()),e=function(e){return t.set(e)},n=function(){return t.set(_.none())},r=function(){return t.get()},i=function(){return t.get().fold((function(){return"none"}),(function(t){return t}))};return{readState:i,get:r,set:e,clear:n}},Yj=Object.freeze({__proto__:null,init:Gj}),Xj=Hl({fields:Kj,name:"reflecting",active:Uj,apis:Wj,state:Yj}),Zj=o([yn("toggleClass"),yn("fetch"),Fc("onExecute"),zn("getHotspot",_.some),zn("getAnchorOverrides",o({})),Hf(),Fc("onItemExecute"),An("lazySink"),yn("dom"),zc("onOpen"),Yp("splitDropdownBehaviours",[JO,fy,Ny]),zn("matchWidth",!1),zn("useMinWidth",!1),zn("eventOrder",{}),An("role")].concat(dT())),Jj=Em({factory:Zw,schema:[yn("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:Fl([Ny.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each(fo)},buttonBehaviours:Fl([Zy.config({toggleOnExecute:!1,toggleClass:t.toggleClass})])}}}),Qj=Em({factory:Zw,schema:[yn("dom")],name:"button",defaults:function(){return{buttonBehaviours:Fl([Ny.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each((function(n){t.onExecute(n,e)}))}}}}),tF=o([Jj,Qj,Tm({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[yn("text")],name:"aria-descriptor"}),Om({schema:[Ic()],name:"menu",defaults:function(t){return{onExecute:function(e,n){e.getSystem().getByUid(t.uid).each((function(r){t.onItemExecute(r,e,n)}))}}}}),tT()]),eF=function(t,n,r,i){var o,a=function(t){yg.getCurrent(t).each((function(t){jg.highlightFirst(t),fy.focusIn(t)}))},s=function(n){var r=a;aT(t,(function(t){return t}),n,i,r,kO.HighlightFirst).get(e)},u=function(t){return s(t),_.some(!0)},c=function(e){var n=Vm(e,t,"button");return fo(n),_.some(!0)},l=h(h({},go([Ao((function(e,n){var r=Hm(e,t,"aria-descriptor");r.each((function(t){var n=Ea("aria");ha(t.element,"id",n),ha(e.element,"aria-describedby",n)}))}))])),Qy(_.some(s))),f={repositionMenus:function(t){Zy.isOn(t)&&fT(t)}};return{uid:t.uid,dom:t.dom,components:n,apis:f,eventOrder:h(h({},t.eventOrder),(o={},o[Hi()]=["disabling","toggling","alloy.base.behaviour"],o)),events:l,behaviours:Zp(t.splitDropdownBehaviours,[JO.config({others:{sandbox:function(e){var n=Vm(e,t,"arrow"),r={onOpen:function(){Zy.on(n),Zy.on(e)},onClose:function(){Zy.off(n),Zy.off(e)}};return lT(t,e,r)}}}),fy.config({mode:"special",onSpace:c,onEnter:c,onDown:u}),Ny.config({}),Zy.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:t.role.getOr("button"),"aria-haspopup":!0}}}},nF=ug({name:"SplitDropdown",configFields:Zj(),partFields:tF(),factory:eF,apis:{repositionMenus:function(t,e){return t.repositionMenus(e)}}}),rF=function(t){return{isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)}}},iF=function(t){return{setActive:function(e){Zy.set(t,e)},isActive:function(){return Zy.isOn(t)},isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)}}},oF=function(t,e){return t.map((function(t){return{"aria-label":e.translate(t),title:e.translate(t)}})).getOr({})},aF=Ea("focus-button"),sF=["checklist","ordered-list"],uF=["indent","outdent","table-insert-column-after","table-insert-column-before","unordered-list"],cF=function(t,e,n,r,i,o){var a,s=function(t){return AC.isRtl()&&$(sF,t)?t+"-rtl":t},u=AC.isRtl()&&t.exists((function(t){return $(uF,t)}));return{dom:{tag:"button",classes:["tox-tbtn"].concat(e.isSome()?["tox-tbtn--select"]:[]).concat(u?["tox-tbtn__icon-rtl"]:[]),attributes:oF(n,o)},components:QS([t.map((function(t){return fP(s(t),o.icons)})),e.map((function(t){return hP(t,"tox-tbtn",o)}))]),eventOrder:(a={},a[xi()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:Fl([KS.toolbarButton(o.isDisabled),HS(),Cy("common-button-display-events",[wo(xi(),(function(t,e){e.event.prevent(),co(t,aF)}))])].concat(r.map((function(n){return Xj.config({channel:n,initialData:{icon:t,text:e},renderComponents:function(t,e){return QS([t.icon.map((function(t){return fP(s(t),o.icons)})),t.text.map((function(t){return hP(t,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},lF=function(t,e,n,r){var i=e.shared;return zz.sketch({lazySink:i.getSink,fetch:function(){return PO.nu((function(e){e(q(n(t.items),Aj))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:cF(t.icon,t.text,t.tooltip,_.none(),_.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},fF=function(t,n,r){var i=Yn(e),o=cF(t.icon,t.text,t.tooltip,_.none(),_.none(),r);return Zw.sketch({dom:o.dom,components:o.components,eventOrder:gP,buttonBehaviours:Fl([Cy("toolbar-button-events",[mP({onAction:t.onAction,getApi:n.getApi}),YS(n,i),XS(n,i)]),KS.toolbarButton((function(){return t.disabled||r.isDisabled()})),HS()].concat(n.toolbarButtonBehaviours))})},dF=function(t,e){return hF(t,e,[])},hF=function(t,e,n){return fF(t,{toolbarButtonBehaviours:[].concat(n.length>0?[Cy("toolbarButtonWith",n)]:[]),getApi:rF,onSetup:t.onSetup},e)},pF=function(t,e){return mF(t,e,[])},mF=function(t,e,n){return Gt(fF(t,{toolbarButtonBehaviours:[_y.config({}),Zy.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[Cy("toolbarToggleButtonWith",n)]:[]),getApi:iF,onSetup:t.onSetup},e))},gF=function(t,e,n){return function(r){return PO.nu((function(t){return e.fetch(t)})).map((function(i){return _.from(sE(Gt(OM(Ea("menu-value"),i,(function(n){e.onItemAction(t(r),n)}),e.columns,e.presets,ux.CLOSE_ON_EXECUTE,e.select.getOr((function(){return!1})),n),{movement:AM(e.columns,e.presets),menuBehaviours:gC.unnamedEvents("auto"!==e.columns?[]:[Ao((function(t,n){hC(t,4,Ax(e.presets)).each((function(e){var n=e.numRows,r=e.numColumns;fy.setGridSize(t,n,r)}))}))])})))}))}},vF=function(t,n){var r,i=Ea("channel-update-split-dropdown-display"),o=function(t){return{isDisabled:function(){return YC.isDisabled(t)},setDisabled:function(e){return YC.set(t,e)},setIconFill:function(e,n){pc(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each((function(t){ha(t,"fill",n)}))},setIconStroke:function(e,n){pc(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each((function(t){ha(t,"stroke",n)}))},setActive:function(e){ha(t.element,"aria-pressed",e),pc(t.element,"span").each((function(n){t.getSystem().getByDom(n).each((function(t){return Zy.set(t,e)}))}))},isActive:function(){return pc(t.element,"span").exists((function(e){return t.getSystem().getByDom(e).exists(Zy.isOn)}))}}},a=Yn(e),s={getApi:o,onSetup:t.onSetup};return nF.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:h({"aria-pressed":!1},oF(t.tooltip,n.providers))},onExecute:function(e){t.onAction(o(e))},onItemExecute:function(t,e,n){},splitDropdownBehaviours:Fl([KS.splitButton(n.providers.isDisabled),HS(),Cy("split-dropdown-events",[wo(aF,Ny.focus),YS(s,a),XS(s,a)]),wT.config({})]),eventOrder:(r={},r[Qi()]=["alloy.base.behaviour","split-dropdown-events"],r),toggleClass:"tox-tbtn--enabled",lazySink:n.getSink,fetch:gF(o,t,n.providers),parts:{menu:Bx(!1,t.columns,t.presets)},components:[nF.parts.button(cF(t.icon,t.text,_.none(),_.some(i),_.some([Zy.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),n.providers)),nF.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:t_("chevron-down",n.providers.icons)},buttonBehaviours:Fl([KS.splitButton(n.providers.isDisabled),HS()])}),nF.parts["aria-descriptor"]({text:n.providers.translate("To open the popup, press Shift+Enter")})]})},bF=function(t){return{hide:function(){return co(t,Wi())},getValue:function(){return Gp.getValue(t)}}},yF=function(t,e){return wo(pP,(function(n,r){var i=t.get(n),o=bF(i);e.onAction(o,r.event.buttonApi)}))},wF=function(t,e,n){var r=e.original,i=(r.primary,p(r,["primary"])),o=rn(q_(h(h({},i),{type:"button",onAction:function(){}})));return hF(o,n.backstage.shared.providers,[yF(t,e)])},_F=function(t,e,n){var r=e.original,i=(r.primary,p(r,["primary"])),o=rn(G_(h(h({},i),{type:"togglebutton",onAction:function(){}})));return mF(o,n.backstage.shared.providers,[yF(t,e)])},xF=function(t,e,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===e.type?_F(t,e,r):wF(t,e,r)},CF=function(t,e,n){var r=q(e,(function(e){return Jw(xF(t,e,n))})),i=function(){return q(r,(function(t){return t.asSpec()}))},o=function(t){return dt(e,(function(e,n){return e.primary?_.from(r[n]).bind((function(e){return e.getOpt(t)})).filter(u(YC.isDisabled)):_.none()}))};return{asSpecs:i,findPrimary:o}},SF=function(t,e){var n=t.label.fold((function(){return{}}),(function(t){return{"aria-label":t}})),r=Jw(xO.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:Fl([fy.config({mode:"special",onEnter:function(t){return i.findPrimary(t).map((function(t){return fo(t),!0}))},onLeft:function(t,e){return e.cut(),_.none()},onRight:function(t,e){return e.cut(),_.none()}})])})),i=CF(r,t.commands,e);return[{title:_.none(),items:[r.asSpec()]},{title:_.none(),items:i.asSpecs()}]},kF=function(t,e,n){return Ij({type:t,uid:Ea("context-toolbar"),initGroups:SF(e,n),onEscape:_.none,cyclicKeying:!0,providers:n})},MF={renderContextForm:kF,buildInitGroups:SF},EF=function(t,e){var n=Math.max(e.x,t.x),r=t.right-n,i=e.width-(n-e.x),o=Math.min(r,i);return{x:n,width:o}},OF=function(t,e,n,r){var i=er.fromDom(t.getContainer()),o=pc(i,".tox-editor-header").getOr(i),a=ic(o),s=a.y>=e.bottom,u=r&&!s;if(t.inline&&u)return{y:Math.max(a.bottom,n.y),bottom:n.bottom};if(t.inline&&!u)return{y:n.y,bottom:Math.min(a.y,n.bottom)};var c=ic(i);return u?{y:Math.max(a.bottom,n.y),bottom:Math.min(c.bottom,n.bottom)}:{y:Math.max(c.y,n.y),bottom:Math.min(a.y,n.bottom)}},TF=function(t,e){var n=Gu(window),r=ic(er.fromDom(t.getContentAreaContainer())),i=lS(t)||fS(t)||hS(t),o=EF(r,n),a=o.x,s=o.width;if(t.inline&&!i)return rc(a,n.y,s,n.height);var u=e.header.isPositionedAtTop(),c=OF(t,r,n,u),l=c.y,f=c.bottom;return rc(a,l,s,f-l)},AF=function(t,e){var n=Y(e,(function(e){return e.predicate(t.dom)})),r=G(n,(function(t){return"contexttoolbar"===t.type})),i=r.pass,o=r.fail;return{contextToolbars:i,contextForms:o}},DF=function(t){if(t.length<=1)return t;var e=function(e){return H(t,(function(t){return t.position===e}))},n=function(e){return Y(t,(function(t){return t.position===e}))},r=e("selection"),i=e("node");if(r||i){if(i&&r){var o=n("node"),a=q(n("selection"),(function(t){return h(h({},t),{position:"node"})}));return o.concat(a)}return n(r?"selection":"node")}return n("line")},NF=function(t){if(t.length<=1)return t;var e=function(e){return Q(t,(function(t){return t.position===e}))},n=e("selection").orThunk((function(){return e("node")})).orThunk((function(){return e("line")})).map((function(t){return t.position}));return n.fold((function(){return[]}),(function(e){return Y(t,(function(t){return t.position===e}))}))},RF=function(t,e,n){var r=AF(t,e);if(r.contextForms.length>0)return _.some({elem:t,toolbars:[r.contextForms[0]]});var i=AF(t,n);if(i.contextForms.length>0)return _.some({elem:t,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=DF(r.contextToolbars.concat(i.contextToolbars));return _.some({elem:t,toolbars:o})}return _.none()},PF=function(t,e,n){return t(e)?_.none():ci(e,(function(t){var e=AF(t,n.inNodeScope),r=e.contextToolbars,i=e.contextForms,o=i.length>0?i:NF(r);return o.length>0?_.some({elem:t,toolbars:o}):_.none()}),t)},IF=function(t,e){var n=er.fromDom(e.getBody()),r=function(t){return ii(t,n)},i=function(t){return!r(t)&&!si(n,t)},o=er.fromDom(e.selection.getNode());return i(o)?_.none():RF(o,t.inNodeScope,t.inEditorScope).orThunk((function(){return PF(r,o,t)}))},BF=function(t,e){var n={},r=[],i=[],o={},a={},s=function(t,s){var u=rn(nx(s));n[t]=u,u.launch.map((function(n){o["form:"+t]=h(h({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){e(u)}})})),"editor"===u.scope?i.push(u):r.push(u),a[t]=u},u=function(t,e){ix(e).each((function(n){"editor"===e.scope?i.push(n):r.push(n),a[t]=n}))},c=Ot(t);return W(c,(function(e){var n=t[e];"contextform"===n.type?s(e,n):"contexttoolbar"===n.type&&u(e,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},LF=Ea("forward-slide"),zF=Ea("backward-slide"),jF=Ea("change-slide-event"),FF="tox-pop--resizing",$F=function(t){var e=Yn([]);return Lw.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(t){e.set([]),Lw.getContent(t).each((function(t){ru(t.element,"visibility")})),Ts(t.element,FF),ru(t.element,"width")},inlineBehaviours:Fl([Cy("context-toolbar-events",[To(Pi(),(function(t,e){Ts(t.element,FF),ru(t.element,"width")})),wo(jF,(function(t,e){ru(t.element,"width");var n=Pu(t.element);Lw.setContent(t,e.event.contents),Es(t.element,FF);var r=Pu(t.element);Ys(t.element,"width",n+"px"),Lw.getContent(t).each((function(n){e.event.focus.bind((function(e){return Xl(e),tf(t.element)})).orThunk((function(){return fy.focusIn(n),Ql()}))})),Yw.setTimeout((function(){Ys(t.element,"width",r+"px")}),0)})),wo(LF,(function(t,n){Lw.getContent(t).each((function(t){e.set(e.get().concat([{bar:t,focus:Ql()}]))})),lo(t,jF,{contents:n.event.forwardContents,focus:_.none()})})),wo(zF,(function(t,n){lt(e.get()).each((function(n){e.set(e.get().slice(0,e.get().length-1)),lo(t,jF,{contents:wu(n.bar),focus:n.focus})}))}))]),fy.config({mode:"special",onEscape:function(n){return lt(e.get()).fold((function(){return t.onEscape()}),(function(t){return co(n,zF),_.some(!0)}))}})]),lazySink:function(){return gt.value(t.sink)}})},HF=function(t,e,n){var r=function(t,r,o,a){var s=e.shared.providers.translate(t.title);if("separator"===t.type)return _.some({type:"separator",text:s});if("submenu"===t.type){var u=nt(t.getStyleItems(),(function(t){return i(t,r,a)}));return 0===r&&u.length<=0?_.none():_.some({type:"nestedmenuitem",text:s,disabled:u.length<=0,getSubmenuItems:function(){return nt(t.getStyleItems(),(function(t){return i(t,r,a)}))}})}return _.some(h({type:"togglemenuitem",text:s,icon:t.icon,active:t.isSelected(a),disabled:o,onAction:n.onAction(t)},t.getStylePreview().fold((function(){return{}}),(function(t){return{meta:{style:t}}}))))},i=function(t,e,i){var o="formatter"===t.type&&n.isInvalid(t);return 0===e?o?[]:r(t,e,!1,i).toArray():r(t,e,o,i).toArray()},o=function(t){var e=n.getCurrentValue(),r=n.shouldHide?0:1;return nt(t,(function(t){return i(t,r,e)}))},a=function(t,e){return function(n,r){var i=e(),a=o(i),s=TP(a,ux.CLOSE_ON_EXECUTE,t,!1);r(s)}};return{validateItems:o,getFetch:a}},VF=function(t,e,n){var r=n.dataset,i="basic"===r.type?function(){return q(r.data,(function(t){return gL(t,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:HF(t,e,n),getStyleItems:i}},UF=function(t,n,r){var i=VF(t,n,r),o=i.items,a=i.getStyleItems,s=function(t){return{getComponent:function(){return t}}},u=function(n){return r.setInitialValue.each((function(t){return t(n.getComponent())})),r.nodeChangeHandler.map((function(e){var r=e(n.getComponent());return t.on("NodeChange",r),function(){t.off("NodeChange",r)}})).getOr(e)};return yP({text:r.icon.isSome()?_.none():_.some(""),icon:r.icon,tooltip:_.from(r.tooltip),role:_.none(),fetch:o.getFetch(n,a),onSetup:u,getApi:s,columns:1,presets:"normal",classes:r.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",n.shared)},qF=function(t){return q(t,(function(t){var e=t,n=t,r=t.split("=");return r.length>1&&(e=r[0],n=r[1]),{title:e,format:n}}))},WF=function(t){return{type:"basic",data:t}};(function(t){t[t["SemiColon"]=0]="SemiColon",t[t["Space"]=1]="Space"})(RI||(RI={}));var KF,GF=function(t,e){return e===RI.SemiColon?t.replace(/;$/,"").split(";"):t.split(" ")},YF=function(t,e,n,r){var i=t.getParam(e,n,"string"),o=qF(GF(i,r));return{type:"basic",data:o}},XF=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],ZF=function(t){var e=function(){return Q(XF,(function(e){return t.formatter.match(e.format)}))},n=function(e){return function(){return t.formatter.match(e)}},r=function(t){return function(){return _.none()}},i=function(t){var n=e(),r=n.fold((function(){return"left"}),(function(t){return t.title.toLowerCase()}));lo(t,bP,{icon:"align-"+r})},o=_.some((function(t){return function(){return i(t)}})),a=_.some((function(t){return i(t)})),s=WF(XF),u=function(e){return function(){return Q(XF,(function(t){return t.format===e.format})).each((function(e){return t.execCommand(e.command)}))}};return{tooltip:"Align",icon:_.some("align-left"),isSelectedFor:n,getCurrentValue:_.none,getPreviewFor:r,onAction:u,setInitialValue:a,nodeChangeHandler:o,dataset:s,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},JF=function(t,e){return UF(t,e,ZF(t))},QF=function(t,e){var n=VF(t,e,ZF(t));t.ui.registry.addNestedMenuItem("align",{text:e.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},t$="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",e$=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],n$=function(t){var e=t.split(/\s*,\s*/);return q(e,(function(t){return t.replace(/^['"]+|['"]+$/g,"")}))},r$=function(t){var e=function(){var e=n$(t.toLowerCase());return rt(e$,(function(t){return e.indexOf(t.toLowerCase())>-1}))};return 0===t.indexOf("-apple-system")&&e()},i$=function(t){var e=function(){var e=function(t){return t?n$(t)[0]:""},n=t.queryCommandValue("FontName"),r=c.data,i=n?n.toLowerCase():"",o=Q(r,(function(t){var n=t.format;return n.toLowerCase()===i||e(n).toLowerCase()===e(i).toLowerCase()})).orThunk((function(){return r$(i)?_.from({title:"System Font",format:i}):_.none()}));return{matchOpt:o,font:n}},n=function(t){return function(e){return e.exists((function(e){return e.format===t}))}},r=function(){var t=e().matchOpt;return t},i=function(t){return function(){return _.some({tag:"div",styles:-1===t.indexOf("dings")?{"font-family":t}:{}})}},o=function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("FontName",!1,e.format)}))}},a=function(t){var n=e(),r=n.matchOpt,i=n.font,o=r.fold((function(){return i}),(function(t){return t.title}));lo(t,vP,{text:o})},s=_.some((function(t){return function(){return a(t)}})),u=_.some((function(t){return a(t)})),c=YF(t,"font_formats",t$,RI.SemiColon);return{tooltip:"Fonts",icon:_.none(),isSelectedFor:n,getCurrentValue:r,getPreviewFor:i,onAction:o,setInitialValue:u,nodeChangeHandler:s,dataset:c,shouldHide:!1,isInvalid:function(){return!1}}},o$=function(t,e){return UF(t,e,i$(t))},a$=function(t,e){var n=VF(t,e,i$(t));t.ui.registry.addNestedMenuItem("fontformats",{text:e.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},s$="8pt 10pt 12pt 14pt 18pt 24pt 36pt",u$={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},c$={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},l$=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},f$=function(t,e){return/[0-9.]+px$/.test(t)?l$(72*parseInt(t,10)/96,e||0)+"pt":jt(c$,t).getOr(t)},d$=function(t){return jt(u$,t).getOr("")},h$=function(t){var e=function(){var e=_.none(),n=l.data,r=t.queryCommandValue("FontSize");if(r)for(var i=function(t){var i=f$(r,t),o=d$(i);e=Q(n,(function(t){return t.format===r||t.format===i||t.format===o}))},o=3;e.isNone()&&o>=0;o--)i(o);return{matchOpt:e,size:r}},n=function(t){return function(e){return e.exists((function(e){return e.format===t}))}},r=function(){var t=e().matchOpt;return t},i=o(_.none),a=function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("FontSize",!1,e.format)}))}},s=function(t){var n=e(),r=n.matchOpt,i=n.size,o=r.fold((function(){return i}),(function(t){return t.title}));lo(t,vP,{text:o})},u=_.some((function(t){return function(){return s(t)}})),c=_.some((function(t){return s(t)})),l=YF(t,"fontsize_formats",s$,RI.Space);return{tooltip:"Font sizes",icon:_.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:a,setInitialValue:c,nodeChangeHandler:u,dataset:l,shouldHide:!1,isInvalid:function(){return!1}}},p$=function(t,e){return UF(t,e,h$(t))},m$=function(t,e){var n=VF(t,e,h$(t));t.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},g$=function(t,e){var n=e(),r=q(n,(function(t){return t.format}));return _.from(t.formatter.closest(r)).bind((function(t){return Q(n,(function(e){return e.format===t}))})).orThunk((function(){return pg(t.formatter.match("p"),{title:"Paragraph",format:"p"})}))},v$=function(t){var e=Yn(_.none()),n=function(){return e.get().each(t)},r=function(){n(),e.set(_.none())},i=function(){return e.get().isSome()},o=function(t){n(),e.set(_.some(t))};return{clear:r,isSet:i,set:o}},b$=function(){return v$((function(t){return t.destroy()}))},y$=function(){return v$((function(t){return t.unbind()}))},w$=function(){var t=Yn(_.none()),e=function(){return t.set(_.none())},n=function(e){return t.set(_.some(e))},r=function(){return t.get().isSome()},i=function(e){return t.get().each(e)};return{clear:e,set:n,isSet:r,on:i}},_$=function(t,e){return function(n){var r=y$(),i=function(){n.setActive(t.formatter.match(e));var i=t.formatter.formatChanged(e,n.setActive);r.set(i)};return t.initialized?i():t.on("init",i),r.clear}},x$=function(t){return function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("mceToggleFormat",!1,e.format)}))}}},C$="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",S$=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return _.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))})}},r=function(e){var n=g$(t,(function(){return a.data})),r=n.fold((function(){return"Paragraph"}),(function(t){return t.title}));lo(e,vP,{text:r})},i=_.some((function(t){return function(){return r(t)}})),o=_.some((function(t){return r(t)})),a=YF(t,"block_formats",C$,RI.SemiColon);return{tooltip:"Blocks",icon:_.none(),isSelectedFor:e,getCurrentValue:_.none,getPreviewFor:n,onAction:x$(t),setInitialValue:o,nodeChangeHandler:i,dataset:a,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},k$=function(t,e){return UF(t,e,S$(t))},M$=function(t,e){var n=VF(t,e,S$(t));t.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},E$=function(t,e){var n=function(e){return function(){return t.formatter.match(e)}},r=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?_.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):_.none()}},i=function(e){var n=function(t){var e=t.items;return void 0!==e&&e.length>0?nt(e,n):[{title:t.title,format:t.format}]},r=nt(mL(t),n),i=g$(t,(function(){return r})),o=i.fold((function(){return"Paragraph"}),(function(t){return t.title}));lo(e,vP,{text:o})},o=_.some((function(t){return function(){return i(t)}})),a=_.some((function(t){return i(t)}));return{tooltip:"Formats",icon:_.none(),isSelectedFor:n,getCurrentValue:_.none,getPreviewFor:r,onAction:x$(t),setInitialValue:a,nodeChangeHandler:o,shouldHide:t.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(e){return!t.formatter.canApply(e.format)},dataset:e}},O$=function(t,e){var n=h({type:"advanced"},e.styleselect);return UF(t,e,E$(t,n))},T$=function(t,e){var n=h({type:"advanced"},e.styleselect),r=VF(t,e,E$(t,n));t.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},A$=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],D$=function(t,e){return function(n,r,i){var o=t(n).mapError((function(t){return an(t)})).getOrDie();return e(o,r,i)}},N$={button:D$(q_,(function(t,e){return dF(t,e.backstage.shared.providers)})),togglebutton:D$(G_,(function(t,e){return pF(t,e.backstage.shared.providers)})),menubutton:D$(Fj,(function(t,e){return DP(t,"tox-tbtn",e.backstage,_.none())})),splitbutton:D$(Hj,(function(t,e){return vF(t,e.backstage.shared)})),grouptoolbarbutton:D$(Lj,(function(t,e,n){var r,i=n.ui.registry.getAll().buttons,o=function(t){return F$(n,{buttons:i,toolbar:t,allowToolbarGroups:!1},e,_.none())},a=(r={},r[Ff]=e.backstage.shared.header.isPositionedAtTop()?_c.TopToBottom:_c.BottomToTop,r);switch(mS(n)){case sx.floating:return lF(t,e.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(t,e){return O$(t,e.backstage)},fontsizeSelectButton:function(t,e){return p$(t,e.backstage)},fontSelectButton:function(t,e){return o$(t,e.backstage)},formatButton:function(t,e){return k$(t,e.backstage)},alignMenuButton:function(t,e){return JF(t,e.backstage)}},R$=function(t,e,n){return jt(N$,t.type).fold((function(){return console.error("skipping button defined by",t),_.none()}),(function(r){return _.some(r(t,e,n))}))},P$={styleselect:N$.styleSelectButton,fontsizeselect:N$.fontsizeSelectButton,fontselect:N$.fontSelectButton,formatselect:N$.formatButton,align:N$.alignMenuButton},I$=function(t){var e=q(A$,(function(e){var n=Y(e.items,(function(e){return Ft(t,e)||Ft(P$,e)}));return{name:e.name,items:n}}));return Y(e,(function(t){return t.items.length>0}))},B$=function(t){var e=t.split("|");return q(e,(function(t){return{items:t.trim().split(" ")}}))},L$=function(t){return I(t,(function(t){return Ft(t,"name")&&Ft(t,"items")}))},z$=function(t){var e=t.toolbar,n=t.buttons;return!1===e?[]:void 0===e||!0===e?I$(n):M(e)?B$(e):L$(e)?e:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},j$=function(t,e,n,r,i,o){return jt(e,n.toLowerCase()).orThunk((function(){return o.bind((function(t){return dt(t,(function(t){return jt(e,t+n.toLowerCase())}))}))})).fold((function(){return jt(P$,n.toLowerCase()).map((function(e){return e(t,i)})).orThunk((function(){return _.none()}))}),(function(e){return"grouptoolbarbutton"!==e.type||r?R$(e,i,t):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),_.none())}))},F$=function(t,e,n,r){var i=z$(e),o=q(i,(function(i){var o=nt(i.items,(function(i){return 0===i.trim().length?[]:j$(t,e.buttons,i,e.allowToolbarGroups,n,r).toArray()}));return{title:_.from(t.translate(i.name)),items:o}}));return Y(o,(function(t){return t.items.length>0}))},$$=12,H$={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},V$={maxHeightFunction:Af(),maxWidthFunction:uz()},U$={onLtr:function(){return[yl,wl,vl,ml,bl,gl,Kw,Gw,qw,Vw,Ww,Uw]},onRtl:function(){return[yl,wl,bl,gl,vl,ml,Kw,Gw,Ww,Uw,qw,Vw]}},q$={onLtr:function(){return[wl,ml,gl,vl,bl,yl,Kw,Gw,qw,Vw,Ww,Uw]},onRtl:function(){return[wl,gl,ml,bl,vl,yl,Kw,Gw,Ww,Uw,qw,Vw]}},W$=function(t,e){return"line"===t?{bubble:If($$,0,H$),layouts:{onLtr:function(){return[_l]},onRtl:function(){return[xl]}},overrides:V$}:{bubble:If(0,$$,H$),layouts:e?q$:U$,overrides:V$}},K$=function(t,e,n,r){var i=Kr().deviceType.isTouch,o=yu($F({sink:n,onEscape:function(){return t.focus(),_.some(!0)}})),a=function(){return TF(t,r.backstage.shared)},s=function(t,e,n,r){return Math.max(t,n)<=Math.min(e,r)},u=function(){var e=p.get().filter((function(t){return Us(er.fromDom(t))})).map((function(t){return t.getBoundingClientRect()})).getOrThunk((function(){return t.selection.getRng().getBoundingClientRect()})),n=t.inline?Uu().top:oc(er.fromDom(t.getBody())).y;return{y:e.top+n,bottom:e.bottom+n}},c=function(){if(i()&&r.backstage.isContextMenuOpen())return!0;var t=u(),e=a();return!s(t.y,t.bottom,e.y,e.bottom)},l=function(){Lw.hide(o)},f=function(){d.get().each((function(t){var e=o.element;ru(e,"display"),c()?Ys(e,"display","none"):Nh.positionWithinBounds(n,t,o,_.some(a()))}))},d=Yn(_.none()),p=Yn(_.none()),m=Yn(null),g=function(e){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[e],behaviours:Fl([fy.config({mode:"acyclic"}),Cy("pop-dialog-wrap-events",[Ao((function(e){t.shortcuts.add("ctrl+F9","focus statusbar",(function(){return fy.focusIn(e)}))})),Do((function(e){t.shortcuts.remove("ctrl+F9")}))])])}},v=Xt((function(){return BF(e,(function(t){var e=w([t]);lo(o,LF,{forwardContents:g(e)})}))})),b=function(e,n){return F$(t,{buttons:e,toolbar:n.items,allowToolbarGroups:!1},r,_.some(["form:"]))},y=function(t,e){return MF.buildInitGroups(t,e)},w=function(e){var n=t.ui.registry.getAll().buttons,i=v(),o=h(h({},n),i.formNavigators),a=mS(t)===sx.scrolling?sx.scrolling:sx.default,s=et(q(e,(function(t){return"contexttoolbar"===t.type?b(o,t):y(t,r.backstage.shared.providers)})));return Ij({type:a,uid:Ea("context-toolbar"),initGroups:s,onEscape:_.none,cyclicKeying:!0,providers:r.backstage.shared.providers})};t.on(cz,(function(e){var n=v();jt(n.lookupTable,e.toolbarKey).each((function(n){C([n],e.target===t?_.none():_.some(e)),Lw.getContent(o).each(fy.focusIn)}))}));var x=function(t,e){var n="node"===t?r.backstage.shared.anchors.node(e):r.backstage.shared.anchors.cursor();return Gt(n,W$(t,i()))},C=function(t,e){if(k(),!i()||!r.backstage.isContextMenuOpen()){var n=w(t),s=e.map(er.fromDom),u=x(t[0].position,s);d.set(_.some(u)),p.set(e);var l=o.element;ru(l,"display"),Lw.showWithinBounds(o,u,g(n),(function(){return _.some(a())})),c()&&Ys(l,"display","none")}},S=function(){if(t.hasFocus()){var e=v();IF(e,t).fold((function(){d.set(_.none()),Lw.hide(o)}),(function(t){C(t.toolbars,_.some(t.elem.dom))}))}},k=function(){var t=m.get();null!==t&&(Yw.clearTimeout(t),m.set(null))},M=function(t){k(),m.set(t)};t.on("init",(function(){t.on(lz,l),t.on("ScrollContent ScrollWindow longpress",f),t.on("click keyup focus SetContent ObjectResized ResizeEditor",(function(){M(Yw.setEditorTimeout(t,S,0))})),t.on("focusout",(function(e){Yw.setEditorTimeout(t,(function(){tf(n.element).isNone()&&tf(o.element).isNone()&&(d.set(_.none()),Lw.hide(o))}),0)})),t.on("SwitchMode",(function(){t.mode.isReadOnly()&&(d.set(_.none()),Lw.hide(o))})),t.on("NodeChange",(function(e){tf(o.element).fold((function(){M(Yw.setEditorTimeout(t,S,0))}),(function(t){}))}))}))},G$=function(t,e,n){var r=function(t,r){W([e,n],(function(e){e.broadcastEvent(t,r)}))},i=function(t,r){W([e,n],(function(e){e.broadcastOn([t],r)}))},o=function(t){return i(hp(),{target:t.target})},a=dE(er.fromDom(document),"touchstart",o),s=dE(er.fromDom(document),"touchmove",(function(t){return r(Yi(),t)})),u=dE(er.fromDom(document),"touchend",(function(t){return r(Xi(),t)})),c=dE(er.fromDom(document),"mousedown",o),l=dE(er.fromDom(document),"mouseup",(function(t){0===t.raw.button&&i(mp(),{target:t.target})})),f=function(t){return i(hp(),{target:er.fromDom(t.target)})},d=function(t){0===t.button&&i(mp(),{target:er.fromDom(t.target)})},h=function(t){return r(Zi(),pE(t))},p=function(t){i(pp(),{}),r(Ji(),pE(t))},m=function(){return i(pp(),{})};t.on("PostRender",(function(){t.on("click",f),t.on("tap",f),t.on("mouseup",d),t.on("ScrollWindow",h),t.on("ResizeWindow",p),t.on("ResizeEditor",m)})),t.on("remove",(function(){t.off("click",f),t.off("tap",f),t.off("mouseup",d),t.off("ScrollWindow",h),t.off("ResizeWindow",p),t.off("ResizeEditor",m),c.unbind(),a.unbind(),s.unbind(),u.unbind(),l.unbind()})),t.on("detach",(function(){Wh(e),Wh(n),e.destroy(),n.destroy()}))},Y$=Xm,X$=Nm,Z$=o([zn("shell",!1),yn("makeItem"),zn("setupItem",e),Jp.field("listBehaviours",[_y])]),J$=function(){return{behaviours:Fl([_y.config({})])}},Q$=Tm({name:"items",overrides:J$}),tH=o([Q$]),eH=o("CustomList"),nH=function(t,e,n,r){var i=function(e,n){a(e).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var i=_y.contents(r),o=n.length,a=o-i.length,s=a>0?V(a,(function(){return t.makeItem()})):[],u=i.slice(o);W(u,(function(t){return _y.remove(r,t)})),W(s,(function(t){return _y.append(r,t)}));var c=_y.contents(r);W(c,(function(r,i){t.setupItem(e,r,n[i],i)}))}))},o=t.shell?{behaviours:[_y.config({})],components:[]}:{behaviours:[],components:e},a=function(e){return t.shell?_.some(e):Hm(e,t,"items")};return{uid:t.uid,dom:t.dom,components:o.components,behaviours:Zp(t.listBehaviours,o.behaviours),apis:{setItems:i}}},rH=ug({name:eH(),configFields:Z$(),partFields:tH(),factory:nH,apis:{setItems:function(t,e,n){t.setItems(e,n)}}}),iH=e,oH=l,aH=o([]),sH=Object.freeze({__proto__:null,setup:iH,isDocked:oH,getBehaviours:aH}),uH=function(t){var e=tu(t,"position").is("fixed"),n=e?_.none():Ko(t);return n.orThunk((function(){var e=er.fromTag("span");return qo(t).bind((function(t){ea(t,e);var n=Ko(e);return aa(e),n}))}))},cH=function(t){return uH(t).map(Au).getOrThunk((function(){return Eu(0,0)}))},lH=Vt.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),fH=function(t,e){var n=t.element;Es(n,e.transitionClass),Ts(n,e.fadeOutClass),Es(n,e.fadeInClass),e.onShow(t)},dH=function(t,e){var n=t.element;Es(n,e.transitionClass),Ts(n,e.fadeInClass),Es(n,e.fadeOutClass),e.onHide(t)},hH=function(t,e){return t.y<e.bottom&&t.bottom>e.y},pH=function(t,e){return t.y>=e.y},mH=function(t,e){return t.bottom<=e.bottom},gH=function(t,e,n){return rt(t,(function(t){switch(t){case"bottom":return mH(e,n);case"top":return pH(e,n)}}))},vH=function(t,e){return e.getInitialPosition().map((function(e){return rc(e.bounds.x,e.bounds.y,Pu(t),Cu(t))}))},bH=function(t,e,n){n.setInitialPosition(_.some({style:eu(t),position:Js(t,"position")||"static",bounds:e}))},yH=function(t,e,n){return n.getInitialPosition().bind((function(r){switch(n.setInitialPosition(_.none()),r.position){case"static":return _.some(lH.static());case"absolute":var i=uH(t).map(ic).getOrThunk((function(){return ic(qs())}));return _.some(lH.absolute(nf("absolute",jt(r.style,"left").map((function(t){return e.x-i.x})),jt(r.style,"top").map((function(t){return e.y-i.y})),jt(r.style,"right").map((function(t){return i.right-e.right})),jt(r.style,"bottom").map((function(t){return i.bottom-e.bottom})))));default:return _.none()}}))},wH=function(t,e,n){return vH(t,n).filter((function(t){return gH(n.getModes(),t,e)})).bind((function(e){return yH(t,e,n)}))},_H=function(t,e,n){var r=ic(t);if(gH(n.getModes(),r,e))return _.none();bH(t,r,n);var i=ac(),o=r.x-i.x,a=e.y-i.y,s=i.bottom-e.bottom,u=r.y<=e.y;return _.some(lH.fixed(nf("fixed",_.some(o),u?_.some(a):_.none(),_.none(),u?_.none():_.some(s))))},xH=function(t,e,n){var r=t.element,i=tu(r,"position").is("fixed");return i?wH(r,e,n):_H(r,e,n)},CH=function(t,e){var n=t.element;return vH(n,e).bind((function(t){return yH(n,t,e)}))},SH=function(t,e){W(["left","right","top","bottom","position"],(function(e){return ru(t.element,e)})),e.onUndocked(t)},kH=function(t,e,n){rf(t.element,n);var r="fixed"===n.position?e.onDocked:e.onUndocked;r(t)},MH=function(t,e,n,r,i){void 0===i&&(i=!1),e.contextual.each((function(e){e.lazyContext(t).each((function(o){var a=hH(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)Ds(t.element,[e.fadeOutClass]),e.onHide(t);else{var s=a?fH:dH;s(t,e)}}))}))},EH=function(t,e,n){var r=e.lazyViewport(t),i=n.isDocked();i&&MH(t,e,n,r),xH(t,r,n).each((function(o){n.setDocked(!i),o.fold((function(){return SH(t,e)}),(function(n){return kH(t,e,n)}),(function(i){MH(t,e,n,r,!0),kH(t,e,i)}))}))},OH=function(t,n,r){var i=t.element;r.setDocked(!1),CH(t,r).each((function(r){r.fold((function(){return SH(t,n)}),(function(e){return kH(t,n,e)}),e)})),r.setVisible(!0),n.contextual.each((function(e){Ns(i,[e.fadeInClass,e.fadeOutClass,e.transitionClass]),e.onShow(t)})),TH(t,n,r)},TH=function(t,e,n){t.getSystem().isConnected()&&EH(t,e,n)},AH=function(t,e,n){n.isDocked()&&OH(t,e,n)},DH=function(t,e,n){return n.isDocked()},NH=function(t,e,n,r){return n.setModes(r)},RH=function(t,e,n){return n.getModes()},PH=Object.freeze({__proto__:null,refresh:TH,reset:AH,isDocked:DH,getModes:RH,setModes:NH}),IH=function(t,e){return go([To(Pi(),(function(n,r){t.contextual.each((function(t){if(As(n.element,t.transitionClass)){Ns(n.element,[t.transitionClass,t.fadeInClass]);var i=e.isVisible()?t.onShown:t.onHidden;i(n)}r.stop()}))})),wo(Zi(),(function(n,r){TH(n,t,e)})),wo(Ji(),(function(n,r){AH(n,t,e)}))])},BH=Object.freeze({__proto__:null,events:IH}),LH=[Bn("contextual",[xn("fadeInClass"),xn("fadeOutClass"),xn("transitionClass"),kn("lazyContext"),zc("onShow"),zc("onShown"),zc("onHide"),zc("onHidden")]),Un("lazyViewport",ac),Wn("modes",["top","bottom"],hn),zc("onDocked"),zc("onUndocked")],zH=function(t){var e=Yn(!1),n=Yn(!0),r=Yn(_.none()),i=Yn(t.modes),o=function(){return"docked: "+e.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return Ga({isDocked:e.get,setDocked:e.set,getInitialPosition:r.get,setInitialPosition:r.set,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},jH=Object.freeze({__proto__:null,init:zH}),FH=Hl({fields:LH,name:"docking",active:BH,apis:PH,state:jH}),$H={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},HH="tox-tinymce--toolbar-sticky-on",VH="tox-tinymce--toolbar-sticky-off",UH=function(t,e){var n=$o(e),r=n.dom.defaultView.innerHeight,i=Uu(n),o=er.fromDom(t.elm),a=oc(o),s=Cu(o),u=a.y,c=u+s,l=Au(e),f=Cu(e),d=l.top,h=d+f,p=Math.abs(d-i.top)<2,m=Math.abs(h-(i.top+r))<2;if(p&&u<h)qu(i.left,u-f,n);else if(m&&c>d){var g=u-r+s+f;qu(i.left,g,n)}},qH=function(t,e){return $(FH.getModes(t),e)},WH=function(t){var e=function(t){return Su(t)+(parseInt(Js(t,"margin-top"),10)||0)+(parseInt(Js(t,"margin-bottom"),10)||0)},n=t.element;qo(n).each((function(r){var i="padding-"+FH.getModes(t)[0];if(FH.isDocked(t)){var o=Pu(r);Ys(n,"width",o+"px"),Ys(r,i,e(n)+"px")}else ru(n,"width"),ru(r,i)}))},KH=function(t,e){e?(Ts(t,$H.fadeOutClass),Ds(t,[$H.transitionClass,$H.fadeInClass])):(Ts(t,$H.fadeInClass),Ds(t,[$H.fadeOutClass,$H.transitionClass]))},GH=function(t,e){var n=er.fromDom(t.getContainer());e?(Es(n,HH),Ts(n,VH)):(Es(n,VH),Ts(n,HH))},YH=function(t,e){var n=$o(e);Ql(n).filter((function(t){return!ii(e,t)})).filter((function(e){return ii(e,er.fromDom(n.dom.body))||si(t,e)})).each((function(){return Xl(e)}))},XH=function(t,e){return tf(t).orThunk((function(){return e().toOptional().bind((function(t){return tf(t.element)}))}))},ZH=function(t,e,n){t.inline||(e.header.isPositionedAtTop()||t.on("ResizeEditor",(function(){n().each(FH.reset)})),t.on("ResizeWindow ResizeEditor",(function(){n().each(WH)})),t.on("SkinLoaded",(function(){n().each((function(t){FH.isDocked(t)?FH.reset(t):FH.refresh(t)}))})),t.on("FullscreenStateChanged",(function(){n().each(FH.reset)}))),t.on("AfterScrollIntoView",(function(t){n().each((function(e){FH.refresh(e);var n=e.element;Rv(n)&&UH(t,n)}))})),t.on("PostRender",(function(){GH(t,!1)}))},JH=function(t){return t().map(FH.isDocked).getOr(!1)},QH=function(){var t;return[Wl.config({channels:(t={},t[Oj()]={onReceive:WH},t)})]},tV=function(t,e){var n=Yn(_.none()),r=e.getSink,i=function(t){r().each((function(e){return t(e.element)}))},o=function(e){t.inline||WH(e),GH(t,FH.isDocked(e)),e.getSystem().broadcastOn([pp()],{}),r().each((function(t){return t.getSystem().broadcastOn([pp()],{})}))},a=t.inline?[]:QH();return m([Ny.config({}),FH.config({contextual:h({lazyContext:function(e){var n=Su(e.element),r=t.inline?t.getContentAreaContainer():t.getContainer(),i=ic(er.fromDom(r)),o=i.height-n,a=i.y+(qH(e,"top")?0:n);return _.some(rc(i.x,a,i.width,o))},onShow:function(){i((function(t){return KH(t,!0)}))},onShown:function(t){i((function(t){return Ns(t,[$H.transitionClass,$H.fadeInClass])})),n.get().each((function(e){YH(t.element,e),n.set(_.none())}))},onHide:function(t){n.set(XH(t.element,r)),i((function(t){return KH(t,!1)}))},onHidden:function(){i((function(t){return Ns(t,[$H.transitionClass])}))}},$H),modes:[e.header.getDockingMode()],onDocked:o,onUndocked:o})],a)},eV=Object.freeze({__proto__:null,setup:ZH,isDocked:JH,getBehaviours:tV}),nV=function(t){var e=t.editor,n=t.sticky?tV:aH;return{uid:t.uid,dom:t.dom,components:t.components,behaviours:Fl(n(e,t.sharedBackstage))}},rV=function(t,e){var n=function(t,n){var r=q(n,(function(t){var n={type:"menubutton",text:t.text,fetch:function(e){e(t.getItems())}},r=Fj(n).mapError((function(t){return an(t)})).getOrDie();return DP(r,"tox-mbtn",e.backstage,_.some("menuitem"))}));_y.set(t,r)},r={focus:fy.focusIn,setMenus:n};return{uid:t.uid,dom:t.dom,components:[],behaviours:Fl([_y.config({}),Cy("menubar-events",[Ao((function(e){t.onSetup(e)})),wo(Mi(),(function(t,e){pc(t.element,".tox-mbtn--active").each((function(n){mc(e.event.target,".tox-mbtn").each((function(e){ii(n,e)||t.getSystem().getByDom(n).each((function(n){t.getSystem().getByDom(e).each((function(t){gT.expand(t),gT.close(n),Ny.focus(t)}))}))}))}))})),wo(ro(),(function(t,e){e.event.prevFocus.bind((function(e){return t.getSystem().getByDom(e).toOptional()})).each((function(n){e.event.newFocus.bind((function(e){return t.getSystem().getByDom(e).toOptional()})).each((function(t){gT.isOpen(n)&&(gT.expand(t),gT.close(n))}))}))}))]),fy.config({mode:"flow",selector:".tox-mbtn",onEscape:function(e){return t.onEscape(e),_.some(!0)}}),QE.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},iV=sg({factory:rV,name:"silver.Menubar",configFields:[yn("dom"),yn("uid"),yn("onEscape"),yn("backstage"),zn("onSetup",e)],apis:{focus:function(t,e){t.focus(e)},setMenus:function(t,e,n){t.setMenus(e,n)}}}),oV="container",aV=[Yp("slotBehaviours",[])],sV=function(t){return"<alloy.field."+t+">"},uV=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),Lm(oV,sV(e),n)};return{slot:e,record:function(){return t}}}(),n=t(e),r=e.record(),i=q(r,(function(t){return Em({name:t,pname:sV(t)})}));return tg(oV,aV,i,cV,n)},cV=function(t,e){var n=function(e){return Wm(t)},r=function(e,n){return Hm(e,t,n)},i=function(e,n){return function(r,i){return Hm(r,t,i).map((function(t){return e(t,i)})).getOr(n)}},o=function(t){return function(e,n){W(n,(function(n){return t(e,n)}))}},a=function(t,e){return"true"!==ma(t.element,"aria-hidden")},s=function(t,e){if(!a(t)){var n=t.element;ru(n,"display"),ba(n,"aria-hidden"),lo(t,io(),{name:e,visible:!0})}},u=function(t,e){if(a(t)){var n=t.element;Ys(n,"display","none"),ha(n,"aria-hidden","true"),lo(t,io(),{name:e,visible:!1})}},c=i(a,!1),l=i(u),f=o(l),d=function(t){return f(t,n())},h=i(s),p={getSlotNames:n,getSlot:r,isShowing:c,hideSlot:l,hideAllSlots:d,showSlot:h};return{uid:t.uid,dom:t.dom,components:e,behaviours:Xp(t.slotBehaviours),apis:p}},lV=Dt({getSlotNames:function(t,e){return t.getSlotNames(e)},getSlot:function(t,e,n){return t.getSlot(e,n)},isShowing:function(t,e,n){return t.isShowing(e,n)},hideSlot:function(t,e,n){return t.hideSlot(e,n)},hideAllSlots:function(t,e){return t.hideAllSlots(e)},showSlot:function(t,e,n){return t.showSlot(e,n)}},(function(t){return Wa(t)})),fV=h(h({},lV),{sketch:uV}),dV=ze([Rn("icon"),Rn("tooltip"),Un("onShow",e),Un("onHide",e),Un("onSetup",(function(){return e}))]),hV=function(t){return nn("sidebar",dV,t)},pV=function(t){var e=t.ui.registry.getAll().sidebars;W(Ot(e),(function(n){var r=e[n],i=function(){return _.from(t.queryCommandValue("ToggleSidebar")).is(n)};t.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(e){t.execCommand("ToggleSidebar",!1,n),e.setActive(i())},onSetup:function(e){var n=function(){return e.setActive(i())};return t.on("ToggleSidebar",n),function(){t.off("ToggleSidebar",n)}}})}))},mV=function(t){return{element:function(){return t.element.dom}}},gV=function(t,n){var r=q(Ot(n),(function(t){var e=n[t],r=rn(hV(e));return{name:t,getApi:mV,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return q(r,(function(n){var i=Yn(e);return t.slot(n.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:gC.unnamedEvents([YS(n,i),XS(n,i),wo(io(),(function(t,e){var n=e.event,i=Q(r,(function(t){return t.name===n.name}));i.each((function(e){var r=n.visible?e.onShow:e.onHide;r(e.getApi(t))}))}))])})}))},vV=function(t){return fV.sketch((function(e){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:gV(e,t),slotBehaviours:gC.unnamedEvents([Ao((function(t){return fV.hideAllSlots(t)}))])}}))},bV=function(t,e){var n=yg.getCurrent(t);n.each((function(t){return _y.set(t,[vV(e)])}))},yV=function(t,e){var n=yg.getCurrent(t);n.each((function(t){var n=yg.getCurrent(t);n.each((function(n){wj.hasGrown(t)?fV.isShowing(n,e)?wj.shrink(t):(fV.hideAllSlots(n),fV.showSlot(n,e)):(fV.hideAllSlots(n),fV.showSlot(n,e),wj.grow(t))}))}))},wV=function(t){var e=yg.getCurrent(t);return e.bind((function(t){var e=wj.isGrowing(t)||wj.hasGrown(t);if(e){var n=yg.getCurrent(t);return n.bind((function(t){return Q(fV.getSlotNames(t),(function(e){return fV.isShowing(t,e)}))}))}return _.none()}))},_V=Ea("FixSizeEvent"),xV=Ea("AutoSizeEvent"),CV=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Fl([QE.config({}),Ny.config({}),wj.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(t){var e=yg.getCurrent(t);e.each(fV.hideAllSlots),co(t,xV)},onGrown:function(t){co(t,xV)},onStartGrow:function(t){lo(t,_V,{width:tu(t.element,"width").getOr("")})},onStartShrink:function(t){lo(t,_V,{width:Pu(t.element)+"px"})}}),_y.config({}),yg.config({find:function(t){var e=_y.contents(t);return ct(e)}})])}],behaviours:Fl([MN.childAt(0),Cy("sidebar-sliding-events",[wo(_V,(function(t,e){Ys(t.element,"width",e.event.width)})),wo(xV,(function(t,e){ru(t.element,"width")}))])])}},SV=function(t){var e=void 0!==t.dom.attributes?t.dom.attributes:[];return Z(e,(function(t,e){var n;return"class"===e.name?t:h(h({},t),(n={},n[e.name]=e.value,n))}),{})},kV=function(t){return Array.prototype.slice.call(t.dom.classList,0)},MV=function(t){var e=er.fromHtml(t),n=Yo(e),r=SV(e),i=kV(e),o=0===n.length?{}:{innerHtml:ca(e)};return h({tag:Po(e),classes:i,attributes:r},o)},EV=function(t){return{dom:{tag:"div",attributes:{"aria-label":t.translate("Loading...")},classes:["tox-throbber__busy-spinner"]},components:[{dom:MV('<div class="tox-spinner"><div></div><div></div><div></div></div>')}],behaviours:Fl([fy.config({mode:"special",onTab:function(){return _.some(!0)},onShiftTab:function(){return _.some(!0)}}),Ny.config({})])}},OV=function(t,e,n){var r=t.element;!0===e?(_y.set(t,[EV(n)]),ru(r,"display"),ba(r,"aria-hidden")):(_y.set(t,[]),Ys(r,"display","none"),ha(r,"aria-hidden","true"))},TV=function(t){return{uid:t.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Fl([_y.config({})]),components:[]}},AV=function(t,e,n){var r=Yn(!1),i=Yn(_.none()),o=function(t){t!==r.get()&&(OV(e(),t,n.providers),r.set(t))};t.on("ProgressState",(function(e){if(i.get().each(Yw.clearTimeout),P(e.time)){var n=Yw.setEditorTimeout(t,(function(){return o(e.state)}),e.time);i.set(_.some(n))}else o(e.state),i.set(_.none())}))},DV=function(t,e,n){var r={getSocket:function(e){return Y$.getPart(e,t,"socket")},setSidebar:function(e,n){Y$.getPart(e,t,"sidebar").each((function(t){return bV(t,n)}))},toggleSidebar:function(e,n){Y$.getPart(e,t,"sidebar").each((function(t){return yV(t,n)}))},whichSidebar:function(e){return Y$.getPart(e,t,"sidebar").bind(wV).getOrNull()},getHeader:function(e){return Y$.getPart(e,t,"header")},getToolbar:function(e){return Y$.getPart(e,t,"toolbar")},setToolbar:function(e,n){Y$.getPart(e,t,"toolbar").each((function(t){t.getApis().setGroups(t,n)}))},setToolbars:function(e,n){Y$.getPart(e,t,"multiple-toolbar").each((function(t){rH.setItems(t,n)}))},refreshToolbar:function(e){var n=Y$.getPart(e,t,"toolbar");n.each((function(t){return t.getApis().refresh(t)}))},toggleToolbarDrawer:function(e){Y$.getPart(e,t,"toolbar").each((function(t){hg(t.getApis().toggle,(function(e){return e(t)}))}))},isToolbarDrawerToggled:function(e){return Y$.getPart(e,t,"toolbar").bind((function(t){return _.from(t.getApis().isOpen).map((function(e){return e(t)}))})).getOr(!1)},getThrobber:function(e){return Y$.getPart(e,t,"throbber")},focusToolbar:function(e){var n=Y$.getPart(e,t,"toolbar").orThunk((function(){return Y$.getPart(e,t,"multiple-toolbar")}));n.each((function(t){fy.focusIn(t)}))},setMenubar:function(e,n){Y$.getPart(e,t,"menubar").each((function(t){iV.setMenus(t,n)}))},focusMenubar:function(e){Y$.getPart(e,t,"menubar").each((function(t){iV.focus(t)}))}};return{uid:t.uid,dom:t.dom,components:e,apis:r,behaviours:t.behaviours}},NV=X$.optional({factory:iV,name:"menubar",schema:[yn("backstage")]}),RV=function(t){return t.type===sx.sliding?Pj:t.type===sx.floating?Rj:Ij},PV=X$.optional({factory:{sketch:function(t){return rH.sketch({uid:t.uid,dom:t.dom,listBehaviours:Fl([fy.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return Ij({type:t.type,uid:Ea("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:t.providers,onEscape:function(){return t.onEscape(),_.some(!0)}})},setupItem:function(t,e,n,r){mz.setGroups(e,n)},shell:!0})}},name:"multiple-toolbar",schema:[yn("dom"),yn("onEscape")]}),IV=X$.optional({factory:{sketch:function(t){var e=RV(t),n={type:t.type,uid:t.uid,onEscape:function(){return t.onEscape(),_.some(!0)},cyclicKeying:!1,initGroups:[],getSink:t.getSink,providers:t.providers,moreDrawerData:{lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton,lazyHeader:t.lazyHeader},attributes:t.attributes};return e(n)}},name:"toolbar",schema:[yn("dom"),yn("onEscape"),yn("getSink")]}),BV=X$.optional({factory:{sketch:nV},name:"header",schema:[yn("dom")]}),LV=X$.optional({name:"socket",schema:[yn("dom")]}),zV=X$.optional({factory:{sketch:CV},name:"sidebar",schema:[yn("dom")]}),jV=X$.optional({factory:{sketch:TV},name:"throbber",schema:[yn("dom")]}),FV=ug({name:"OuterContainer",factory:DV,configFields:[yn("dom"),yn("behaviours")],partFields:[BV,NV,IV,PV,LV,zV,jV],apis:{getSocket:function(t,e){return t.getSocket(e)},setSidebar:function(t,e,n){t.setSidebar(e,n)},toggleSidebar:function(t,e,n){t.toggleSidebar(e,n)},whichSidebar:function(t,e){return t.whichSidebar(e)},getHeader:function(t,e){return t.getHeader(e)},getToolbar:function(t,e){return t.getToolbar(e)},setToolbar:function(t,e,n){var r=q(n,(function(t){return Aj(t)}));t.setToolbar(e,r)},setToolbars:function(t,e,n){var r=q(n,(function(t){return q(t,Aj)}));t.setToolbars(e,r)},refreshToolbar:function(t,e){return t.refreshToolbar(e)},toggleToolbarDrawer:function(t,e){t.toggleToolbarDrawer(e)},isToolbarDrawerToggled:function(t,e){return t.isToolbarDrawerToggled(e)},getThrobber:function(t,e){return t.getThrobber(e)},setMenubar:function(t,e,n){t.setMenubar(e,n)},focusMenubar:function(t,e){t.focusMenubar(e)},focusToolbar:function(t,e){t.focusToolbar(e)}}}),$V="file edit view insert format tools table help",HV={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},VV=function(t,e,n){var r=cS(n).split(/[ ,]/);return{text:t.title,getItems:function(){return nt(t.items,(function(t){var n=t.toLowerCase();return 0===n.trim().length||H(r,(function(t){return t===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:e.menuItems[n]?[e.menuItems[n]]:[]}))}}},UV=function(t){return"string"===typeof t?t.split(" "):t},qV=function(t,e){var n=h(h({},HV),e.menus),r=Ot(e.menus).length>0,i=void 0===e.menubar||!0===e.menubar?UV($V):UV(!1===e.menubar?"":e.menubar),o=Y(i,(function(t){return r&&e.menus.hasOwnProperty(t)&&e.menus[t].hasOwnProperty("items")||HV.hasOwnProperty(t)})),a=q(o,(function(r){var i=n[r];return VV({title:i.title,items:UV(i.items)},e,t)}));return Y(a,(function(t){var e=function(t){return"separator"!==t.type};return t.getItems().length>0&&H(t.getItems(),e)}))},WV=function(t){var e=function(){t._skinLoaded=!0,Gk(t)};return function(){t.initialized?e():t.on("init",e)}},KV=function(t,e){return function(){return Yk(t,{message:e})}},GV=function(t,e,n){return new k_((function(r,i){n.load(e,r,i),t.on("remove",(function(){return n.unload(e)}))}))},YV=function(t,e){var n=e+"/skin.min.css";return GV(t,n,t.ui.styleSheetLoader)},XV=function(t,e){var n=js(er.fromDom(t.getElement()));if(n){var r=e+"/skin.shadowdom.min.css";return GV(t,r,TC.DOM.styleSheetLoader)}return k_.resolve()},ZV=function(t,e){var n=ZC(e);n&&e.contentCSS.push(n+(t?"/content.inline":"/content")+".min.css"),!1===QC(e)&&M(n)?k_.all([YV(e,n),XV(e,n)]).then(WV(e),KV(e,"Skin could not be loaded")):WV(e)()},JV=s(ZV,!1),QV=s(ZV,!0),tU=function(t,e,n,r){var i=e.outerContainer,o=n.toolbar,a=n.buttons;if(I(o,M)){var s=o.map((function(e){var i={toolbar:e,buttons:a,allowToolbarGroups:n.allowToolbarGroups};return F$(t,i,{backstage:r},_.none())}));FV.setToolbars(i,s)}else FV.setToolbar(i,F$(t,n,{backstage:r},_.none()))},eU=Kr(),nU=eU.os.isiOS()&&eU.os.version.major<=12,rU=function(t,e){var n=t.dom,r=t.getWin(),i=t.getDoc().documentElement,o=Yn(Eu(r.innerWidth,r.innerHeight)),a=Yn(Eu(i.offsetWidth,i.offsetHeight)),s=function(){var e=o.get();e.left===r.innerWidth&&e.top===r.innerHeight||(o.set(Eu(r.innerWidth,r.innerHeight)),Zk(t))},u=function(){var e=t.getDoc().documentElement,n=a.get();n.left===e.offsetWidth&&n.top===e.offsetHeight||(a.set(Eu(e.offsetWidth,e.offsetHeight)),Zk(t))},c=function(e){return Jk(t,e)};n.bind(r,"resize",s),n.bind(r,"scroll",c);var l=hE(er.fromDom(t.getBody()),"load",u),f=e.uiMothership.element;t.on("hide",(function(){Ys(f,"display","none")})),t.on("show",(function(){ru(f,"display")})),t.on("NodeChange",u),t.on("remove",(function(){l.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",c),r=null}))},iU=function(t,e,n,r,i){var o=Yn(0),a=e.outerContainer;JV(t);var s=er.fromDom(i.targetNode),u=zs(Ls(s));Uh(s,e.mothership),Vh(u,e.uiMothership),t.on("PostRender",(function(){tU(t,e,n,r),o.set(t.getWin().innerWidth),FV.setMenubar(a,qV(t,n)),FV.setSidebar(a,n.sidebar),rU(t,e)}));var c=FV.getSocket(a).getOrDie("Could not find expected socket element");if(nU){Xs(c.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var l=u_((function(){t.fire("ScrollContent")}),20),f=dE(c.element,"scroll",l.throttle);t.on("remove",f.unbind)}$S(t,e),t.addCommand("ToggleSidebar",(function(e,n){FV.toggleSidebar(a,n),t.fire("ToggleSidebar")})),t.addQueryValueHandler("ToggleSidebar",(function(){return FV.whichSidebar(a)}));var d=mS(t),h=function(){FV.refreshToolbar(e.outerContainer)};d!==sx.sliding&&d!==sx.floating||t.on("ResizeWindow ResizeEditor ResizeContent",(function(){var e=t.getWin().innerWidth;e!==o.get()&&(h(),o.set(e))}));var p={enable:function(){FS(e,!1)},disable:function(){FS(e,!0)},isDisabled:function(){return YC.isDisabled(a)}};return{iframeContainer:c.element.dom,editorContainer:a.element.dom,api:p}},oU=Object.freeze({__proto__:null,render:iU}),aU=function(t){var e=/^[0-9\.]+(|px)$/i;return e.test(""+t)?_.some(parseInt(""+t,10)):_.none()},sU=function(t){return P(t)?t+"px":t},uU=function(t,e,n){var r=e.filter((function(e){return t<e})),i=n.filter((function(e){return t>e}));return r.or(i).getOr(t)},cU=function(t){var e=tS(t),n=rS(t),r=oS(t);return aU(e).map((function(t){return uU(t,n,r)}))},lU=function(t){var e=cU(t);return e.getOr(tS(t))},fU=function(t){var e=eS(t),n=nS(t),r=iS(t);return aU(e).map((function(t){return uU(t,n,r)}))},dU=function(t){var e=fU(t);return e.getOr(eS(t))},hU=function(t,e,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=TC.DOM,u=CS(t),c=MS(t),l=iS(t).or(fU(t)),f=r.shared.header,d=f.isPositionedAtTop,h=mS(t),p=h===sx.sliding||h===sx.floating,m=Yn(!1),g=function(){return m.get()&&!t.removed},v=function(t){return p?t.fold((function(){return 0}),(function(t){return t.components().length>1?Cu(t.components()[1].element):0})):0},b=function(n){switch(bS(t)){case pS.auto:var r=FV.getToolbar(a),i=v(r),o=Cu(n.element)-i,s=ic(e),u=s.y>o;if(u)return"top";var c=Vo(e),l=Math.max(c.dom.scrollHeight,Cu(c)),f=s.bottom<l-o;if(f)return"bottom";var d=ac(),h=d.bottom<s.bottom-o;return h?"bottom":"top";case pS.bottom:return"bottom";case pS.top:default:return"top"}},y=function(t){var e=i.get();FH.setModes(e,[t]),f.setDockingMode(t);var n=d()?_c.TopToBottom:_c.BottomToTop;ha(e.element,Ff,n)},w=function(){var t=l.getOrThunk((function(){var t=aU(Js(qs(),"margin-left")).getOr(0);return Pu(qs())-Au(e).left+t}));Ys(i.get().element,"max-width",t+"px")},_=function(){var t=FV.getToolbar(a),n=v(t),r=ic(e),o=d()?Math.max(r.y-Cu(i.get().element)+n,0):r.bottom;Xs(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},x=function(){o.broadcastOn([pp()],{})},C=function(t){if(void 0===t&&(t=!1),g()){if(u||w(),p&&FV.refreshToolbar(a),u||_(),c){var e=i.get();t?FH.reset(e):FH.refresh(e)}x()}},S=function(t){if(void 0===t&&(t=!0),!u&&c&&g()){var e=f.getDockingMode(),n=b(i.get());n!==e&&(y(n),t&&C(!0))}},k=function(){m.set(!0),Ys(a.element,"display","flex"),s.addClass(t.getBody(),"mce-edit-focus"),ru(o.element,"display"),S(!1),C()},M=function(){m.set(!1),n.outerContainer&&(Ys(a.element,"display","none"),s.removeClass(t.getBody(),"mce-edit-focus")),Ys(o.element,"display","none")};return{isVisible:g,isPositionedAtTop:d,show:k,hide:M,update:C,updateMode:S,repositionPopups:x}},pU=function(t,e){var n=ic(t);return{pos:e?n.y:n.bottom,bounds:n}},mU=function(t,e,n,r){var i=Yn(pU(e,n.isPositionedAtTop())),o=function(r){var o=pU(e,n.isPositionedAtTop()),a=o.pos,s=o.bounds,u=i.get(),c=u.pos,l=u.bounds,f=s.height!==l.height||s.width!==l.width;i.set({pos:a,bounds:s}),f&&Zk(t,r),n.isVisible()&&(c!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))};r||(t.on("activate",n.show),t.on("deactivate",n.hide)),t.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),t.on("NodeChange keydown",(function(t){Yw.requestAnimationFrame((function(){return o(t)}))})),t.on("ScrollWindow",(function(){return n.updateMode()}));var a=y$();a.set(hE(er.fromDom(t.getBody()),"load",o)),t.on("remove",(function(){a.clear()}))},gU=function(t,e,n,r,i){var o=e.mothership,a=e.uiMothership,s=e.outerContainer,u=Yn(null),c=er.fromDom(i.targetNode),l=hU(t,c,e,r,u),f=_S(t);QV(t);var d=function(){if(u.get())l.show();else{u.set(FV.getHeader(s).getOrDie());var i=SS(t);Vh(i,o),Vh(i,a),tU(t,e,n,r),FV.setMenubar(s,qV(t,n)),l.show(),mU(t,c,l,f),t.nodeChanged()}};t.on("show",d),t.on("hide",l.hide),f||(t.on("focus",d),t.on("blur",l.hide)),t.on("init",(function(){(t.hasFocus()||f)&&d()})),$S(t,e);var h={show:function(){l.show()},hide:function(){l.hide()},enable:function(){FS(e,!1)},disable:function(){FS(e,!0)},isDisabled:function(){return YC.isDisabled(s)}};return{editorContainer:s.element.dom,api:h}},vU=Object.freeze({__proto__:null,render:gU}),bU=function(t){var e=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];PN.each(e,(function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,onAction:function(){return t.execCommand(e.cmd)},icon:e.icon,onSetup:_$(t,e.name)})}));var n={name:"alignnone",text:"No alignment",cmd:"JustifyNone",icon:"align-none"};t.ui.registry.addButton(n.name,{tooltip:n.text,onAction:function(){return t.execCommand(n.cmd)},icon:n.icon})},yU=function(t,e){QF(t,e),a$(t,e),T$(t,e),M$(t,e),m$(t,e)},wU=function(t,e){t.setDisabled(!e.queryCommandState("outdent"));var n=function(){t.setDisabled(!e.queryCommandState("outdent"))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}},_U=function(t){t.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(e){return wU(e,t)},onAction:function(){return t.execCommand("outdent")}}),t.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return t.execCommand("indent")}})},xU=function(t){_U(t)},CU=function(t,e){return function(){t.execCommand("mceToggleFormat",!1,e)}},SU=function(t){PN.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(e,n){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onSetup:_$(t,e.name),onAction:CU(t,e.name)})}));for(var e=1;e<=6;e++){var n="h"+e;t.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+e,onSetup:_$(t,n),onAction:CU(t,n)})}},kU=function(t){PN.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(e){t.ui.registry.addButton(e.name,{tooltip:e.text,icon:e.icon,onAction:function(){return t.execCommand(e.action)}})}))},MU=function(t){PN.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:function(){return t.execCommand(e.action)},onSetup:_$(t,e.name)})}))},EU=function(t){SU(t),kU(t),MU(t)},OU=function(t){PN.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(e){t.ui.registry.addMenuItem(e.name,{text:e.text,icon:e.icon,shortcut:e.shortcut,onAction:function(){return t.execCommand(e.action)}})})),t.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:CU(t,"code")})},TU=function(t){EU(t),OU(t)},AU=function(t,e,n){var r=function(){return!!e.undoManager&&e.undoManager[n]()},i=function(){t.setDisabled(e.mode.isReadOnly()||!r())};return t.setDisabled(!r()),e.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",i),function(){return e.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",i)}},DU=function(t){t.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(e){return AU(e,t,"hasUndo")},onAction:function(){return t.execCommand("undo")}}),t.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(e){return AU(e,t,"hasRedo")},onAction:function(){return t.execCommand("redo")}})},NU=function(t){t.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(e){return AU(e,t,"hasUndo")},onAction:function(){return t.execCommand("undo")}}),t.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(e){return AU(e,t,"hasRedo")},onAction:function(){return t.execCommand("redo")}})},RU=function(t){DU(t),NU(t)},PU=function(t,e){t.setActive(e.hasVisual);var n=function(e){t.setActive(e.hasVisual)};return e.on("VisualAid",n),function(){return e.off("VisualAid",n)}},IU=function(t){t.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(e){return PU(e,t)},onAction:function(){t.execCommand("mceToggleVisualAid")}})},BU=function(t){t.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return t.execCommand("mceToggleVisualAid")}})},LU=function(t){BU(t),IU(t)},zU={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},jU=function(){var t="[0-9]+",e="[+-]?"+t,n="[eE]"+e,r="\\.",i=function(t){return"(?:"+t+")?"},o=["Infinity",t+r+i(t)+i(n),r+t+i(n),t+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),FU=function(t,e){return H(e,(function(e){return H(zU[e],(function(e){return t===e}))}))},$U=function(t,e){var n=_.from(jU.exec(t));return n.bind((function(t){var n=Number(t[1]),r=t[2];return FU(r,e)?_.some({value:n,unit:r}):_.none()}))},HU=function(t,e){return $U(t,e).map((function(t){var e=t.value,n=t.unit;return e+n}))},VU=function(t){return HU(t,["fixed","relative","empty"]).getOr(t)},UU=function(t){var e=uS(t),n=new Map,r=b$(),i=function(){var e=VU(t.queryCommandValue("LineHeight"));_.from(n.get(e)).fold((function(){return r.clear()}),(function(t){r.set({destroy:function(){t.setActive(!1)}}),t.setActive(!0)}))};return t.on("nodeChange",i),q(e,(function(o,a){return{type:"togglemenuitem",text:o,onSetup:function(s){return n.set(VU(o),s),a+1===e.length&&i(),function(){0===a&&(t.off("nodeChange",i),r.clear())}},onAction:function(){return t.execCommand("LineHeight",!1,o)}}}))},qU=function(t){t.ui.registry.addNestedMenuItem("lineheight",{type:"nestedmenuitem",text:"Line height",getSubmenuItems:function(){return UU(t)}})},WU=function(t){t.ui.registry.addMenuButton("lineheight",{tooltip:"Line height",icon:"line-height",fetch:function(e){return e(UU(t))}})},KU=function(t){qU(t),WU(t)},GU=function(t,e){bU(t),TU(t),yU(t,e),RU(t),EM(t),LU(t),xU(t),KU(t)},YU=function(t,e){return{anchor:"makeshift",x:t,y:e}},XU=function(t,e,n){return YU(t.x+e,t.y+n)},ZU=function(t){return"longpress"===t.type||0===t.type.indexOf("touch")},JU=function(t){if(ZU(t)){var e=t.touches[0];return YU(e.pageX,e.pageY)}return YU(t.pageX,t.pageY)},QU=function(t){if(ZU(t)){var e=t.touches[0];return YU(e.clientX,e.clientY)}return YU(t.clientX,t.clientY)},tq=function(t,e){var n=TC.DOM.getPos(t);return XU(e,n.x,n.y)},eq=function(t,e){return"contextmenu"===e.type||"longpress"===e.type?t.inline?JU(e):tq(t.getContentAreaContainer(),QU(e)):nq(t)},nq=function(t){return{anchor:"selection",root:er.fromDom(t.selection.getNode())}},rq=function(t){return{anchor:"node",node:_.some(er.fromDom(t.selection.getNode())),root:er.fromDom(t.getBody())}},iq=function(t,e,n,r,i,o){var a=n(),s=o?rq(t):eq(t,e);TP(a,ux.CLOSE_ON_EXECUTE,r,!1).map((function(t){e.preventDefault(),Lw.showMenuAt(i,s,{menu:{markers:Rx("normal")},data:t})}))},oq={onLtr:function(){return[wl,ml,gl,vl,bl,yl,Kw,Gw,qw,Vw,Ww,Uw]},onRtl:function(){return[wl,gl,ml,bl,vl,yl,Kw,Gw,Ww,Uw,qw,Vw]}},aq=12,sq={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},uq=function(t,e){var n=t.selection;if(n.isCollapsed()||e.touches.length<1)return!1;var r=e.touches[0],i=n.getRng(),o=Vd(t.getWin(),hd.domRange(i));return o.exists((function(t){return t.left<=r.clientX&&t.right>=r.clientX&&t.top<=r.clientY&&t.bottom>=r.clientY}))},cq=function(t,e){return h({bubble:If(0,aq,sq),layouts:oq,overrides:{maxWidthFunction:uz(),maxHeightFunction:Af()}},eq(t,e))},lq=function(t){var e=t.selection.getRng(),n=function(){Yw.setEditorTimeout(t,(function(){t.selection.setRng(e)}),10),o()};t.once("touchend",n);var r=function(t){t.preventDefault(),t.stopImmediatePropagation()};t.on("mousedown",r,!0);var i=function(){return o()};t.once("longpresscancel",i);var o=function(){t.off("touchend",n),t.off("longpresscancel",i),t.off("mousedown",r)}},fq=function(t,e,n,r,i,o,a){var s=o?rq(t):cq(t,e);TP(n,ux.CLOSE_ON_EXECUTE,r,!0).map((function(n){e.preventDefault(),Lw.showMenuWithinBounds(i,s,{menu:{markers:Rx("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return _.some(TF(t,r.shared))})),t.fire(lz)}))},dq=function(t,e,n,r,i,o){var a=Kr(),s=a.os.isiOS(),u=a.os.isOSX(),c=a.os.isAndroid(),l=a.deviceType.isTouch(),f=function(){return!(c||s||u&&l)},d=function(){var a=n();fq(t,e,a,r,i,o,f())};if(!u&&!s||o)c&&!o&&t.selection.setCursorLocation(e.target,0),d();else{var h=function(){lq(t),d()};uq(t,e)?h():(t.once("selectionchange",h),t.once("touchend",(function(){return t.off("selectionchange",h)})))}},hq=function(t){return"string"===typeof t?t.split(/[ ,]/):t},pq=function(t){return t.getParam("contextmenu_never_use_native",!1,"boolean")},mq=function(t,e,n){var r=t.ui.registry.getAll().contextMenus;return _.from(t.getParam(e)).map(hq).getOrThunk((function(){return Y(hq(n),(function(t){return Ft(r,t)}))}))},gq=function(t){return!1===t.getParam("contextmenu")},vq=function(t){return mq(t,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},bq=function(t){return t.getParam("contextmenu_avoid_overlap","","string")},yq=function(t){return M(t)?"|"===t:"separator"===t.type},wq={type:"separator"},_q=function(t){if(M(t))return t;switch(t.type){case"separator":return wq;case"submenu":return{type:"nestedmenuitem",text:t.text,icon:t.icon,getSubmenuItems:function(){var e=t.getSubmenuItems();return M(e)?e:q(e,_q)}};default:return{type:"menuitem",text:t.text,icon:t.icon,onAction:n(t.onAction)}}},xq=function(t,e){if(0===e.length)return t;var n=lt(t).filter((function(t){return!yq(t)})),r=n.fold((function(){return[]}),(function(t){return[wq]}));return t.concat(r).concat(e).concat([wq])},Cq=function(t,e,n){var r=Z(e,(function(e,r){if(Ft(t,r)){var i=t[r].update(n);if(M(i))return xq(e,i.split(" "));if(i.length>0){var o=q(i,_q);return xq(e,o)}return e}return e.concat([r])}),[]);return r.length>0&&yq(r[r.length-1])&&r.pop(),r},Sq=function(t,e){return e.ctrlKey&&!pq(t)},kq=function(t,e){return"longpress"!==e.type&&(2!==e.button||e.target===t.getBody()&&""===e.pointerType)},Mq=function(t,e){return kq(t,e)?t.selection.getStart(!0):e.target},Eq=function(t,e){var n=bq(t);if(kq(t,e))return!0;if(n){var r=Mq(t,e);return mE(er.fromDom(r),n)}return!1},Oq=function(t,e,n){var r=Kr(),i=r.deviceType.isTouch,o=yu(Lw.sketch({dom:{tag:"div"},lazySink:e,onEscape:function(){return t.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:Fl([Cy("dismissContextMenu",[wo(eo(),(function(e,n){dp.close(e),t.focus()}))])])})),a=function(t){return Lw.hide(o)},s=function(e){if(pq(t)&&e.preventDefault(),!Sq(t,e)&&!gq(t)){var r=Eq(t,e),a=function(){var n=Mq(t,e),r=t.ui.registry.getAll(),i=vq(t);return Cq(r.contextMenus,i,n)},s=i()?dq:iq;s(t,e,a,n,o,r)}};t.on("init",(function(){var e="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");t.on(e,a),t.on("longpress contextmenu",s)}))},Tq=Vt.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),Aq=function(t){return function(e){return e.translate(-t.left,-t.top)}},Dq=function(t){return function(e){return e.translate(t.left,t.top)}},Nq=function(t){return function(e,n){return Z(t,(function(t,e){return e(t)}),Eu(e,n))}},Rq=function(t,e,n){return t.fold(Nq([Dq(n),Aq(e)]),Nq([Aq(e)]),Nq([]))},Pq=function(t,e,n){return t.fold(Nq([Dq(n)]),Nq([]),Nq([Dq(e)]))},Iq=function(t,e,n){return t.fold(Nq([]),Nq([Aq(n)]),Nq([Dq(e),Aq(n)]))},Bq=function(t,e,n,r,i,o){var a=Pq(t,i,o),s=Pq(e,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},Lq=function(t,e,n,r,i,o){var a=Pq(t,i,o),s=Pq(e,i,o),u=Math.abs(a.left-s.left),c=Math.abs(a.top-s.top);return Eu(u,c)},zq=function(t,e,n){var r=t.fold((function(t,e){return{position:_.some("absolute"),left:_.some(t+"px"),top:_.some(e+"px")}}),(function(t,e){return{position:_.some("absolute"),left:_.some(t-n.left+"px"),top:_.some(e-n.top+"px")}}),(function(t,e){return{position:_.some("fixed"),left:_.some(t+"px"),top:_.some(e+"px")}}));return h({right:_.none(),bottom:_.none()},r)},jq=function(t,e,n){return t.fold((function(t,r){return $q(t+e,r+n)}),(function(t,r){return Hq(t+e,r+n)}),(function(t,r){return Vq(t+e,r+n)}))},Fq=function(t,e,n,r){var i=function(t,i){return function(o,a){var s=t(e,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return t.fold(i(Iq,$q),i(Pq,Hq),i(Rq,Vq))},$q=Tq.offset,Hq=Tq.absolute,Vq=Tq.fixed,Uq=function(t,e){var n=ma(t,e);return A(n)?NaN:parseInt(n,10)},qq=function(t,e){var n=t.element,r=Uq(n,e.leftAttr),i=Uq(n,e.topAttr);return isNaN(r)||isNaN(i)?_.none():_.some(Eu(r,i))},Wq=function(t,e,n){var r=t.element;ha(r,e.leftAttr,n.left+"px"),ha(r,e.topAttr,n.top+"px")},Kq=function(t,e){var n=t.element;ba(n,e.leftAttr),ba(n,e.topAttr)},Gq=function(t,e,n,r){return qq(t,e).fold((function(){return n}),(function(t){return Vq(t.left+r.left,t.top+r.top)}))},Yq=function(t,e,n,r,i,o){var a=Gq(t,e,n,r),s=e.mustSnap?Jq(t,e,a,i,o):Qq(t,e,a,i,o),u=Rq(a,i,o);return Wq(t,e,u),s.fold((function(){return{coord:Vq(u.left,u.top),extra:_.none()}}),(function(t){return{coord:t.output,extra:t.extra}}))},Xq=function(t,e){Kq(t,e)},Zq=function(t,e,n,r){return dt(t,(function(t){var i=t.sensor,o=Bq(e,i,t.range.left,t.range.top,n,r);return o?_.some({output:Fq(t.output,e,n,r),extra:t.extra}):_.none()}))},Jq=function(t,e,n,r,i){var o=e.getSnapPoints(t),a=Zq(o,n,r,i);return a.orThunk((function(){var t=Z(o,(function(t,e){var o=e.sensor,a=Lq(n,o,e.range.left,e.range.top,r,i);return t.deltas.fold((function(){return{deltas:_.some(a),snap:_.some(e)}}),(function(n){var r=(a.left+a.top)/2,i=(n.left+n.top)/2;return r<=i?{deltas:_.some(a),snap:_.some(e)}:t}))}),{deltas:_.none(),snap:_.none()});return t.snap.map((function(t){return{output:Fq(t.output,n,r,i),extra:t.extra}}))}))},Qq=function(t,e,n,r,i){var o=e.getSnapPoints(t);return Zq(o,n,r,i)},tW=function(t,e,n){return{coord:Fq(t.output,t.output,e,n),extra:t.extra}},eW=function(t,e,n,r){var i=e.getTarget(t.element);if(e.repositionTarget){var o=$o(t.element),a=Uu(o),s=cH(i),u=tW(r,a,s),c=zq(u.coord,a,s);Zs(i,c)}},nW=Object.freeze({__proto__:null,snapTo:eW}),rW="data-initial-z-index",iW=function(t){qo(t.element).filter(Lo).each((function(t){ga(t,rW).fold((function(){return ru(t,"z-index")}),(function(e){return Ys(t,"z-index",e)})),ba(t,rW)}))},oW=function(t){qo(t.element).filter(Lo).each((function(e){tu(e,"z-index").each((function(t){ha(e,rW,t)})),Ys(e,"z-index",Js(t.element,"z-index"))}))},aW=function(t,e){t.getSystem().addToGui(e),oW(e)},sW=function(t){iW(t),t.getSystem().removeFromGui(t)},uW=function(t,e,n){return t.getSystem().build(VE.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[e]},events:n}))},cW=Bn("snaps",[yn("getSnapPoints"),zc("onSensor"),yn("leftAttr"),yn("topAttr"),zn("lazyViewport",ac),zn("mustSnap",!1)]),lW=[zn("useFixed",l),yn("blockerClass"),zn("getTarget",a),zn("onDrag",e),zn("repositionTarget",!0),zn("onDrop",e),Un("getBounds",ac),cW],fW=function(t){return dg(tu(t,"left"),tu(t,"top"),tu(t,"position"),(function(t,e,n){var r="fixed"===n?Vq:$q;return r(parseInt(t,10),parseInt(e,10))})).getOrThunk((function(){var e=Au(t);return Hq(e.left,e.top)}))},dW=function(t,e,n,r,i){var o=i.bounds,a=Pq(e,n,r),s=vf(a.left,o.x,o.x+o.width-i.width),u=vf(a.top,o.y,o.y+o.height-i.height),c=Hq(s,u);return e.fold((function(){var t=Iq(c,n,r);return $q(t.left,t.top)}),(function(){return c}),(function(){var t=Rq(c,n,r);return Vq(t.left,t.top)}))},hW=function(t,e,n,r,i,o,a){var s=e.fold((function(){var t=jq(n,o.left,o.top),e=Rq(t,r,i);return Vq(e.left,e.top)}),(function(e){var a=Yq(t,e,n,o,r,i);return a.extra.each((function(n){e.onSensor(t,n)})),a.coord}));return dW(t,s,r,i,a)},pW=function(t,e,n,r){var i=e.getTarget(t.element);if(e.repositionTarget){var o=$o(t.element),a=Uu(o),s=cH(i),u=fW(i),c=hW(t,e.snaps,u,a,s,r,n),l=zq(c,a,s);Zs(i,l)}e.onDrag(t,i,r)},mW=function(t,e){return{bounds:t.getBounds(),height:Su(e.element),width:Iu(e.element)}},gW=function(t,e,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk((function(){return mW(e,t)}));o.each((function(n){pW(t,e,a,n)}))},vW=function(t,e,n,r){e.each(sW),n.snaps.each((function(e){Xq(t,e)}));var i=n.getTarget(t.element);r.reset(),n.onDrop(t,i)},bW=function(t){return function(e,n){var r=function(t){n.setStartData(mW(e,t))};return go(m([wo(Zi(),(function(t){n.getStartData().each((function(){return r(t)}))}))],t(e,n,r)))}},yW=function(t){return go([wo(xi(),t.forceDrop),wo(ki(),t.drop),wo(Ci(),(function(e,n){t.move(n.event)})),wo(Si(),t.delayDrop)])},wW=function(t){return _.from(Eu(t.x,t.y))},_W=function(t,e){return Eu(e.left-t.left,e.top-t.top)},xW=Object.freeze({__proto__:null,getData:wW,getDelta:_W}),CW=function(t,e,n){return[wo(xi(),(function(r,i){var o=i.event.raw;if(0===o.button){i.stop();var a=function(){return vW(r,_.some(c),t,e)},s=gE(a,200),u={drop:a,delayDrop:s.schedule,forceDrop:a,move:function(n){s.cancel(),gW(r,t,e,xW,n)}},c=uW(r,t.blockerClass,yW(u)),l=function(){n(r),aW(r,c)};l()}}))]},SW=m(lW,[Hc("dragger",{handlers:bW(CW)})]),kW=function(t){return go([wo(bi(),t.forceDrop),wo(wi(),t.drop),wo(_i(),t.drop),wo(yi(),(function(e,n){t.move(n.event)}))])},MW=function(t){var e=t[0];return _.some(Eu(e.clientX,e.clientY))},EW=function(t){var e=t.raw,n=e.touches;return 1===n.length?MW(n):_.none()},OW=function(t,e){return Eu(e.left-t.left,e.top-t.top)},TW=Object.freeze({__proto__:null,getData:EW,getDelta:OW}),AW=function(t,e,n){var r=Yn(_.none());return[wo(bi(),(function(i,o){o.stop();var a=function(){vW(i,r.get(),t,e),r.set(_.none())},s={drop:a,delayDrop:function(){},forceDrop:a,move:function(n){gW(i,t,e,TW,n)}},u=uW(i,t.blockerClass,kW(s));r.set(_.some(u));var c=function(){n(i),aW(i,u)};c()})),wo(yi(),(function(n,r){r.stop(),gW(n,t,e,TW,r.event)})),wo(wi(),(function(n,i){i.stop(),vW(n,r.get(),t,e),r.set(_.none())})),wo(_i(),(function(n){vW(n,r.get(),t,e),r.set(_.none())}))]},DW=m(lW,[Hc("dragger",{handlers:bW(AW)})]),NW=function(t,e,n){return m(CW(t,e,n),AW(t,e,n))},RW=m(lW,[Hc("dragger",{handlers:bW(NW)})]),PW=SW,IW=DW,BW=RW,LW=Object.freeze({__proto__:null,mouse:PW,touch:IW,mouseOrTouch:BW}),zW=function(){var t=_.none(),e=_.none(),n=function(){t=_.none(),e=_.none()},r=function(e,n){var r=t.map((function(t){return e.getDelta(t,n)}));return t=_.some(n),r},i=function(t,e){return t.getData(e).bind((function(e){return r(t,e)}))},a=function(t){e=_.some(t)},s=function(){return e},u=o({});return Ga({readState:u,reset:n,update:i,getStartData:s,setStartData:a})},jW=Object.freeze({__proto__:null,init:zW}),FW=Ul({branchKey:"mode",branches:LW,name:"dragging",active:{events:function(t,e){var n=t.dragger;return n.handlers(t,e)}},extra:{snap:function(t){return{sensor:t.sensor,range:t.range,output:t.output,extra:_.from(t.extra)}}},state:jW,apis:nW}),$W=40,HW=$W/2,VW=function(t,e,n,r,i,o){return t.fold((function(){return FW.snap({sensor:Hq(n-HW,r-HW),range:Eu(i,o),output:Hq(_.some(n),_.some(r)),extra:{td:e}})}),(function(t){var i=n-HW,o=r-HW,a=$W,s=$W,u=t.element.dom.getBoundingClientRect();return FW.snap({sensor:Hq(i,o),range:Eu(a,s),output:Hq(_.some(n-u.width/2),_.some(r-u.height/2)),extra:{td:e}})}))},UW=function(t,e,n){var r=function(t,e){return t.exists((function(t){return ii(t,e)}))};return{getSnapPoints:t,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(t,i){var o=i.td;r(e.get(),o)||(e.set(_.some(o)),n(o))},mustSnap:!0}},qW=function(t){return Jw(Zw.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Fl([FW.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:t}),wT.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},WW=function(t,e){var n=Yn([]),r=Yn([]),i=Yn(!1),o=Yn(_.none()),a=Yn(_.none()),s=function(t){var n=oc(t);return VW(h.getOpt(e),t,n.x,n.y,n.width,n.height)},u=function(){return q(n.get(),(function(t){return s(t)}))},c=function(t){var n=oc(t);return VW(p.getOpt(e),t,n.right,n.bottom,n.width,n.height)},l=function(){return q(r.get(),(function(t){return c(t)}))},f=UW(u,o,(function(e){a.get().each((function(n){t.fire("TableSelectorChange",{start:e,finish:n})}))})),d=UW(l,a,(function(e){o.get().each((function(n){t.fire("TableSelectorChange",{start:n,finish:e})}))})),h=qW(f),p=qW(d),m=yu(h.asSpec()),g=yu(p.asSpec()),v=function(e,n,r,i){var o=n.dom.getBoundingClientRect();ru(e.element,"display");var a=Uo(er.fromDom(t.getBody())).dom.innerHeight,s=r(o),u=i(o,a);(s||u)&&Ys(e.element,"display","none")},b=function(t,e,n,r){var i=n(e);FW.snapTo(t,i);var o=function(t){return t[r]<0},a=function(t,e){return t[r]>e};v(t,e,o,a)},y=function(t){return b(m,t,s,"top")},w=function(){return o.get().each(y)},x=function(t){return b(g,t,c,"bottom")},C=function(){return a.get().each(x)};Kr().deviceType.isTouch()&&(t.on("TableSelectionChange",(function(t){i.get()||(zh(e,m),zh(e,g),i.set(!0)),o.set(_.some(t.start)),a.set(_.some(t.finish)),t.otherCells.each((function(e){n.set(e.upOrLeftCells),r.set(e.downOrRightCells),y(t.start),x(t.finish)}))})),t.on("ResizeEditor ResizeWindow ScrollContent",(function(){w(),C()})),t.on("TableSelectionClear",(function(){i.get()&&($h(m),$h(g),i.set(!1)),o.set(_.none()),a.set(_.none())})))};(function(t){t[t["None"]=0]="None",t[t["Both"]=1]="Both",t[t["Vertical"]=2]="Vertical"})(KF||(KF={}));var KW=function(t,e,n,r,i){var o={};return o.height=uU(r+e.top,rS(t),oS(t)),n===KF.Both&&(o.width=uU(i+e.left,nS(t),iS(t))),o},GW=function(t,e,n){var r=er.fromDom(t.getContainer()),i=KW(t,e,n,Cu(r),Pu(r));At(i,(function(t,e){return Ys(r,e,sU(t))})),Xk(t)},YW=function(t){if(1===t.nodeType){if("BR"===t.nodeName||t.getAttribute("data-mce-bogus"))return!0;if("bookmark"===t.getAttribute("data-mce-type"))return!0}return!1},XW=function(t,e,n){e.delimiter||(e.delimiter="»");var r=function(r){var i=r||[],o=q(i,(function(e,r){return Zw.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:e.name},action:function(n){t.focus(),t.selection.select(e.element),t.nodeChanged()},buttonBehaviours:Fl([KS.button(n.isDisabled),HS()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+e.delimiter+" "}};return Z(o.slice(1),(function(t,e){var n=t;return n.push(a),n.push(e),n}),[o[0]])},i=function(e){var n=[],r=e.length;while(r-- >0){var i=e[r];if(1===i.nodeType&&!YW(i)){var o=t.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Fl([fy.config({mode:"flow",selector:"div[role=button]"}),YC.config({disabled:n.isDisabled}),HS(),QE.config({}),_y.config({}),Cy("elementPathEvents",[Ao((function(e,n){t.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return fy.focusIn(e)})),t.on("NodeChange",(function(t){var n=i(t.parents);n.length>0?_y.set(e,r(n)):_y.set(e,[])}))}))])]),components:[]}},ZW=function(t,e){var n,r=function(t,n,r){return _y.set(t,[gu(e.translate(["{0} "+r,n[r]]))])};return Zw.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Fl([KS.button(e.isDisabled),HS(),QE.config({}),_y.config({}),Gp.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Cy("wordcount-events",[Ro((function(t){var e=Gp.getValue(t),n="words"===e.mode?"characters":"words";Gp.setValue(t,{mode:n,count:e.count}),r(t,e.count,n)})),Ao((function(e){t.on("wordCountUpdate",(function(t){var n=Gp.getValue(e).mode;Gp.setValue(e,{mode:n,count:t.wordCount}),r(e,t.wordCount,n)}))}))])]),eventOrder:(n={},n[Hi()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},JW=function(t,e){var n=function(n){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:e.translate("Resize"),"aria-hidden":"true"},innerHtml:t_("resize-handle",e.icons)},behaviours:Fl([FW.config({mode:"mouse",repositionTarget:!1,onDrag:function(e,r,i){GW(t,i,n)},blockerClass:"tox-blocker"})])}},r=function(){var t=AC.translate(["Powered by {0}","Tiny"]),e='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+t+'">'+t+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:e}}},i=function(t){var e=!t.hasPlugin("autoresize"),n=t.getParam("resize",e);return!1===n?KF.None:"both"===n?KF.Both:KF.Vertical},o=function(){var n=[];return t.getParam("elementpath",!0,"boolean")&&n.push(XW(t,{},e)),t.hasPlugin("wordcount")&&n.push(ZW(t,e)),t.getParam("branding",!0,"boolean")&&n.push(r()),n.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:n}]:[]},a=function(){var e=o(),r=i(t);return r!==KF.None&&e.push(n(r)),e};return{dom:{tag:"div",classes:["tox-statusbar"]},components:a()}},QW=function(t){var e,n=t.inline,r=n?vU:oU,i=MS(t)?eV:sH,o=_.none(),a=Kr(),s=a.browser.isIE(),u=s?["tox-platform-ie"]:[],c=a.deviceType.isTouch(),l="tox-platform-touch",f=c?[l]:[],d=yS(t),p=SS(t),m=AC.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(e={},e[Ff]=d?_c.BottomToTop:_c.TopToBottom,e)},v=function(){return o.bind(FV.getHeader)},b=function(){return i.isDocked(v)},y=function(){Ys(Z.element,"width",document.body.clientWidth+"px")},w=function(){var t=ii(qs(),p)&&"grid"===Js(p,"display"),e={dom:h({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(u).concat(f)},m),behaviours:Fl([Nh.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:go([wo(Ji(),y)])};return Gt(e,t?n:{})},x=yu(w()),C=function(){return gt.value(x)},S=Jw({dom:{tag:"div",classes:["tox-anchorbar"]}}),k=function(){return o.bind((function(t){return S.getOpt(t)})).getOrDie("Could not find a anchor bar element")},M=function(){return o.bind((function(t){return FV.getToolbar(t)})).getOrDie("Could not find more toolbar element")},E=function(){return o.bind((function(t){return FV.getThrobber(t)})).getOrDie("Could not find throbber element")},O=sz(x,t,k),T=FV.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:O,onEscape:function(){t.focus()}}),A=mS(t),D=FV.parts.toolbar(h({dom:{tag:"div",classes:["tox-toolbar"]},getSink:C,providers:O.shared.providers,onEscape:function(){t.focus()},type:A,lazyToolbar:M,lazyHeader:function(){return v().getOrDie("Could not find header element")}},g)),N=FV.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:O.shared.providers,onEscape:function(){t.focus()},type:A}),R=FV.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),P=FV.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),I=FV.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:O}),B=t.getParam("statusbar",!0,"boolean"),L=B&&!n?_.some(JW(t,O.shared.providers)):_.none(),z={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[R,P]},j=hS(t),F=fS(t),$=lS(t),H=function(){return j?[N]:F?[D]:[]},V=FV.parts.header({dom:h({tag:"div",classes:["tox-editor-header"]},g),components:et([$?[T]:[],H(),CS(t)?[]:[S.asSpec()]]),sticky:MS(t),editor:t,sharedBackstage:O.shared}),U=et([d?[]:[V],n?[]:[z],d?[V]:[]]),q={dom:{tag:"div",classes:["tox-editor-container"]},components:U},W=et([[q],n?[]:L.toArray(),[I]]),K=kS(t),G=h(h({role:"application"},AC.isRtl()?{dir:"rtl"}:{}),K?{"aria-hidden":"true"}:{}),Y=yu(FV.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(d?["tox-tinymce--toolbar-bottom"]:[]).concat(f).concat(u),styles:h({visibility:"hidden"},K?{opacity:"0",border:"0"}:{}),attributes:G},components:W,behaviours:Fl([HS(),YC.config({disableClass:"tox-tinymce--disabled"}),fy.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a"})])}));o=_.some(Y),t.shortcuts.add("alt+F9","focus menubar",(function(){FV.focusMenubar(Y)})),t.shortcuts.add("alt+F10","focus toolbar",(function(){FV.focusToolbar(Y)})),t.addCommand("ToggleToolbarDrawer",(function(){FV.toggleToolbarDrawer(Y)})),t.addQueryStateHandler("ToggleToolbarDrawer",(function(){return FV.isToolbarDrawerToggled(Y)}));var X=UE(Y),Z=UE(x);G$(t,X,Z);var J=function(){var t={broadcastAll:Z.broadcast,broadcastOn:Z.broadcastOn,register:function(){}};return{channels:t}},Q=function(){var e=sU(lU(t)),n=sU(dU(t));return t.inline||(nu("div","width",n)&&Ys(Y.element,"width",n),nu("div","height",e)?Ys(Y.element,"height",e):Ys(Y.element,"height","200px")),e},tt=function(){i.setup(t,O.shared,v),GU(t,O),Oq(t,C,O),pV(t),AV(t,E,O.shared),Dt(vS(t),(function(e,n){t.ui.registry.addGroupToolbarButton(n,e)}));var e=t.ui.registry.getAll(),n=e.buttons,o=e.menuItems,a=e.contextToolbars,s=e.sidebars,u=dS(t),c={menuItems:o,menus:OS(t),menubar:TS(t),toolbar:u.getOrThunk((function(){return AS(t)})),allowToolbarGroups:A===sx.floating,buttons:n,sidebar:s};K$(t,a,x,{backstage:O}),WW(t,x);var l=t.getElement(),f=Q(),d={mothership:X,uiMothership:Z,outerContainer:Y},h={targetNode:l,height:f};return r.render(t,d,c,O,h)};return{mothership:X,uiMothership:Z,backstage:O,renderUI:tt,getUi:J}},tK=function(t,e){var n=_.from(ma(t,"id")).fold((function(){var t=Ea("dialog-describe");return ha(e,"id",t),t}),a);ha(t,"aria-describedby",n)},eK=function(t,e){var n=ga(t,"id").fold((function(){var t=Ea("dialog-label");return ha(e,"id",t),t}),a);ha(t,"aria-labelledby",n)},nK=o([yn("lazySink"),An("dragBlockClass"),Un("getBounds",ac),zn("useTabstopAt",f),zn("eventOrder",{}),Yp("modalBehaviours",[fy]),jc("onExecute"),$c("onEscape")]),rK={sketch:a},iK=o([Tm({name:"draghandle",overrides:function(t,e){return{behaviours:Fl([FW.config({mode:"mouse",getTarget:function(t){return hc(t,'[role="dialog"]').getOr(t)},blockerClass:t.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(e,null,2)).message),getBounds:t.getDragBounds})])}}}),Em({schema:[yn("dom")],name:"title"}),Em({factory:rK,schema:[yn("dom")],name:"close"}),Em({factory:rK,schema:[yn("dom")],name:"body"}),Tm({factory:rK,schema:[yn("dom")],name:"footer"}),Om({factory:{sketch:function(t,e){return h(h({},t),{dom:e.dom,components:e.components})}},schema:[zn("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),zn("components",[])],name:"blocker"})]),oK=function(t,e,n,r){ha(t.element,"aria-busy",!0);var i=e.getRoot(t).getOr(t),o=Fl([fy.config({mode:"special",onTab:function(){return _.some(!0)},onShiftTab:function(){return _.some(!0)}}),Ny.config({})]),a=r(i,o),s=i.getSystem().build(a);_y.append(i,wu(s)),s.hasConfigured(fy)&&fy.focusIn(s),n.isBlocked()||e.onBlock(t),n.blockWith((function(){return _y.remove(i,s)}))},aK=function(t,e,n){ba(t.element,"aria-busy"),n.isBlocked()&&e.onUnblock(t),n.clear()},sK=Object.freeze({__proto__:null,block:oK,unblock:aK}),uK=[Un("getRoot",_.none),zc("onBlock"),zc("onUnblock")],cK=function(){var t=b$(),e=function(e){t.set({destroy:e})};return Ga({readState:t.isSet,blockWith:e,clear:t.clear,isBlocked:t.isSet})},lK=Object.freeze({__proto__:null,init:cK}),fK=Hl({fields:uK,name:"blocking",apis:sK,state:lK}),dK=function(t,e,n,r){var i,o=Yn(_.none()),a=function(e){o.set(_.some(e));var n=t.lazySink(e).getOrDie(),i=r.blocker(),a=n.getSystem().build(h(h({},i),{components:i.components.concat([wu(e)]),behaviours:Fl([Ny.config({}),Cy("dialog-blocker-events",[To(Ei(),(function(){fy.focusIn(e)}))])])}));zh(n,a),fy.focusIn(e)},s=function(t){o.set(_.none()),qo(t.element).each((function(e){t.getSystem().getByDom(e).each((function(t){$h(t)}))}))},u=function(e){return Vm(e,t,"body")},c=function(e){return Vm(e,t,"footer")},l=function(t,e){fK.block(t,e)},f=function(t){fK.unblock(t)},d=Ea("modal-events"),p=h(h({},t.eventOrder),(i={},i[Qi()]=[d].concat(t.eventOrder["alloy.system.attached"]||[]),i));return{uid:t.uid,dom:t.dom,components:e,apis:{show:a,hide:s,getBody:u,getFooter:c,setIdle:f,setBusy:l},eventOrder:p,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Zp(t.modalBehaviours,[_y.config({}),fy.config({mode:"cyclic",onEnter:t.onExecute,onEscape:t.onEscape,useTabstopAt:t.useTabstopAt}),fK.config({getRoot:o.get}),Cy(d,[Ao((function(e){eK(e.element,Vm(e,t,"title").element),tK(e.element,Vm(e,t,"body").element)}))])])}},hK=ug({name:"ModalDialog",configFields:nK(),partFields:iK(),factory:dK,apis:{show:function(t,e){t.show(e)},hide:function(t,e){t.hide(e)},getBody:function(t,e){return t.getBody(e)},getFooter:function(t,e){return t.getFooter(e)},setBusy:function(t,e,n){t.setBusy(e,n)},setIdle:function(t,e){t.setIdle(e)}}}),pK=ze([xn("type"),xn("name")].concat(Qx)),mK=pn,gK=[We("name","name",ne((function(){return Ea("button-name")})),hn),Rn("icon"),Hn("align","end",["start","end"]),Vn("primary",!1),Vn("disabled",!1)],vK=m(gK,[xn("text")]),bK=m([Cn("type",["submit","cancel","custom"])],vK),yK=m([Cn("type",["menu"]),Rn("text"),Rn("tooltip"),Rn("icon"),Tn("items",pK)],gK),wK=un("type",{submit:bK,cancel:bK,custom:bK,menu:yK}),_K=[xn("type"),xn("text"),Cn("level",["info","warn","error","success"]),xn("icon"),zn("url","")],xK=ze(_K),CK=function(t){return[xn("type"),t]},SK=[xn("type"),xn("text"),Vn("disabled",!1),Vn("primary",!1),We("name","name",ne((function(){return Ea("button-name")})),hn),Rn("icon"),Vn("borderless",!1)],kK=ze(SK),MK=[xn("type"),xn("name"),xn("label"),Vn("disabled",!1)],EK=ze(MK),OK=pn,TK=[xn("type"),xn("name")],AK=TK.concat([Rn("label")]),DK=AK.concat([zn("columns","auto")]),NK=ze(DK),RK=Xe([xn("value"),xn("text"),xn("icon")]),PK=AK,IK=ze(PK),BK=hn,LK=AK,zK=ze(LK),jK=hn,FK=TK.concat([$n("tag","textarea"),xn("scriptId"),xn("scriptUrl"),qn("settings",void 0)]),$K=TK.concat([$n("tag","textarea"),kn("init")]),HK=Qe((function(t){return nn("customeditor.old",Le($K),t).orThunk((function(){return nn("customeditor.new",Le(FK),t)}))})),VK=hn,UK=AK,qK=ze(UK),WK=Ze(),KK=function(t){return[xn("type"),_n("columns"),t]},GK=[xn("type"),xn("html"),Hn("presets","presentation",["presentation","document"])],YK=ze(GK),XK=AK.concat([Vn("sandboxed",!0)]),ZK=ze(XK),JK=hn,QK=AK.concat([wn("currentState",ze([yn("blob"),xn("url")]))]),tG=ze(QK),eG=AK.concat([Rn("inputMode"),Rn("placeholder"),Vn("maximized",!1),Vn("disabled",!1)]),nG=ze(eG),rG=hn,iG=function(t){return[xn("type"),xn("label"),t]},oG=[xn("text"),xn("value")],aG=[xn("text"),Tn("items",cn("items",(function(){return sG})))],sG=Fe([ze(oG),ze(aG)]),uG=AK.concat([Tn("items",sG),Vn("disabled",!1)]),cG=ze(uG),lG=hn,fG=AK.concat([On("items",[xn("text"),xn("value")]),Fn("size",1),Vn("disabled",!1)]),dG=ze(fG),hG=hn,pG=AK.concat([Vn("constrain",!0),Vn("disabled",!1)]),mG=ze(pG),gG=ze([xn("width"),xn("height")]),vG=[xn("type"),Tn("header",hn),Tn("cells",je(hn))],bG=ze(vG),yG=AK.concat([Rn("placeholder"),Vn("maximized",!1),Vn("disabled",!1)]),wG=ze(yG),_G=hn,xG=AK.concat([Hn("filetype","file",["image","media","file"]),zn("disabled",!1)]),CG=ze(xG),SG=ze([xn("value"),zn("meta",{})]),kG=function(t){return We("items","items",te(),je(Qe((function(e){return nn("Checking item of "+t,MG,e).fold((function(t){return gt.error(an(t))}),(function(t){return gt.value(t)}))}))))},MG=Je((function(){return sn("type",{alertbanner:xK,bar:ze(CK(kG("bar"))),button:kK,checkbox:EK,colorinput:IK,colorpicker:zK,dropzone:qK,grid:ze(KK(kG("grid"))),iframe:ZK,input:nG,listbox:cG,selectbox:dG,sizeinput:mG,textarea:wG,urlinput:CG,customeditor:HK,htmlpanel:YK,imagetools:tG,collection:NK,label:ze(iG(kG("label"))),table:bG,panel:OG})})),EG=[xn("type"),zn("classes",[]),Tn("items",MG)],OG=ze(EG),TG=[We("name","name",ne((function(){return Ea("tab-name")})),hn),xn("title"),Tn("items",MG)],AG=[xn("type"),On("tabs",TG)],DG=ze(AG),NG=vK,RG=wK,PG=ze([xn("title"),wn("body",sn("type",{panel:OG,tabpanel:DG})),$n("size","normal"),Tn("buttons",RG),zn("initialData",{}),Un("onAction",e),Un("onChange",e),Un("onSubmit",e),Un("onClose",e),Un("onCancel",e),zn("onTabChange",e)]),IG=function(t){return nn("dialog",PG,t)},BG=ze(m([Cn("type",["cancel","custom"])],NG)),LG=ze([xn("title"),xn("url"),Nn("height"),Nn("width"),In("buttons",BG),Un("onAction",e),Un("onCancel",e),Un("onClose",e),Un("onMessage",e)]),zG=function(t){return nn("dialog",LG,t)},jG=function(t){return E(t)?[t].concat(nt(zt(t),jG)):O(t)?nt(t,jG):[]},FG=function(t){return M(t.type)&&M(t.name)},$G={checkbox:OK,colorinput:BK,colorpicker:jK,dropzone:WK,input:rG,iframe:JK,sizeinput:gG,selectbox:hG,listbox:lG,size:gG,textarea:_G,urlinput:SG,customeditor:VK,collection:RK,togglemenuitem:mK},HG=function(t){return _.from($G[t.type])},VG=function(t){return Y(jG(t),FG)},UG=function(t){var e=VG(t),n=nt(e,(function(t){return HG(t).fold((function(){return[]}),(function(e){return[wn(t.name,e)]}))}));return ze(n)},qG=function(t){var e=rn(IG(t)),n=UG(t),r=t.initialData;return{internalDialog:e,dataValidator:n,initialData:r}},WG={open:function(t,e){var n=qG(e);return t(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(t,e){var n=rn(zG(e));return t(n)},redial:function(t){return qG(t)}},KG=function(t){var e=[],n={};return At(t,(function(t,r){t.fold((function(){e.push(r)}),(function(t){n[r]=t}))})),e.length>0?gt.error(e):gt.value(n)},GG=function(t,e){var n=Jw(mN.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:q(t.items,(function(t){return qB(n,t,e)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:Fl([fy.config({mode:"acyclic",useTabstopAt:u(QN)}),MN.memento(n),HN.memento(n,{postprocess:function(t){return KG(t).fold((function(t){return console.error(t),{}}),(function(t){return t}))}})])}},YG=function(t,e){return{uid:t.uid,dom:t.dom,components:t.components,events:Qy(t.action),behaviours:Zp(t.tabButtonBehaviours,[Ny.config({}),fy.config({mode:"execution",useSpace:!0,useEnter:!0}),Gp.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}},XG=sg({name:"TabButton",configFields:[zn("uid",void 0),yn("value"),We("dom","dom",re((function(){return{attributes:{role:"tab",id:Ea("aria"),"aria-selected":"false"}}})),ln()),An("action"),zn("domModification",{}),Yp("tabButtonBehaviours",[Ny,fy,Gp]),yn("view")],factory:YG}),ZG=o([yn("tabs"),yn("dom"),zn("clickToDismiss",!1),Yp("tabbarBehaviours",[jg,fy]),Bc(["tabClass","selectedClass"])]),JG=Am({factory:XG,name:"tabs",unit:"tab",overrides:function(t){var n=function(t,e){jg.dehighlight(t,e),lo(t,ao(),{tabbar:t,button:e})},r=function(t,e){jg.highlight(t,e),lo(t,oo(),{tabbar:t,button:e})};return{action:function(i){var o=i.getSystem().getByUid(t.uid).getOrDie(),a=jg.isHighlighted(o,i),s=function(){return a&&t.clickToDismiss?n:a?e:r}();s(o,i)},domModification:{classes:[t.markers.tabClass]}}}}),QG=o([JG]),tY=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Zp(t.tabbarBehaviours,[jg.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:function(t,e){ha(e.element,"aria-selected","true")},onDehighlight:function(t,e){ha(e.element,"aria-selected","false")}}),fy.config({mode:"flow",getInitial:function(t){return jg.getHighlighted(t).map((function(t){return t.element}))},selector:"."+t.markers.tabClass,executeOnMove:!0})])}},eY=ug({name:"Tabbar",configFields:ZG(),partFields:QG(),factory:tY}),nY=function(t,e){return{uid:t.uid,dom:t.dom,behaviours:Zp(t.tabviewBehaviours,[_y.config({})]),domModification:{attributes:{role:"tabpanel"}}}},rY=sg({name:"Tabview",configFields:[Yp("tabviewBehaviours",[_y])],factory:nY}),iY=o([zn("selectFirst",!0),zc("onChangeTab"),zc("onDismissTab"),zn("tabs",[]),Yp("tabSectionBehaviours",[])]),oY=Em({factory:eY,schema:[yn("dom"),En("markers",[yn("tabClass"),yn("selectedClass")])],name:"tabbar",defaults:function(t){return{tabs:t.tabs}}}),aY=Em({factory:rY,name:"tabview"}),sY=o([oY,aY]),uY=function(t,e,n,r){var i=function(e){var n=Gp.getValue(e);Hm(e,t,"tabview").each((function(r){var i=Q(t.tabs,(function(t){return t.value===n}));i.each((function(n){var i=n.view();ga(e.element,"id").each((function(t){ha(r.element,"aria-labelledby",t)})),_y.set(r,i),t.onChangeTab(r,e,i)}))}))},o=function(e,n){Hm(e,t,"tabbar").each((function(t){n(t).each(fo)}))};return{uid:t.uid,dom:t.dom,components:e,behaviours:Xp(t.tabSectionBehaviours),events:go(et([t.selectFirst?[Ao((function(t,e){o(t,jg.getFirst)}))]:[],[wo(oo(),(function(t,e){var n=e.event.button;i(n)})),wo(ao(),(function(e,n){var r=n.event.button;t.onDismissTab(e,r)}))]])),apis:{getViewItems:function(e){return Hm(e,t,"tabview").map((function(t){return _y.contents(t)})).getOr([])},showTab:function(t,e){var n=function(t){var n=jg.getCandidates(t),r=Q(n,(function(t){return Gp.getValue(t)===e}));return r.filter((function(e){return!jg.isHighlighted(t,e)}))};o(t,n)}}}},cY=ug({name:"TabSection",configFields:iY(),partFields:sY(),factory:uY,apis:{getViewItems:function(t,e){return t.getViewItems(e)},showTab:function(t,e,n){t.showTab(e,n)}}}),lY=function(t,e,n){return q(t,(function(r,i){_y.set(n,t[i].view());var o=e.dom.getBoundingClientRect();return _y.set(n,[]),o.height}))},fY=function(t){return ct(st(t,(function(t,e){return t>e?-1:t<e?1:0})))},dY=function(t,e,n){var r,i=Vo(t).dom,o=hc(t,".tox-dialog-wrap").getOr(t),a="fixed"===Js(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=Cu(e),u=e.dom.offsetLeft>=n.dom.offsetLeft+Pu(n),c=u?Math.max(Cu(n),s):s,l=parseInt(Js(t,"margin-top"),10)||0,f=parseInt(Js(t,"margin-bottom"),10)||0,d=Cu(t)+l+f,h=d-c;return r-h},hY=function(t,e){ct(t).each((function(t){return cY.showTab(e,t.value)}))},pY=function(t,e){Ys(t,"height",e+"px"),Kr().browser.isIE()?ru(t,"flex-basis"):Ys(t,"flex-basis",e+"px")},mY=function(t,e,n){hc(t,'[role="dialog"]').each((function(t){pc(t,'[role="tablist"]').each((function(r){n.get().map((function(n){return Ys(e,"height","0"),Ys(e,"flex-basis","0"),Math.min(n,dY(t,e,r))})).each((function(t){pY(e,t)}))}))}))},gY=function(t){return pc(t,'[role="tabpanel"]')},vY=function(t){var e=function(){var e=Yn(_.none()),n=[Ao((function(n){var r=n.element;gY(r).each((function(i){Ys(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each((function(n){var r=lY(t,i,n),o=fY(r);e.set(o)})),mY(r,i,e),ru(i,"visibility"),hY(t,n),Yw.requestAnimationFrame((function(){mY(r,i,e)}))}))})),wo(Ji(),(function(t){var n=t.element;gY(n).each((function(t){mY(n,t,e)}))})),wo(mO,(function(t,n){var r=t.element;gY(r).each((function(t){var n=Ql();Ys(t,"visibility","hidden");var i=tu(t,"height").map((function(t){return parseInt(t,10)}));ru(t,"height"),ru(t,"flex-basis");var o=t.dom.getBoundingClientRect().height,a=i.forall((function(t){return o>t}));a?(e.set(_.from(o)),mY(r,t,e)):i.each((function(e){pY(t,e)})),ru(t,"visibility"),n.each(Xl)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var t=[],e=!0;return{extraEvents:t,selectFirst:e}}();return{smartTabHeight:e,naiveTabHeight:n}},bY="send-data-to-section",yY="send-data-to-view",wY=function(t,e){var n=Yn({}),r=function(t){var e=Gp.getValue(t),r=KG(e).getOr({}),i=n.get(),o=Gt(i,r);n.set(o)},i=function(t){var e=n.get();Gp.setValue(t,e)},o=Yn(null),a=q(t.tabs,(function(t){return{value:t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:e.shared.providers.translate(t.title)},view:function(){return[mN.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:q(t.items,(function(t){return qB(n,t,e)})),formBehaviours:Fl([fy.config({mode:"acyclic",useTabstopAt:u(QN)}),Cy("TabView.form.events",[Ao(i),Do(r)]),Wl.config({channels:le([{key:bY,value:{onReceive:r}},{key:yY,value:{onReceive:i}}])})])}}))]}}})),s=vY(a).smartTabHeight;return cY.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(t,e,n){var r=Gp.getValue(e);lo(t,pO,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[cY.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[eY.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Fl([QE.config({})])}),cY.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:Fl([Cy("tabpanel",s.extraEvents),fy.config({mode:"acyclic"}),yg.config({find:function(t){return ct(cY.getViewItems(t))}}),Gp.config({store:{mode:"manual",getValue:function(t){return t.getSystem().broadcastOn([bY],{}),n.get()},setValue:function(t,e){n.set(e),t.getSystem().broadcastOn([yY],{})}}})])})},_Y=Ea("update-dialog"),xY=Ea("update-title"),CY=Ea("update-body"),SY=Ea("update-footer"),kY=Ea("body-send-message"),MY=function(t,e,n,r){var i=function(t){switch(t.body.type){case"tabpanel":return[wY(t.body,n)];default:return[GG(t.body,n)]}},o=function(t,e){return _.some({isTabPanel:function(){return"tabpanel"===e.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:h(h({},e.map((function(t){return{id:t}})).getOr({})),r?a:{})},components:[],behaviours:Fl([MN.childAt(0),Xj.config({channel:CY,updateState:o,renderComponents:i,initialData:t})])}},EY=function(t,e,n,r){return MY(t,_.some(e),n,r)},OY=function(t,e){var n=MY(t,_.none(),e,!1);return hK.parts.body(n)},TY=function(t){var e={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[XN({dom:{tag:"iframe",attributes:{src:t.url}},behaviours:Fl([QE.config({}),Ny.config({})])})]}],behaviours:Fl([fy.config({mode:"acyclic",useTabstopAt:u(QN)})])};return hK.parts.body(e)},AY=nk.deviceType.isTouch(),DY=function(t,e){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[t,e]}},NY=function(t,e){return hK.parts.close(Zw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close")}},action:t,buttonBehaviours:Fl([QE.config({})])}))},RY=function(){return hK.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},PY=function(t,e){return hK.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:MV("<p>"+e.translate(t)+"</p>")}]}]})},IY=function(t){return hK.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t})},BY=function(t,e){return[VE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),VE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:e})]},LY=function(t){var e,n="tox-dialog",r=n+"-wrap",i=r+"__backdrop",o=n+"__disable-scroll";return hK.sketch({lazySink:t.lazySink,onEscape:function(e){return t.onEscape(e),_.some(!0)},useTabstopAt:function(t){return!QN(t)},dom:{tag:"div",classes:[n].concat(t.extraClasses),styles:h({position:"relative"},t.extraStyles)},components:m([t.header,t.body],t.footer.toArray()),parts:{blocker:{dom:MV('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:AY?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:Fl(m([Ny.config({}),Cy("dialog-events",t.dialogEvents.concat([To(Ei(),(function(t,e){fy.focusIn(t)}))])),Cy("scroll-lock",[Ao((function(){Es(qs(),o)})),Do((function(){Ts(qs(),o)}))])],t.extraBehaviours)),eventOrder:h((e={},e[Hi()]=["dialog-events"],e[Qi()]=["scroll-lock","dialog-events","alloy.base.behaviour"],e[to()]=["alloy.base.behaviour","dialog-events","scroll-lock"],e),t.eventOrder)})},zY=function(t){return Zw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:t_("close",t.icons)}}],action:function(t){co(t,cO)}})},jY=function(t,e,n){var r=function(t){return[gu(n.translate(t.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:h({},e.map((function(t){return{id:t}})).getOr({}))},components:r(t),behaviours:Fl([Xj.config({channel:xY,renderComponents:r})])}},FY=function(){return{dom:MV('<div class="tox-dialog__draghandle"></div>')}},$Y=function(t,e,n){return VE.sketch({dom:MV('<div class="tox-dialog__header"></div>'),components:[jY(t,_.some(e),n),FY(),zY(n)],containerBehaviours:Fl([FW.config({mode:"mouse",blockerClass:"blocker",getTarget:function(t){return mc(t,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},HY=function(t,e){var n=hK.parts.title(jY(t,_.none(),e)),r=hK.parts.draghandle(FY()),i=hK.parts.close(zY(e)),o=[n].concat(t.draggable?[r]:[]).concat([i]);return VE.sketch({dom:MV('<div class="tox-dialog__header"></div>'),components:o})},VY=function(t,e){return HY({title:e.shared.providers.translate(t),draggable:e.dialog.isDraggableModal()},e.shared.providers)},UY=function(t,e){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":t},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:e,components:[{dom:MV('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},qY=function(t,e){return{onClose:function(){return e.closeWindow()},onBlock:function(e){hK.setBusy(t(),(function(t,n){return UY(e.message,n)}))},onUnblock:function(){hK.setIdle(t())}}},WY=function(t,e,n,r){var i,o=function(t,e){return _.some(e)};return yu(LY(h(h({},t),{lazySink:r.shared.getSink,extraBehaviours:m([Xj.config({channel:_Y,updateState:o,initialData:e}),HN.memory({})],t.extraBehaviours),onEscape:function(t){co(t,cO)},dialogEvents:n,eventOrder:(i={},i[$i()]=[Xj.name(),Wl.name()],i[Qi()]=["scroll-lock",Xj.name(),"messages","dialog-events","alloy.base.behaviour"],i[to()]=["alloy.base.behaviour","dialog-events","messages",Xj.name(),"scroll-lock"],i)})))},KY=function(t){var e=function(t){var e=q(t.items,(function(t){var e=Yn(!1);return h(h({},t),{storage:e})}));return h(h({},t),{items:e})};return q(t,(function(t){return"menu"===t.type?e(t):t}))},GY=function(t){return Z(t,(function(t,e){if("menu"===e.type){var n=e;return Z(n.items,(function(t,e){return t[e.name]=e.storage,t}),t)}return t}),{})},YY=function(t,e){return[Mo(Ei(),JN),t(uO,(function(t,n){e.onClose(),n.onClose()})),t(cO,(function(t,e,n,r){e.onCancel(t),co(r,uO)})),wo(hO,(function(t,n){return e.onUnblock()})),wo(dO,(function(t,n){return e.onBlock(n.event)}))]},XY=function(t,e){var n=function(e,n){return wo(e,(function(e,i){r(e,(function(r,o){n(t(),r,i.event,e)}))}))},r=function(t,e){Xj.getState(t).get().each((function(n){e(n,t)}))};return m(YY(n,e),[n(lO,(function(t,e,n){e.onAction(t,{name:n.name})}))])},ZY=function(t,e,n){var r=function(e,n){return wo(e,(function(e,r){i(e,(function(i,o){n(t(),i,r.event,e)}))}))},i=function(t,e){Xj.getState(t).get().each((function(n){e(n.internalDialog,t)}))};return m(YY(r,e),[r(fO,(function(t,e){return e.onSubmit(t)})),r(sO,(function(t,e,n){e.onChange(t,{name:n.name})})),r(lO,(function(t,e,r,i){var o=function(){return fy.focusIn(i)},a=function(t){return va(t,"disabled")||ga(t,"aria-disabled").exists((function(t){return"true"===t}))},s=Ls(i.element),u=Ql(s);e.onAction(t,{name:r.name,value:r.value}),Ql(s).fold(o,(function(t){a(t)||u.exists((function(e){return si(t,e)&&a(e)}))?o():n().toOptional().filter((function(e){return!si(e.element,t)})).each(o)}))})),r(pO,(function(t,e,n){e.onTabChange(t,{newTabName:n.name,oldTabName:n.oldName})})),Do((function(e){var n=t();Gp.setValue(e,n.getData())}))])},JY={initUrlDialog:XY,initDialog:ZY},QY=function(t,e){return $P(t,t.type,e)},tX=function(t,e,n){return Q(e,(function(t){return t.name===n})).bind((function(e){return e.memento.getOpt(t)}))},eX=function(t,e){var n=e.map((function(t){return t.footerButtons})).getOr([]),r=G(n,(function(t){return"start"===t.align})),i=function(t,e){return VE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+t]},components:q(e,(function(t){return t.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},nX=function(t,e){var n=function(t,n){var r=q(n.buttons,(function(t){var n=Jw(QY(t,e));return{name:t.name,align:t.align,memento:n}})),i=function(t,e){return tX(t,r,e)};return _.some({lookupByName:i,footerButtons:r})};return{dom:MV('<div class="tox-dialog__footer"></div>'),components:[],behaviours:Fl([Xj.config({channel:SY,initialData:t,updateState:n,renderComponents:eX})])}},rX=function(t,e){return nX(t,e)},iX=function(t,e){return hK.parts.footer(nX(t,e))},oX=function(t,e){var n=t.getRoot();if(n.getSystem().isConnected()){var r=yg.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());return mN.getField(r,e).fold((function(){var n=t.getFooter(),i=Xj.getState(n);return i.get().bind((function(t){return t.lookupByName(r,e)}))}),(function(t){return _.some(t)}))}return _.none()},aX=function(t,e){var n=t.getRoot();return Xj.getState(n).get().map((function(t){return rn(nn("data",t.dataValidator,e))})).getOr(e)},sX=function(t,e,n){var r=function(e){var n=t.getRoot();n.getSystem().isConnected()&&e(n)},i=function(){var e=t.getRoot(),r=e.getSystem().isConnected()?t.getFormWrapper():e,i=Gp.getValue(r),o=Dt(n,(function(t){return t.get()}));return h(h({},i),o)},o=function(e){r((function(r){var i=m.getData(),o=h(h({},i),e),a=aX(t,o),s=t.getFormWrapper();Gp.setValue(s,a),At(n,(function(t,e){Ft(o,e)&&t.set(o[e])}))}))},a=function(e){oX(t,e).each(YC.disable)},s=function(e){oX(t,e).each(YC.enable)},u=function(e){oX(t,e).each(Ny.focus)},c=function(t){if(!M(t))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(e){lo(e,dO,{message:t})}))},l=function(){r((function(t){co(t,hO)}))},f=function(e){r((function(n){var r=t.getBody(),i=Xj.getState(r);i.get().exists((function(t){return t.isTabPanel()}))&&yg.getCurrent(r).each((function(t){cY.showTab(t,e)}))}))},d=function(t){r((function(n){var r=e(t);n.getSystem().broadcastOn([_Y],r),n.getSystem().broadcastOn([xY],r.internalDialog),n.getSystem().broadcastOn([CY],r.internalDialog),n.getSystem().broadcastOn([SY],r.internalDialog),m.setData(r.initialData)}))},p=function(){r((function(t){co(t,uO)}))},m={getData:i,setData:o,disable:a,enable:s,focus:u,block:c,unblock:l,showTab:f,redial:d,close:p};return m},uX=function(t){switch(t){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},cX=function(t,e,n){var r=VY(t.internalDialog.title,n),i=OY({body:t.internalDialog.body},n),o=KY(t.internalDialog.buttons),a=GY(o),s=iX({buttons:o},n),u=JY.initDialog((function(){return h}),qY((function(){return f}),e),n.shared.getSink),c=uX(t.internalDialog.size),l={header:r,body:i,footer:_.some(s),extraClasses:c,extraBehaviours:[],extraStyles:{}},f=WY(l,t,u,n),d=function(){var t=function(){var t=hK.getBody(f);return yg.getCurrent(t).getOr(t)};return{getRoot:function(){return f},getBody:function(){return hK.getBody(f)},getFooter:function(){return hK.getFooter(f)},getFormWrapper:t}}(),h=sX(d,e.redial,a);return{dialog:f,instanceApi:h}},lX=function(t,e,n,r){var i,o,a=Ea("dialog-label"),s=Ea("dialog-content"),u=function(t,e){return _.some(e)},c=Jw($Y({title:t.internalDialog.title,draggable:!0},a,n.shared.providers)),l=Jw(EY({body:t.internalDialog.body},s,n,r)),f=KY(t.internalDialog.buttons),d=GY(f),h=Jw(rX({buttons:f},n)),p=JY.initDialog((function(){return g}),{onBlock:function(t){fK.block(m,(function(e,n){return UY(t.message,n)}))},onUnblock:function(){fK.unblock(m)},onClose:function(){return e.closeWindow()}},n.shared.getSink),m=yu({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=""+s,i)},eventOrder:(o={},o[$i()]=[Xj.name(),Wl.name()],o[Hi()]=["execute-on-form"],o[Qi()]=["reflecting","execute-on-form"],o),behaviours:Fl([fy.config({mode:"cyclic",onEscape:function(t){return co(t,uO),_.some(!0)},useTabstopAt:function(t){return!QN(t)&&("button"!==Po(t)||"disabled"!==ma(t,"disabled"))}}),Xj.config({channel:_Y,updateState:u,initialData:t}),Ny.config({}),Cy("execute-on-form",p.concat([To(Ei(),(function(t,e){fy.focusIn(t)}))])),fK.config({getRoot:function(){return _.some(m)}}),_y.config({}),HN.memory({})]),components:[c.asSpec(),l.asSpec(),h.asSpec()]}),g=sX({getRoot:function(){return m},getFooter:function(){return h.get(m)},getBody:function(){return l.get(m)},getFormWrapper:function(){var t=l.get(m);return yg.getCurrent(t).getOr(t)}},e.redial,d);return{dialog:m,instanceApi:g}},fX=tinymce.util.Tools.resolve("tinymce.util.URI"),dX=function(t){var e=function(e){t.getSystem().isConnected()&&e(t)},n=function(t){if(!M(t))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");e((function(e){lo(e,dO,{message:t})}))},r=function(){e((function(t){co(t,hO)}))},i=function(){e((function(t){co(t,uO)}))},o=function(t){e((function(e){e.getSystem().broadcastOn([kY],t)}))};return{block:n,unblock:r,close:i,sendMessage:o}},hX=["insertContent","setContent","execCommand","close","block","unblock"],pX=function(t){return E(t)&&-1!==hX.indexOf(t.mceAction)},mX=function(t){return!pX(t)&&E(t)&&Ft(t,"mceAction")},gX=function(t,e,n){switch(n.mceAction){case"insertContent":t.insertContent(n.content);break;case"setContent":t.setContent(n.content);break;case"execCommand":var r=!!T(n.ui)&&n.ui;t.execCommand(n.cmd,r,n.value);break;case"close":e.close();break;case"block":e.block(n.message);break;case"unblock":e.unblock();break}},vX=function(t,e,n,r){var i,o=VY(t.title,r),a=TY(t),s=t.buttons.bind((function(t){return 0===t.length?_.none():_.some(iX({buttons:t},r))})),u=JY.initUrlDialog((function(){return b}),qY((function(){return v}),e)),c=h(h({},t.height.fold((function(){return{}}),(function(t){return{height:t+"px","max-height":t+"px"}}))),t.width.fold((function(){return{}}),(function(t){return{width:t+"px","max-width":t+"px"}}))),l=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],f=new fX(t.url,{base_uri:new fX(window.location.href)}),d=f.protocol+"://"+f.host+(f.port?":"+f.port:""),p=Yn(_.none()),m=[Cy("messages",[Ao((function(){var e=dE(er.fromDom(window),"message",(function(e){if(f.isSameOrigin(new fX(e.raw.origin))){var r=e.raw.data;pX(r)?gX(n,b,r):mX(r)&&t.onMessage(b,r)}}));p.set(_.some(e))})),Do((function(){p.get().each((function(t){return t.unbind()}))}))]),Wl.config({channels:(i={},i[kY]={onReceive:function(t,e){pc(t.element,"iframe").each((function(t){var n=t.dom.contentWindow;n.postMessage(e,d)}))}},i)})],g={header:o,body:a,footer:s,extraClasses:l,extraBehaviours:m,extraStyles:c},v=WY(g,t,u,r),b=dX(v);return{dialog:v,instanceApi:b}},bX=function(t){var e=t.backstage.shared,n=function(n,r){var i=function(){hK.hide(u),r()},o=Jw($P({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:_.none()},"cancel",t.backstage)),a=RY(),s=NY(i,e.providers),u=yu(LY({lazySink:function(){return e.getSink()},header:DY(a,s),body:PY(n,e.providers),footer:_.some(IY(BY([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[wo(cO,i)],eventOrder:{}}));hK.show(u);var c=o.get(u);Ny.focus(c)};return{open:n}},yX=function(t){var e=t.backstage.shared,n=function(n,r){var i=function(t){hK.hide(c),r(t)},o=Jw($P({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:_.none()},"submit",t.backstage)),a=$P({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:_.none()},"cancel",t.backstage),s=RY(),u=NY((function(){return i(!1)}),e.providers),c=yu(LY({lazySink:function(){return e.getSink()},header:DY(s,u),body:PY(n,e.providers),footer:_.some(IY(BY([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[wo(cO,(function(){return i(!1)})),wo(fO,(function(){return i(!0)}))],eventOrder:{}}));hK.show(c);var l=o.get(c);Ny.focus(l)};return{open:n}},wX=function(t,e){return rn(nn("data",e,t))},_X=function(t){return mE(t,".tox-alert-dialog")||mE(t,".tox-confirm-dialog")},xX=function(t,e,n){return e&&n?[]:[FH.config({contextual:{lazyContext:function(){return _.some(ic(er.fromDom(t.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},CX=function(t){var e=t.backstage,n=t.editor,r=MS(n),i=bX(t),o=yX(t),a=function(t,n,r){return void 0!==n&&"toolbar"===n.inline?l(t,e.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?l(t,e.shared.anchors.cursor(),r,n.ariaAttrs):c(t,r)},s=function(t,e){return u(t,e)},u=function(t,r){var i=function(t){var i=vX(t,{closeWindow:function(){hK.hide(i.dialog),r(i.instanceApi)}},n,e);return hK.show(i.dialog),i.instanceApi};return WG.openUrl(i,t)},c=function(t,n){var r=function(t,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:t},s=cX(a,{redial:WG.redial,closeWindow:function(){hK.hide(s.dialog),n(s.instanceApi)}},e);return hK.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return WG.open(r,t)},l=function(t,i,o,a){var s=function(t,s,u){var c=wX(s,u),l=w$(),f=e.shared.header.isPositionedAtTop(),d={dataValidator:u,initialData:c,internalDialog:t},p=function(){return l.on((function(t){Lw.reposition(t),FH.refresh(t)}))},g=lX(d,{redial:WG.redial,closeWindow:function(){l.on(Lw.hide),n.off("ResizeEditor",p),l.clear(),o(g.instanceApi)}},e,a),v=yu(Lw.sketch(h(h({lazySink:e.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},f?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:Fl(m([Cy("window-manager-inline-events",[wo(eo(),(function(t,e){co(g.dialog,cO)}))])],xX(n,r,f))),isExtraPart:function(t,e){return _X(e)}})));return l.set(v),Lw.showWithin(v,i,wu(g.dialog),_.some(qs())),r&&f||(FH.refresh(v),n.on("ResizeEditor",p)),g.instanceApi.setData(c),fy.focusIn(g.dialog),g.instanceApi};return WG.open(s,t)},f=function(t,e){o.open(t,(function(t){e(t)}))},d=function(t,e){i.open(t,(function(){e()}))},p=function(t){t.close()};return{open:a,openUrl:s,alert:d,close:p,confirm:f}};function SX(){d.add("silver",(function(t){var e=QW(t),n=e.uiMothership,r=e.backstage,i=e.renderUI,a=e.getUi;lE.register(t,r.shared);var s=CX({editor:t,backstage:r});return{renderUI:i,getWindowManagerImpl:o(s),getNotificationManagerImpl:function(){return a_(t,{backstage:r},n)},ui:a()}}))}SX()})()}).call(this,n("c8ba"))},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"03d6":function(t,e,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},"051b":function(t,e,n){var r=n("1a14"),i=n("10db");t.exports=n("0bad")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"0538":function(t,e,n){"use strict";var r=n("1c0b"),i=n("861d"),o=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(e,r.length,r):e.apply(t,r)};return i(e.prototype)&&(a.prototype=e.prototype),a}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"05f0":function(t,e,n){"use strict";var r=n("d113").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"05f5":function(t,e,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"0632":function(t,e,n){
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
- var r=n("b639"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),u=n("5135"),c=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"072d":function(t,e,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),u=n("9fbb"),c=Object.assign;t.exports=!c||n("4b8b")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){var n=s(t),c=arguments.length,l=1,f=o.f,d=a.f;while(c>l){var h,p=u(arguments[l++]),m=f?i(p).concat(f(p)):i(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},"07ac":function(t,e,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"07d1":function(t,e,n){n("94ce")},"07f2":function(t,e,n){"use strict";var r=n("c3c0"),i=n("6eed");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},"087f":function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function f(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var d=0;d<80;++d){var h=~~(d/20),p=c(n)+f(h,r,i,o)+s+e[d]+a[h]|0;s=o,o=i,i=l(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.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=u},"0960":function(t,e,n){t.exports=n("b19a")},"0983":function(t,e,n){var r=n("c901");t.exports=function(t){return Object(r(t))}},"09cf":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");function e(){t.add("textcolor",(function(){console.warn("Text color plugin is now built in to the core editor, please remove it from your editor configuration")}))}e()})()},"09dc":function(t,e,n){"use strict";t.exports=l;var r=n("9d8a").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n("e666");function c(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,n){d(t,e,n)}))}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n("3fb5")(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,n){n(new i("_transform()"))},l.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},"09f5":function(t,e,n){var r=n("39f5"),i=n("8707").Buffer,o=n("6430"),a=n("3fb5");function s(t,e,n,a){o.call(this),this._cipher=new r.AES(e),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}a(s,o),s.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},"0a06":function(t,e,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=u},"0ae2":function(t,e,n){var r=n("9876"),i=n("fed5"),o=n("1917");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),u=o.f,c=0;while(s.length>c)u.call(t,a=s[c++])&&e.push(a)}return e}},"0ae3":function(t,e,n){"use strict";t.exports=i;var r=n("09dc");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},"0b99":function(t,e,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"0bad":function(t,e,n){t.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0be8":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},"0cb2":function(t,e,n){var r=n("7b0b"),i=Math.floor,o="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;t.exports=function(t,e,n,u,c,l){var f=n+t.length,d=u.length,h=s;return void 0!==c&&(c=r(c),h=a),o.call(l,h,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(f);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>d){var l=i(s/10);return 0===l?r:l<=d?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):r}a=u[s-1]}return void 0===a?"":a}))}},"0cbb":function(t,e,n){"use strict";var r,i=e,o=n("7d92"),a=n("4136"),s=n("f3a3"),u=s.assert;function c(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n("409b")}catch(f){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d68":function(t,e,n){n("030f")},"0da4":function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5"),o={};function a(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function s(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var n=Object.keys(o),r=0;r<n.length;r++){var a=n[r];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e}e.instantiate=s,o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,n,r);for(s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{o._update.call(this,t,e,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0f2c":function(t,e,n){var r=n("2aee"),i=n("f460"),o=n("83d5"),a=n("0106"),s=n("a958"),u=n("98e6"),c=n("5291"),l=n("8707").Buffer;function f(t,e){var n=t.modulus.byteLength(),r=u("sha1").update(l.alloc(0)).digest(),a=r.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),c=e.slice(a+1),f=o(s,i(c,a)),d=o(c,i(f,n-a-1));if(h(r,d.slice(0,a)))throw new Error("decryption error");var p=a;while(0===d[p])p++;if(1!==d[p++])throw new Error("decryption error");return d.slice(p)}function d(t,e,n){var r=e.slice(0,2),i=2,o=0;while(0!==e[i++])if(i>=e.length){o++;break}var a=e.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function h(t,e){t=l.from(t),e=l.from(e);var n=0,r=t.length;t.length!==e.length&&(n++,r=Math.min(t.length,e.length));var i=-1;while(++i<r)n+=t[i]^e[i];return n}t.exports=function(t,e,n){var i;i=t.padding?t.padding:n?1:4;var o,u=r(t),h=u.modulus.byteLength();if(e.length>h||new a(e).cmp(u.modulus)>=0)throw new Error("decryption error");o=n?c(new a(e),u):s(e,u);var p=l.alloc(h-o.length);if(o=l.concat([p,o],h),4===i)return f(u,o);if(1===i)return d(u,o,n);if(3===i)return o;throw new Error("unknown padding")}},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=u(r),o=n("f893"),a=u(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},"10b7":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){
- /** @preserve
- (c) 2012 by Cédric Mesnil. All rights reserved.
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([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]),c=i.create([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]),l=i.create([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]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,w,_,x,C,S,k,M,E,O=this._hash.words,T=f.words,A=d.words,D=s.words,N=u.words,R=c.words,P=l.words;x=o=O[0],C=a=O[1],S=h=O[2],k=w=O[3],M=_=O[4];for(n=0;n<80;n+=1)E=o+t[e+D[n]]|0,E+=n<16?p(a,h,w)+T[0]:n<32?m(a,h,w)+T[1]:n<48?g(a,h,w)+T[2]:n<64?v(a,h,w)+T[3]:b(a,h,w)+T[4],E|=0,E=y(E,R[n]),E=E+_|0,o=_,_=w,w=y(h,10),h=a,a=E,E=x+t[e+N[n]]|0,E+=n<16?b(C,S,k)+A[0]:n<32?v(C,S,k)+A[1]:n<48?g(C,S,k)+A[2]:n<64?m(C,S,k)+A[3]:p(C,S,k)+A[4],E|=0,E=y(E,P[n]),E=E+M|0,x=M,M=k,k=y(S,10),S=C,C=E;E=O[1]+h+k|0,O[1]=O[2]+w+M|0,O[2]=O[3]+_+x|0,O[3]=O[4]+o+C|0,O[4]=O[0]+a+S|0,O[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function y(t,e){return t<<e|t>>>32-e}n.RIPEMD160=o._createHelper(h),n.HmacRIPEMD160=o._createHmacHelper(h)}(Math),t.RIPEMD160}))},"10db":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1132:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.enc;i.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=e[o>>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,u=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(c>>>6*(3-l)&63));var f=r.charAt(64);if(f)while(i.length%4)i.push(f);return i.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<n.length;i++)r[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return o(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,n){for(var i=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,u=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return r.create(i,o)}}(),t.enc.Base64}))},1148:function(t,e,n){"use strict";var r=n("a691"),i=n("1d80");t.exports="".repeat||function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},"116d":function(t,e,n){t.exports=n("b4e8")},"11dc":function(t,e,n){"use strict";(function(e,r){var i=65536,o=4294967295;function a(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=n("8707").Buffer,u=e.crypto||e.msCrypto;function c(t,e){if(t>o)throw new RangeError("requested too many random bytes");var n=s.allocUnsafe(t);if(t>0)if(t>i)for(var a=0;a<t;a+=i)u.getRandomValues(n.slice(a,a+i));else u.getRandomValues(n);return"function"===typeof e?r.nextTick((function(){e(null,n)})):n}u&&u.getRandomValues?t.exports=c:t.exports=a}).call(this,n("c8ba"),n("4362"))},1276:function(t,e,n){"use strict";var r=n("d784"),i=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),u=n("8aa5"),c=n("50c4"),l=n("14c3"),f=n("9263"),d=n("d039"),h=[].push,p=Math.min,m=4294967295,g=!d((function(){return!RegExp(m,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,o);var s,u,c,l=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,d+"g");while(s=f.call(g,r)){if(u=g.lastIndex,u>p&&(l.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(l,s.slice(1)),c=s[0].length,p=u,l.length>=o))break;g.lastIndex===s.index&&g.lastIndex++}return p===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(p)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=a(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,i,n):r.call(String(i),e,n)},function(t,i){var a=n(r,t,this,i,r!==e);if(a.done)return a.value;var f=o(t),d=String(this),h=s(f,RegExp),v=f.unicode,b=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(g?"y":"g"),y=new h(g?f:"^(?:"+f.source+")",b),w=void 0===i?m:i>>>0;if(0===w)return[];if(0===d.length)return null===l(y,d)?[d]:[];var _=0,x=0,C=[];while(x<d.length){y.lastIndex=g?x:0;var S,k=l(y,g?d:d.slice(x));if(null===k||(S=p(c(y.lastIndex+(g?0:x)),d.length))===_)x=u(d,x,v);else{if(C.push(d.slice(_,x)),C.length===w)return C;for(var M=1;M<=k.length-1;M++)if(C.push(k[M]),C.length===w)return C;x=_=S}}return C.push(d.slice(_)),C}]}),!g)},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"12f2":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},"131a":function(t,e,n){var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},1382:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,i=e.algo,o=[],a=[],s=[],u=i.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;i[0]^=u,i[1]^=f,i[2]^=l,i[3]^=d,i[4]^=u,i[5]^=f,i[6]^=l,i[7]^=d;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),t[e+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(u)}(),t.Rabbit}))},"13e2":function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=n("aa56"),a=r.rotl32,s=r.sum32,u=r.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=u(a(i,5),c(p,o,l,d),h,n[r],f[p]);h=d,d=l,l=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},"14c3":function(t,e,n){var r=n("c6b6"),i=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"14e9":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=127)}({127:function(t,e,n){"use strict";n.r(e);var r=n(16),i=n(39),o=n.n(i),a=n(3),s=n(2),u={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function c(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var l={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return u[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:c({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(e-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-e,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},f={name:"ElScrollbar",components:{Bar:l},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=o()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var s=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),u=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),c=void 0;return c=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[u,t(l,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(l,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},c)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t=void 0,e=void 0,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r["removeResizeListener"])(this.$refs.resize,this.update)},install:function(t){t.component(f.name,f)}};e["default"]=f},16:function(t,e){t.exports=n("4010")},2:function(t,e){t.exports=n("5924")},3:function(t,e){t.exports=n("8122")},39:function(t,e){t.exports=n("e62d")}})},1545:function(t,e,n){"use strict";e.utils=n("5ee7"),e.Cipher=n("0184"),e.DES=n("4e2b"),e.CBC=n("0da4"),e.EDE=n("1fec")},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(l){c.forEach=o}}},1609:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"17e1":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,r=n.WordArray,i=r.init,o=r.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r<e;r++)n[r>>>2]|=t[r]<<24-r%4*8;i.call(this,n,e)}else i.apply(this,arguments)};o.prototype=r}}(),t.lib.WordArray}))},"17ed":function(t,e,n){t.exports={default:n("511f"),__esModule:!0}},1836:function(t,e,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},1917:function(t,e){e.f={}.propertyIsEnumerable},"191b":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224}))},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"19ea":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){q(e,t)}}var o;t.exports=O,O.WritableState=E;var a={deprecate:n("b7d1")},s=n("5bbb"),u=n("b639").Buffer,c=e.Uint8Array||function(){};function l(t){return u.from(t)}function f(t){return u.isBuffer(t)||t instanceof c}var d,h=n("493f"),p=n("b9b5"),m=p.getHighWaterMark,g=n("9d8a").codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,x=g.ERR_STREAM_NULL_VALUES,C=g.ERR_STREAM_WRITE_AFTER_END,S=g.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function M(){}function E(t,e,r){o=o||n("e666"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){B(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(t){o=o||n("e666");var e=this instanceof o;if(!e&&!d.call(O,this))return new O(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)),s.call(this)}function T(t,e){var n=new C;k(t,n),r.nextTick(e,n)}function A(t,e,n,i){var o;return null===n?o=new x:"string"===typeof n||e.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}function D(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,n)),e}function N(t,e,n,r,i,o){if(!n){var a=D(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else R(t,e,!1,s,r,i,o);return u}function R(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new _("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function P(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(V,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),V(t,e))}function I(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function B(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(I(n),e)P(t,n,i,e,o);else{var a=F(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||j(t,n),i?r.nextTick(L,t,n,a,o):L(t,n,a,o)}}function L(t,e,n,r){n||z(t,e),e.pendingcb--,r(),V(t,e)}function z(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function j(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;var s=0,u=!0;while(n)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,R(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(n){var c=n.chunk,l=n.encoding,f=n.callback,d=e.objectMode?1:c.length;if(R(t,e,!1,d,c,l,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function F(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function $(t,e){t._final((function(n){e.pendingcb--,n&&k(t,n),e.prefinished=!0,t.emit("prefinish"),V(t,e)}))}function H(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick($,t,e)))}function V(t,e){var n=F(e);if(n&&(H(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}function U(t,e,n){e.ending=!0,V(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function q(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}n("3fb5")(O,s),E.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===O&&(t&&t._writableState instanceof E)}})):d=function(t){return t instanceof this},O.prototype.pipe=function(){k(this,new w)},O.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&f(t);return o&&!u.isBuffer(t)&&(t=l(t)),"function"===typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=M),r.ending?T(this,n):(o||A(this,r,t,n))&&(r.pendingcb++,i=N(this,r,o,t,e,n)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||j(this,t))},O.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,n){n(new b("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||U(this,r,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"19fa":function(t,e,n){var r=n("fc5e"),i=n("c901");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(t,e,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;e.f=n("0bad")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"1a2a":function(t,e,n){"use strict";var r=n("3fb5"),i=n("d424"),o=n("6430"),a=n("8707").Buffer,s=n("5a76"),u=n("b5ca"),c=n("69f2"),l=a.alloc(128);function f(t,e){o.call(this,"digest"),"string"===typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;if(this._alg=t,this._key=e,e.length>n){var r="rmd160"===t?new u:c(t);e=r.update(e).digest()}else e.length<n&&(e=a.concat([e,l],n));for(var i=this._ipad=a.allocUnsafe(n),s=this._opad=a.allocUnsafe(n),f=0;f<n;f++)i[f]=54^e[f],s[f]=92^e[f];this._hash="rmd160"===t?new u:c(t),this._hash.update(i)}r(f,o),f.prototype._update=function(t){this._hash.update(t)},f.prototype._final=function(){var t=this._hash.digest(),e="rmd160"===this._alg?new u:c(this._alg);return e.update(this._opad).update(t).digest()},t.exports=function(t,e){return t=t.toLowerCase(),"rmd160"===t||"ripemd160"===t?new f("rmd160",e):"md5"===t?new i(s,e):new f(t,e)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c46":function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n("11dc"),e.createHash=e.Hash=n("98e6"),e.createHmac=e.Hmac=n("1a2a");var r=n("116d"),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=n("a099");e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=n("956a");e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=n("00dc");e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var c=n("b692");e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=n("e1d3");var l=n("6442");e.publicEncrypt=l.publicEncrypt,e.privateEncrypt=l.privateEncrypt,e.publicDecrypt=l.publicDecrypt,e.privateDecrypt=l.privateDecrypt;var f=n("75cc");e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d3b7");function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1e3c":function(t,e,n){var r=n("6430"),i=n("1545"),o=n("3fb5"),a=n("8707").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){r.call(this);var e,n=t.mode.toLowerCase(),i=s[n];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=a.concat([o,o.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,o(u,r),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},"1f38":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:t},i=function(){var t=r();return t&&t.tinymce?t.tinymce:null}}).call(this,n("c8ba"))},"1fb5":function(t,e,n){"use strict";e.byteLength=l,e.toByteArray=d,e.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(f(t,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(h(r));return i.join("")}function m(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(p(t,s,s+a>u?u:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fec":function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5"),o=n("0184"),a=n("4e2b");function s(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function u(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},"206d":function(t,e,n){(function(e,r){var i,o=n("8707").Buffer,a=n("7d2a"),s=n("9f9d"),u=n("e07b"),c=n("8be6"),l=e.crypto&&e.crypto.subtle,f={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 h(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];i=i||o.alloc(8);var n=p(i,i,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=n,n}function p(t,e,n,r,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)})).then((function(t){return o.from(t)}))}function m(t,e){t.then((function(t){r.nextTick((function(){e(null,t)}))}),(function(t){r.nextTick((function(){e(t)}))}))}t.exports=function(t,n,i,o,l,d){"function"===typeof l&&(d=l,l=void 0),l=l||"sha1";var g=f[l.toLowerCase()];if(!g||"function"!==typeof e.Promise)return r.nextTick((function(){var e;try{e=u(t,n,i,o,l)}catch(r){return d(r)}d(null,e)}));if(a(i,o),t=c(t,s,"Password"),n=c(n,s,"Salt"),"function"!==typeof d)throw new Error("No callback provided to pbkdf2");m(h(g).then((function(e){return e?p(t,n,i,o,g):u(t,n,i,o,l)})),d)}}).call(this,n("c8ba"),n("4362"))},"20f6":function(t,e,n){"use strict";const r=e;r.der=n("cfbd"),r.pem=n("8df7")},2137:function(t,e,n){"use strict";var r=n("c3c0"),i=n("da3e");function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},"21bf":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof e&&e.crypto&&(i=e.crypto),!i)try{i=n("1c46")}catch(v){}var o=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},u=s.lib={},c=u.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=u.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)e[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new l.init(e,t)}}),f=s.enc={},d=f.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},h=f.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},m=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=4*a,u=o/s;u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0);var c=u*a,f=t.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=f}return new l.init(n,f)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(u.Hasher=m.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("c8ba"))},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),u=n("2a62"),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,f,d,h,p,m,g,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(e,v,1+b+w),x=function(t){return l&&u(l),new c(!0,t)},C=function(t){return b?(r(t),w?_(t[0],t[1],x):_(t[0],t[1])):w?_(t,x):_(t)};if(y)l=t;else{if(f=s(t),"function"!=typeof f)throw TypeError("Target is not iterable");if(i(f)){for(d=0,h=o(t.length);h>d;d++)if(p=C(t[d]),p&&p instanceof c)return p;return new c(!1)}l=f.call(t)}m=l.next;while(!(g=m.call(l)).done){try{p=C(g.value)}catch(S){throw u(l),S}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},"22ab":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var c=n("b639"),l=c.Buffer,f=n(9),d=f.inspect,h=d&&d.custom||"inspect";function p(t,e,n){l.prototype.copy.call(t,e,n)}t.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return u(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;t-=r.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:h,value:function(t,e){return d(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),u=n("e893"),c=n("94ca");t.exports=function(t,e){var n,l,f,d,h,p,m=t.target,g=t.global,v=t.stat;if(l=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,l)for(f in e){if(h=e[f],t.noTargetGet?(p=i(l,f),d=p&&p.value):d=l[f],n=c(g?f:m+(v?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;u(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},2401:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){},n=function(t){return function(){return t}},r=function(t){return function(e){return!t(e)}},i=n(!1),o=n(!0),a=function(){return s},s=function(){var t=function(t){return t.isNone()},r=function(t){return t()},s=function(t){return t},u={fold:function(t,e){return t()},is:i,isSome:i,isNone:o,getOr:s,getOrThunk:r,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(void 0),or:s,orThunk:r,map:a,each:e,bind:a,exists:i,forall:o,filter:a,equals:t,equals_:t,toArray:function(){return[]},toString:n("none()")};return u}(),u=function(t){var e=n(t),r=function(){return c},a=function(e){return e(t)},c={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:o,isNone:i,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return u(e(t))},each:function(e){e(t)},bind:a,exists:a,forall:a,filter:function(e){return e(t)?c:s},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(i,(function(e){return n(t,e)}))}};return c},c=function(t){return null===t||void 0===t?s:u(t)},l={some:u,none:a,from:c},f=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},d=function(t){return function(e){return f(e)===t}},h=function(t){return function(e){return typeof e===t}},p=d("string"),m=d("array"),g=h("boolean"),v=h("function"),b=h("number"),y=Array.prototype.slice,w=Array.prototype.push,_=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},x=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];e(i,n)}},C=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];e(o,r)&&n.push(o)}return n},S=function(t,e){if(0===t.length)return[];for(var n=e(t[0]),r=[],i=[],o=0,a=t.length;o<a;o++){var s=t[o],u=e(s);u!==n&&(r.push(i),i=[]),n=u,i.push(s)}return 0!==i.length&&r.push(i),r},k=function(t,e,n){return x(t,(function(t){n=e(n,t)})),n},M=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(e(o,r))return l.some(o);if(n(o,r))break}return l.none()},E=function(t,e){return M(t,e,i)},O=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!m(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);w.apply(e,t[n])}return e},T=function(t,e){return O(_(t,e))},A=function(t){var e=y.call(t,0);return e.reverse(),e},D=function(t,e){return e>=0&&e<t.length?l.some(t[e]):l.none()},N=function(t){return D(t,0)},R=function(t){return D(t,t.length-1)},P=function(){return P=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},P.apply(this,arguments)},I=function(t){var e,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,e=t.apply(null,r)),e}},B=function(t,e,r,i){var o=t.isiOS()&&!0===/ipad/i.test(r),a=t.isiOS()&&!o,s=t.isiOS()||t.isAndroid(),u=s||i("(pointer:coarse)"),c=o||!a&&s&&i("(min-device-width:768px)"),l=a||s&&!c,f=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),d=!l&&!c&&!f;return{isiPad:n(o),isiPhone:n(a),isTablet:n(c),isPhone:n(l),isTouch:n(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:n(f),isDesktop:n(d)}},L=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},z=function(t,e){var n=L(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return $(r(1),r(2))},j=function(t,e){var n=String(e).toLowerCase();return 0===t.length?F():z(t,n)},F=function(){return $(0,0)},$=function(t,e){return{major:t,minor:e}},H={nu:$,detect:j,unknown:F},V=function(t,e){var n=String(e).toLowerCase();return E(t,(function(t){return t.search(n)}))},U=function(t,e){return V(t,e).map((function(t){var n=H.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},q=function(t,e){return V(t,e).map((function(t){var n=H.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},W={detectBrowser:U,detectOs:q},K=function(t,e){return-1!==t.indexOf(e)},G=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Y=function(t){return function(e){return K(e,t)}},X=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return K(t,"edge/")&&K(t,"chrome")&&K(t,"safari")&&K(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,G],search:function(t){return K(t,"chrome")&&!K(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return K(t,"msie")||K(t,"trident")}},{name:"Opera",versionRegexes:[G,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Y("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Y("firefox")},{name:"Safari",versionRegexes:[G,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(K(t,"safari")||K(t,"mobile/"))&&K(t,"applewebkit")}}],Z=[{name:"Windows",search:Y("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return K(t,"iphone")||K(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Y("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Y("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Y("linux"),versionRegexes:[]},{name:"Solaris",search:Y("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Y("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Y("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],J={browsers:n(X),oses:n(Z)},Q="Edge",tt="Chrome",et="IE",nt="Opera",rt="Firefox",it="Safari",ot=function(){return at({current:void 0,version:H.unknown()})},at=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Q),isChrome:r(tt),isIE:r(et),isOpera:r(nt),isFirefox:r(rt),isSafari:r(it)}},st={unknown:ot,nu:at,edge:n(Q),chrome:n(tt),ie:n(et),opera:n(nt),firefox:n(rt),safari:n(it)},ut="Windows",ct="iOS",lt="Android",ft="Linux",dt="OSX",ht="Solaris",pt="FreeBSD",mt="ChromeOS",gt=function(){return vt({current:void 0,version:H.unknown()})},vt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(ut),isiOS:r(ct),isAndroid:r(lt),isOSX:r(dt),isLinux:r(ft),isSolaris:r(ht),isFreeBSD:r(pt),isChromeOS:r(mt)}},bt={unknown:gt,nu:vt,windows:n(ut),ios:n(ct),android:n(lt),linux:n(ft),osx:n(dt),solaris:n(ht),freebsd:n(pt),chromeos:n(mt)},yt=function(t,e){var n=J.browsers(),r=J.oses(),i=W.detectBrowser(n,t).fold(st.unknown,st.nu),o=W.detectOs(r,t).fold(bt.unknown,bt.nu),a=B(o,i,t,e);return{browser:i,os:o,deviceType:a}},wt={detect:yt},_t=function(t){return window.matchMedia(t).matches},xt=I((function(){return wt.detect(navigator.userAgent,_t)})),Ct=function(){return xt()},St=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},kt=function(t,e){return St(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Mt=1,Et=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return At(r.childNodes[0])},Ot=function(t,e){var n=e||document,r=n.createElement(t);return At(r)},Tt=function(t,e){var n=e||document,r=n.createTextNode(t);return At(r)},At=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},Dt=function(t,e,n){return l.from(t.dom.elementFromPoint(e,n)).map(At)},Nt={fromHtml:Et,fromTag:Ot,fromText:Tt,fromDom:At,fromPoint:Dt},Rt=function(t,e){var n=t.dom;if(n.nodeType!==Mt)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},Pt=function(t,e){return t.dom===e.dom},It=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},Bt=function(t,e){return kt(t.dom,e.dom)},Lt=function(t,e){return Ct().browser.isIE()?Bt(t,e):It(t,e)},zt=Rt,jt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ft=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),$t=tinymce.util.Tools.resolve("tinymce.util.VK"),Ht=Object.keys,Vt=function(t,e){for(var n=Ht(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];e(a,o)}},Ut=function(t){return function(e,n){t[n]=e}},qt=function(t,e,n,r){var i={};return Vt(t,(function(t,i){(e(t,i)?n:r)(t,i)})),i},Wt=function(t,n){var r={};return qt(t,n,Ut(r),e),r},Kt=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Gt=function(t){return t.dom.nodeType},Yt=function(t){return function(e){return Gt(e)===t}},Xt=Yt(Mt),Zt=function(t,e,n){if(!(p(n)||g(n)||b(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},Jt=function(t,e){var n=t.dom;Vt(e,(function(t,e){Zt(n,e,t)}))},Qt=function(t){return k(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},te=function(t){return l.from(t.dom.parentNode).map(Nt.fromDom)},ee=function(t){return _(t.dom.childNodes,Nt.fromDom)},ne=function(t,e){var n=t.dom.childNodes;return l.from(n[e]).map(Nt.fromDom)},re=function(t){return ne(t,0)},ie=function(t){return ne(t,t.dom.childNodes.length-1)},oe=function(t,e){var n=te(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},ae=function(t,e){t.dom.appendChild(e.dom)},se=function(t,e){x(e,(function(e){oe(t,e)}))},ue=function(t,e){x(e,(function(e){ae(t,e)}))},ce=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},le=function(t,e){return Nt.fromDom(t.dom.cloneNode(e))},fe=function(t){return le(t,!0)},de=function(t,e){var n=Nt.fromTag(e),r=Qt(t);return Jt(n,r),n},he=function(t,e){var n=de(t,e);oe(t,n);var r=ee(t);return ue(n,r),ce(t),n},pe=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),me=tinymce.util.Tools.resolve("tinymce.util.Tools"),ge=function(t){return function(e){return e&&e.nodeName.toLowerCase()===t}},ve=function(t){return function(e){return e&&t.test(e.nodeName)}},be=function(t){return t&&3===t.nodeType},ye=ve(/^(OL|UL|DL)$/),we=ve(/^(OL|UL)$/),_e=ge("ol"),xe=ve(/^(LI|DT|DD)$/),Ce=ve(/^(DT|DD)$/),Se=ve(/^(TH|TD)$/),ke=ge("br"),Me=function(t){return t.parentNode.firstChild===t},Ee=function(t,e){return e&&!!t.schema.getTextBlockElements()[e.nodeName]},Oe=function(t,e){return t&&t.nodeName in e},Te=function(t,e){return!!ke(e)&&(t.isBlock(e.nextSibling)&&!ke(e.previousSibling))},Ae=function(t,e,n){var r=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&r},De=function(t,e){return t.isChildOf(e,t.getRoot())},Ne=function(t){return t.getParam("lists_indent_on_tab",!0)},Re=function(t){var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},Pe=function(t){return t.getParam("forced_root_block_attrs",{})},Ie=function(t,e){var n,r,i,o=t.dom,a=t.schema.getBlockElements(),s=o.createFragment(),u=Re(t);if(u&&(r=o.create(u),r.tagName===u.toUpperCase()&&o.setAttribs(r,Pe(t)),Oe(e.firstChild,a)||s.appendChild(r)),e)while(n=e.firstChild){var c=n.nodeName;i||"SPAN"===c&&"bookmark"===n.getAttribute("data-mce-type")||(i=!0),Oe(n,a)?(s.appendChild(n),r=null):u?(r||(r=o.create(u),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return u?i||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):s.appendChild(o.create("br")),s},Be=pe.DOM,Le=function(t,e,n){var r=function(t){me.each(i,(function(e){t.parentNode.insertBefore(e,n.parentNode)})),Be.remove(t)},i=Be.select('span[data-mce-type="bookmark"]',e),o=Ie(t,n),a=Be.createRng();a.setStartAfter(n),a.setEndAfter(e);for(var s=a.extractContents(),u=s.firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&t.dom.isEmpty(u)){Be.remove(u);break}t.dom.isEmpty(s)||Be.insertAfter(s,e),Be.insertAfter(o,e),Ae(t.dom,n.parentNode)&&r(n.parentNode),Be.remove(n),Ae(t.dom,e)&&Be.remove(e)},ze=function(t,e){zt(e,"dd")?he(e,"dt"):zt(e,"dt")&&te(e).each((function(n){return Le(t,n.dom,e.dom)}))},je=function(t){zt(t,"dt")&&he(t,"dd")},Fe=function(t,e,n){x(n,"Indent"===e?je:function(e){return ze(t,e)})},$e=function(t,e){if(be(t))return{container:t,offset:e};var n=jt.getNode(t,e);return be(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&be(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&be(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},He=function(t){var e=t.cloneRange(),n=$e(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);var r=$e(t.endContainer,t.endOffset);return e.setEnd(r.container,r.offset),e},Ve=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),Ue=function(t,e){var n=e||t.selection.getStart(!0);return t.dom.getParent(n,"OL,UL,DL",Ze(t,n))},qe=function(t,e){return t&&1===e.length&&e[0]===t},We=function(t){return me.grep(t.querySelectorAll("ol,ul,dl"),(function(t){return ye(t)}))},Ke=function(t){var e=Ue(t),n=t.selection.getSelectedBlocks();return qe(e,n)?We(e):me.grep(n,(function(t){return ye(t)&&e!==t}))},Ge=function(t,e){var n=me.map(e,(function(e){var n=t.dom.getParent(e,"li,dd,dt",Ze(t,e));return n||e}));return Ve.unique(n)},Ye=function(t){var e=t.selection.getSelectedBlocks();return me.grep(Ge(t,e),(function(t){return xe(t)}))},Xe=function(t){return C(Ye(t),Ce)},Ze=function(t,e){var n=t.dom.getParents(e,"TD,TH"),r=n.length>0?n[0]:t.getBody();return r},Je=function(t,e){var n=t.dom.getParents(e,"ol,ul",Ze(t,e));return R(n)},Qe=function(t){var e=Je(t,t.selection.getStart()),n=C(t.selection.getSelectedBlocks(),we);return e.toArray().concat(n)},tn=function(t){var e=Qe(t);return en(t,e)},en=function(t,e){var n=_(e,(function(e){return Je(t,e).getOr(e)}));return Ve.unique(n)},nn=function(t,e,n){return t.isSome()&&e.isSome()?l.some(n(t.getOrDie(),e.getOrDie())):l.none()},rn=function(t,e){var n=e||document,r=n.createDocumentFragment();return x(t,(function(t){r.appendChild(t.dom)})),Nt.fromDom(r)},on=function(t,e,n){return t.fire("ListMutation",{action:e,element:n})},an=function(t){return void 0!==t.style&&v(t.style.getPropertyValue)},sn=function(t,e,n){if(!p(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);an(t)&&t.style.setProperty(e,n)},un=function(t,e,n){var r=t.dom;sn(r,e,n)},cn=function(t,e){ae(t.item,e.list)},ln=function(t){for(var e=1;e<t.length;e++)cn(t[e-1],t[e])},fn=function(t,e){nn(R(t),N(e),cn)},dn=function(t,e){var n={list:Nt.fromTag(e,t),item:Nt.fromTag("li",t)};return ae(n.list,n.item),n},hn=function(t,e,n){for(var r=[],i=0;i<n;i++)r.push(dn(t,e.listType));return r},pn=function(t,e){for(var n=0;n<t.length-1;n++)un(t[n].item,"list-style-type","none");R(t).each((function(t){Jt(t.list,e.listAttributes),Jt(t.item,e.itemAttributes),ue(t.item,e.content)}))},mn=function(t,e){Kt(t.list)!==e.listType&&(t.list=he(t.list,e.listType)),Jt(t.list,e.listAttributes)},gn=function(t,e,n){var r=Nt.fromTag("li",t);return Jt(r,e),ue(r,n),r},vn=function(t,e){ae(t.list,e),t.item=e},bn=function(t,e,n){var r=e.slice(0,n.depth);return R(r).each((function(e){var r=gn(t,n.itemAttributes,n.content);vn(e,r),mn(e,n)})),r},yn=function(t,e,n){var r=hn(t,n,n.depth-e.length);return ln(r),pn(r,n),fn(e,r),e.concat(r)},wn=function(t,e){var n=k(e,(function(e,n){return n.depth>e.length?yn(t,e,n):bn(t,e,n)}),[]);return N(n).map((function(t){return t.list}))},_n=function(t){return zt(t,"OL,UL")},xn=function(t){return re(t).map(_n).getOr(!1)},Cn=function(t){return ie(t).map(_n).getOr(!1)},Sn=function(t){return t.depth>0},kn=function(t){return t.isSelected},Mn=function(t){var e=ee(t),n=Cn(t)?e.slice(0,-1):e;return _(n,fe)},En=function(t,e,n){return te(t).filter(Xt).map((function(r){return{depth:e,dirty:!1,isSelected:n,content:Mn(t),itemAttributes:Qt(t),listAttributes:Qt(r),listType:Kt(r)}}))},On=function(t,e){switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0},Tn=function(t,e){t.listType=e.listType,t.listAttributes=P({},e.listAttributes)},An=function(t){t.listAttributes=Wt(t.listAttributes,(function(t,e){return"start"!==e}))},Dn=function(t,e){var n=t[e].depth,r=function(t){return t.depth===n&&!t.dirty},i=function(t){return t.depth<n};return M(A(t.slice(0,e)),r,i).orThunk((function(){return M(t.slice(e+1),r,i)}))},Nn=function(t){return x(t,(function(e,n){Dn(t,n).fold((function(){e.dirty&&An(e)}),(function(t){return Tn(e,t)}))})),t},Rn=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},Pn=function(t,e,n,r){return re(r).filter(_n).fold((function(){e.each((function(t){Pt(t.start,r)&&n.set(!0)}));var i=En(r,t,n.get());e.each((function(t){Pt(t.end,r)&&n.set(!1)}));var o=ie(r).filter(_n).map((function(r){return In(t,e,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return In(t,e,n,r)}))},In=function(t,e,n,r){return T(ee(r),(function(r){var i=_n(r)?In:Pn,o=t+1;return i(o,e,n,r)}))},Bn=function(t,e){var n=Rn(!1),r=0;return _(t,(function(t){return{sourceList:t,entries:In(r,e,n,t)}}))},Ln=function(t,e){var n=Nn(e);return _(n,(function(e){var n=rn(e.content);return Nt.fromDom(Ie(t,n.dom))}))},zn=function(t,e){var n=Nn(e);return wn(t.contentDocument,n).toArray()},jn=function(t,e){return T(S(e,Sn),(function(e){var n=N(e).map(Sn).getOr(!1);return n?zn(t,e):Ln(t,e)}))},Fn=function(t,e){x(C(t,kn),(function(t){return On(e,t)}))},$n=function(t){var e=_(Ye(t),Nt.fromDom);return nn(E(e,r(xn)),E(A(e),r(xn)),(function(t,e){return{start:t,end:e}}))},Hn=function(t,e,n){var r=Bn(e,$n(t));x(r,(function(e){Fn(e.entries,n);var r=jn(t,e.entries);x(r,(function(e){on(t,"Indent"===n?"IndentList":"OutdentList",e.dom)})),se(e.sourceList,r),ce(e.sourceList)}))},Vn=function(t,e){var n=_(tn(t),Nt.fromDom),r=_(Xe(t),Nt.fromDom),i=!1;if(n.length||r.length){var o=t.selection.getBookmark();Hn(t,n,e),Fe(t,e,r),t.selection.moveToBookmark(o),t.selection.setRng(He(t.selection.getRng())),t.nodeChanged(),i=!0}return i},Un=function(t){return Vn(t,"Indent")},qn=function(t){return Vn(t,"Outdent")},Wn=function(t){return Vn(t,"Flatten")},Kn=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),Gn=pe.DOM,Yn=function(t){var e={},n=function(n){var r,i,o;i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],1===i.nodeType&&(r=Gn.create("span",{"data-mce-type":"bookmark"}),i.hasChildNodes()?(o=Math.min(o,i.childNodes.length-1),n?i.insertBefore(r,i.childNodes[o]):Gn.insertAfter(r,i.childNodes[o])):i.appendChild(r),i=r,o=0),e[n?"startContainer":"endContainer"]=i,e[n?"startOffset":"endOffset"]=o};return n(!0),t.collapsed||n(),e},Xn=function(t){function e(e){var n,r,i,o=function(t){var e=t.parentNode.firstChild,n=0;while(e){if(e===t)return n;1===e.nodeType&&"bookmark"===e.getAttribute("data-mce-type")||n++,e=e.nextSibling}return-1};n=i=t[e?"startContainer":"endContainer"],r=t[e?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=o(n),n=n.parentNode,Gn.remove(i),!n.hasChildNodes()&&Gn.isBlock(n)&&n.appendChild(Gn.create("br"))),t[e?"startContainer":"endContainer"]=n,t[e?"startOffset":"endOffset"]=r)}e(!0),e();var n=Gn.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),He(n)},Zn=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Jn=function(t){return/\btox\-/.test(t.className)},Qn=function(t,e,n){var r=function(t){var r=M(t.parents,ye,Se).filter((function(t){return t.nodeName===e&&!Jn(t)})).isSome();n(r)},i=t.dom.getParents(t.selection.getNode());return r({parents:i}),t.on("NodeChange",r),function(){return t.off("NodeChange",r)}},tr=function(t,e,n){var r=n["list-style-type"]?n["list-style-type"]:null;t.setStyle(e,"list-style-type",r)},er=function(t,e){me.each(e,(function(e,n){t.setAttribute(n,e)}))},nr=function(t,e,n){er(e,n["list-attributes"]),me.each(t.select("li",e),(function(t){er(t,n["list-item-attributes"])}))},rr=function(t,e,n){tr(t,e,n),nr(t,e,n)},ir=function(t,e,n){me.each(n,(function(n){var r;return t.setStyle(e,(r={},r[n]="",r))}))},or=function(t,e,n,r){var i=e[n?"startContainer":"endContainer"],o=e[n?"startOffset":"endOffset"];1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&ke(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(Ee(t,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},ar=function(t,e,n){for(var r,i=[],o=t.dom,a=or(t,e,!0,n),s=or(t,e,!1,n),u=[],c=a;c;c=c.nextSibling)if(u.push(c),c===s)break;return me.each(u,(function(e){if(Ee(t,e))return i.push(e),void(r=null);if(o.isBlock(e)||ke(e))return ke(e)&&o.remove(e),void(r=null);var a=e.nextSibling;Kn.isBookmarkNode(e)&&(Ee(t,a)||!a&&e.parentNode===n)?r=null:(r||(r=o.create("p"),e.parentNode.insertBefore(r,e),i.push(r)),r.appendChild(e))})),i},sr=function(t,e,n){var r=t.getStyle(e,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},ur=function(t,e,n){void 0===n&&(n={});var r=t.selection.getRng(),i="LI",o=Ze(t,t.selection.getStart(!0)),a=t.dom;if("false"!==a.getContentEditable(t.selection.getNode())){e=e.toUpperCase(),"DL"===e&&(i="DT");var s=Yn(r);me.each(ar(t,r,o),(function(r){var o,s=r.previousSibling;s&&ye(s)&&s.nodeName===e&&sr(a,s,n)?(o=s,r=a.rename(r,i),s.appendChild(r)):(o=a.create(e),r.parentNode.insertBefore(o,r),o.appendChild(r),r=a.rename(r,i)),ir(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),rr(a,o,n),hr(t.dom,o)})),t.selection.setRng(Xn(s))}},cr=function(t,e){return t&&e&&ye(t)&&t.nodeName===e.nodeName},lr=function(t,e,n){var r=t.getStyle(e,"list-style-type",!0),i=t.getStyle(n,"list-style-type",!0);return r===i},fr=function(t,e){return t.className===e.className},dr=function(t,e,n){return cr(e,n)&&lr(t,e,n)&&fr(e,n)},hr=function(t,e){var n,r;if(n=e.nextSibling,dr(t,e,n)){while(r=n.firstChild)e.appendChild(r);t.remove(n)}if(n=e.previousSibling,dr(t,e,n)){while(r=n.lastChild)e.insertBefore(r,e.firstChild);t.remove(n)}},pr=function(t,e,n,r){if(e.nodeName!==n){var i=t.dom.rename(e,n);rr(t.dom,i,r),on(t,Zn(n),i)}else rr(t.dom,e,r),on(t,Zn(n),e)},mr=function(t,e,n,r,i){if(e.nodeName!==r||gr(i)){var o=Yn(t.selection.getRng(!0));me.each([e].concat(n),(function(e){pr(t,e,r,i)})),t.selection.setRng(Xn(o))}else Wn(t)},gr=function(t){return"list-style-type"in t},vr=function(t,e,n,r){if(e!==t.getBody())if(e)if(e.nodeName!==n||gr(r)||Jn(e)){var i=Yn(t.selection.getRng(!0));rr(t.dom,e,r);var o=t.dom.rename(e,n);hr(t.dom,o),t.selection.setRng(Xn(i)),on(t,Zn(n),o)}else Wn(t);else ur(t,n,r),on(t,Zn(n),e)},br=function(t,e,n){var r=Ue(t),i=Ke(t);n=n||{},r&&i.length>0?mr(t,r,i,e,n):vr(t,r,e,n)},yr=pe.DOM,wr=function(t,e){var n,r=e.parentNode;"LI"===r.nodeName&&r.firstChild===e&&(n=r.previousSibling,n&&"LI"===n.nodeName?(n.appendChild(e),Ae(t,r)&&yr.remove(r)):yr.setStyle(r,"listStyleType","none")),ye(r)&&(n=r.previousSibling,n&&"LI"===n.nodeName&&n.appendChild(e))},_r=function(t,e){me.each(me.grep(t.select("ol,ul",e)),(function(e){wr(t,e)}))},xr=function(t,e,n,r){var i=e.startContainer,o=e.startOffset;if(be(i)&&(n?o<i.data.length:o>0))return i;var a=t.schema.getNonEmptyElements();1===i.nodeType&&(i=jt.getNode(i,o));var s=new Ft(i,r);n&&Te(t.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(be(i)&&i.data.length>0)return i}},Cr=function(t,e){var n=e.childNodes;return 1===n.length&&!ye(n[0])&&t.isBlock(n[0])},Sr=function(t,e){Cr(t,e)&&t.remove(e.firstChild,!0)},kr=function(t,e,n){var r,i=Cr(t,n)?n.firstChild:n;if(Sr(t,e),!Ae(t,e,!0))while(r=e.firstChild)i.appendChild(r)},Mr=function(t,e,n){var r,i=e.parentNode;if(De(t,e)&&De(t,n)){ye(n.lastChild)&&(r=n.lastChild),i===n.lastChild&&ke(i.previousSibling)&&t.remove(i.previousSibling);var o=n.lastChild;o&&ke(o)&&e.hasChildNodes()&&t.remove(o),Ae(t,n,!0)&&t.$(n).empty(),kr(t,e,n),r&&n.appendChild(r);var a=Lt(Nt.fromDom(n),Nt.fromDom(e)),s=a?t.getParents(e,ye,n):[];t.remove(e),x(s,(function(e){Ae(t,e)&&e!==t.getRoot()&&t.remove(e)}))}},Er=function(t,e,n){t.dom.$(n).empty(),Mr(t.dom,e,n),t.selection.setCursorLocation(n)},Or=function(t,e,n,r){var i=t.dom;if(i.isEmpty(r))Er(t,n,r);else{var o=Yn(e);Mr(i,n,r),t.selection.setRng(Xn(o))}},Tr=function(t,e,n,r){var i=Yn(e);Mr(t.dom,n,r);var o=Xn(i);t.selection.setRng(o)},Ar=function(t,e){var n=t.dom,r=t.selection,i=r.getStart(),o=Ze(t,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===t.getBody()&&Ae(n,s))return!0;var u=He(r.getRng()),c=n.getParent(xr(t,u,e,o),"LI",o);if(c&&c!==a)return t.undoManager.transact((function(){e?Or(t,u,c,a):Me(a)?qn(t):Tr(t,u,a,c)})),!0;if(!c&&!e&&0===u.startOffset&&0===u.endOffset)return t.undoManager.transact((function(){Wn(t)})),!0}return!1},Dr=function(t,e,n){var r=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),r&&t.isEmpty(r)&&t.remove(r)},Nr=function(t,e){var n=t.dom,r=t.selection.getStart(),i=Ze(t,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=He(t.selection.getRng()),s=n.getParent(xr(t,a,e,i),"LI",i);if(s)return t.undoManager.transact((function(){Dr(n,o,i),hr(n,s.parentNode),t.selection.select(s,!0),t.selection.collapse(e)})),!0}return!1},Rr=function(t,e){return Ar(t,e)||Nr(t,e)},Pr=function(t){var e=t.selection.getStart(),n=Ze(t,e),r=t.dom.getParent(e,"LI,DT,DD",n);return!!(r||Ye(t).length>0)&&(t.undoManager.transact((function(){t.execCommand("Delete"),_r(t.dom,t.getBody())})),!0)},Ir=function(t,e){return t.selection.isCollapsed()?Rr(t,e):Pr(t)},Br=function(t){t.on("keydown",(function(e){e.keyCode===$t.BACKSPACE?Ir(t,!1)&&e.preventDefault():e.keyCode===$t.DELETE&&Ir(t,!0)&&e.preventDefault()}))},Lr=function(t){return{backspaceDelete:function(e){Ir(t,e)}}},zr=function(t){var e=t.dom,n=Ue(t);_e(n)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:e.getAttrib(n,"start")||"1"},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(n){var r=n.getData();t.undoManager.transact((function(){e.setAttrib(Ue(t),"start","1"===r.start?"":r.start)})),n.close()}})},jr=function(t,e){return function(){var n=t.dom.getParent(t.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===e}},Fr=function(t){t.on("BeforeExecCommand",(function(e){var n=e.command.toLowerCase();"indent"===n?Un(t):"outdent"===n&&qn(t)})),t.addCommand("InsertUnorderedList",(function(e,n){br(t,"UL",n)})),t.addCommand("InsertOrderedList",(function(e,n){br(t,"OL",n)})),t.addCommand("InsertDefinitionList",(function(e,n){br(t,"DL",n)})),t.addCommand("RemoveList",(function(){Wn(t)})),t.addCommand("mceListProps",(function(){zr(t)})),t.addQueryStateHandler("InsertUnorderedList",jr(t,"UL")),t.addQueryStateHandler("InsertOrderedList",jr(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",jr(t,"DL"))},$r=function(t){t.on("keydown",(function(e){e.keyCode!==$t.TAB||$t.metaKeyPressed(e)||t.undoManager.transact((function(){(e.shiftKey?qn(t):Un(t))&&e.preventDefault()}))}))},Hr=function(t){Ne(t)&&$r(t),Br(t)},Vr=function(t){var e=function(e){return function(){return t.execCommand(e)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:function(e){return Qn(t,"OL",e.setActive)}}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:function(e){return Qn(t,"UL",e.setActive)}}))},Ur=function(t){var e={text:"List properties...",icon:"ordered-list",onAction:function(){return zr(t)},onSetup:function(e){return Qn(t,"OL",(function(t){return e.setDisabled(!t)}))}};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:function(e){var n=Ue(t,e);return _e(n)?["listprops"]:[]}})};function qr(){t.add("lists",(function(t){return!1===t.hasPlugin("rtc",!0)&&(Hr(t),Fr(t)),Vr(t),Ur(t),Lr(t)}))}qr()})()},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var u={adapter:s(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n("4362"))},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",u=RegExp.prototype,c=u[s],l=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(l||f)&&r(RegExp.prototype,s,(function(){var t=i(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in u)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"262e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("131a");function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},"26dd":function(t,e,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"27bf":function(t,e,n){"use strict";t.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);r.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"===typeof this._flush?this._flush((function(e,n){u(t,e,n)})):u(this,null,null)}function u(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=n("3fb5"),i.inherits(a,r),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},2801:function(t){t.exports=JSON.parse('{"_from":"elliptic@^6.5.3","_id":"elliptic@6.5.3","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"elliptic@^6.5.3","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.5.3","saveSpec":null,"fetchSpec":"^6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_shasum":"cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6","_spec":"elliptic@^6.5.3","_where":"E:\\\\work\\\\gypsy-crm-frontend-admin\\\\node_modules\\\\browserify-sign","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"bundleDependencies":false,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"deprecated":false,"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"299c":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=131)}({131:function(t,e,n){"use strict";n.r(e);var r=n(5),i=n.n(r),o=n(17),a=n.n(o),s=n(2),u=n(3),c=n(7),l=n.n(c),f={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(u["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new l.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return t.handleClosePopper()})))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){t.value&&t.updatePopper()}))},watch:{focusing:function(t){t?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){t.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)t[n]&&t[n].tag&&(e=t[n]);return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(s["off"])(t,"mouseenter",this.show),Object(s["off"])(t,"mouseleave",this.hide),Object(s["off"])(t,"focus",this.handleFocus),Object(s["off"])(t,"blur",this.handleBlur),Object(s["off"])(t,"click",this.removeFocusing))},install:function(t){t.component(f.name,f)}};e["default"]=f},17:function(t,e){t.exports=n("0e15")},2:function(t,e){t.exports=n("5924")},3:function(t,e){t.exports=n("8122")},5:function(t,e){t.exports=n("e974")},7:function(t,e){t.exports=n("2b0e")}})},"2a5e":function(t,e,n){"use strict";e.__esModule=!0,e.default=a;var r=n("2b0e"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!i.default.prototype.$isServer)if(e){var n=[],r=e.offsetParent;while(r&&t!==r&&t.contains(r))n.push(r),r=r.offsetParent;var o=e.offsetTop+n.reduce((function(t,e){return t+e.offsetTop}),0),a=o+e.offsetHeight,s=t.scrollTop,u=s+t.clientHeight;o<s?t.scrollTop=o:a>u&&(t.scrollTop=a-t.clientHeight)}else t.scrollTop=0}},"2a62":function(t,e,n){var r=n("825a");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}},"2a66":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2aee":function(t,e,n){var r=n("4111"),i=n("d70e"),o=n("4dd0"),a=n("fda6"),s=n("a099"),u=n("8707").Buffer;function c(t){var e;"object"!==typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=u.from(t));var n,i,a=o(t,e),s=a.tag,c=a.data;switch(s){case"CERTIFICATE":i=r.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=r.PublicKey.decode(c,"der")),n=i.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=r.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":c=r.EncryptedPrivateKey.decode(c,"der"),c=l(c,e);case"PRIVATE KEY":switch(i=r.PrivateKey.decode(c,"der"),n=i.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:r.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=r.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return c=r.ECPrivateKey.decode(c,"der"),{curve:c.parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+s)}}function l(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,l=t.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(e,n,r,f,"sha1"),h=a.createDecipheriv(o,d,c),p=[];return p.push(h.update(l)),p.push(h.final()),u.concat(p)}t.exports=c,c.signature=r.signature},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
- /*!
- * Vue.js v2.6.12
- * (c) 2014-2020 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function l(t){return"[object Object]"===c.call(t)}function f(t){return"[object RegExp]"===c.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function w(t,e){return y.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,C=_((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),S=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,M=_((function(t){return t.replace(k,"-$1").toLowerCase()}));function E(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function O(t,e){return t.bind(e)}var T=Function.prototype.bind?O:E;function A(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function D(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n<t.length;n++)t[n]&&D(e,t[n]);return e}function R(t,e,n){}var P=function(t,e,n){return!1},I=function(t){return t};function B(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return B(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return B(t[n],e[n])}))}catch(c){return!1}}function L(t,e){for(var n=0;n<t.length;n++)if(B(t[n],e))return n;return-1}function z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var j="data-server-rendered",F=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:R,parsePlatformTagName:I,mustUseProp:P,async:!0,_lifecycleHooks:$},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function q(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+V.source+".$_\\d]");function K(t){if(!W.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var G,Y="__proto__"in{},X="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=X&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(X)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Ca){}var ut=function(){return void 0===G&&(G=!X&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),G},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,dt="undefined"!==typeof Symbol&<(Symbol)&&"undefined"!==typeof Reflect&<(Reflect.ownKeys);ft="undefined"!==typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=R,pt=0,mt=function(){this.id=pt++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){b(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},mt.target=null;var gt=[];function vt(t){gt.push(t),mt.target=t}function bt(){gt.pop(),mt.target=gt[gt.length-1]}var yt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},wt={child:{configurable:!0}};wt.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,wt);var _t=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function xt(t){return new yt(void 0,void 0,void 0,String(t))}function Ct(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var St=Array.prototype,kt=Object.create(St),Mt=["push","pop","shift","unshift","splice","sort","reverse"];Mt.forEach((function(t){var e=St[t];q(kt,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Et=Object.getOwnPropertyNames(kt),Ot=!0;function Tt(t){Ot=t}var At=function(t){this.value=t,this.dep=new mt,this.vmCount=0,q(t,"__ob__",this),Array.isArray(t)?(Y?Dt(t,kt):Nt(t,kt,Et),this.observeArray(t)):this.walk(t)};function Dt(t,e){t.__proto__=e}function Nt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];q(t,o,e[o])}}function Rt(t,e){var n;if(u(t)&&!(t instanceof yt))return w(t,"__ob__")&&t.__ob__ instanceof At?n=t.__ob__:Ot&&!ut()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new At(t)),e&&n&&n.vmCount++,n}function Pt(t,e,n,r,i){var o=new mt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=t[e]);var c=!i&&Rt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return mt.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Lt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!u||(u?u.call(t,e):n=e,c=!i&&Rt(e),o.notify())}})}}function It(t,e,n){if(Array.isArray(t)&&d(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Pt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Bt(t,e){if(Array.isArray(t)&&d(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||w(t,e)&&(delete t[e],n&&n.dep.notify())}}function Lt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Lt(e)}At.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Pt(t,e[n])},At.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Rt(t[e])};var zt=H.optionMergeStrategies;function jt(t,e){if(!e)return t;for(var n,r,i,o=dt?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],w(t,n)?r!==i&&l(r)&&l(i)&&jt(r,i):It(t,n,i));return t}function Ft(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?jt(r,i):i}:e?t?function(){return jt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function $t(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Ht(n):n}function Ht(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Vt(t,e,n,r){var i=Object.create(t||null);return e?D(i,e):i}zt.data=function(t,e,n){return n?Ft(t,e,n):e&&"function"!==typeof e?t:Ft(t,e)},$.forEach((function(t){zt[t]=$t})),F.forEach((function(t){zt[t+"s"]=Vt})),zt.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in D(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},zt.props=zt.methods=zt.inject=zt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return D(i,t),e&&D(i,e),i},zt.provide=Ft;var Ut=function(t,e){return void 0===e?t:e};function qt(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=C(i),a[o]={type:null})}else if(l(n))for(var s in n)i=n[s],o=C(s),a[o]=l(i)?i:{type:i};else 0;t.props=a}}function Wt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?D({from:o},a):{from:a}}else 0}}function Kt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Gt(t,e,n){if("function"===typeof e&&(e=e.options),qt(e,n),Wt(e,n),Kt(e),!e._base&&(e.extends&&(t=Gt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Gt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)w(t,o)||s(o);function s(r){var i=zt[r]||Ut;a[r]=i(t[r],e[r],n,r)}return a}function Yt(t,e,n,r){if("string"===typeof n){var i=t[e];if(w(i,n))return i[n];var o=C(n);if(w(i,o))return i[o];var a=S(o);if(w(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Xt(t,e,n,r){var i=e[t],o=!w(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===M(t)){var u=te(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=Zt(r,i,t);var c=Ot;Tt(!0),Rt(a),Tt(c)}return a}function Zt(t,e,n){if(w(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){vt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Ca){re(Ca,r,"errorCaptured hook")}}}re(t,e,n)}finally{bt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(t){return ee(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Ca){ee(Ca,r,i)}return o}function re(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(Ca){Ca!==t&&ie(Ca,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!X&&!Z||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],ue=!1;function ce(){ue=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&<(Promise)){var le=Promise.resolve();oe=function(){le.then(ce),rt&&setTimeout(R)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!lt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&<(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var fe=1,de=new MutationObserver(ce),he=document.createTextNode(String(fe));de.observe(he,{characterData:!0}),oe=function(){fe=(fe+1)%2,he.data=String(fe)},ae=!0}function pe(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(Ca){ee(Ca,e,"nextTick")}else n&&n(e)})),ue||(ue=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var me=new ft;function ge(t){ve(t,me),me.clear()}function ve(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!u(t)||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ve(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ve(t[r[n]],e)}}}var be=_((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function ye(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function we(t,e,n,i,a,s){var u,c,l,f;for(u in t)c=t[u],l=e[u],f=be(u),r(c)||(r(l)?(r(c.fns)&&(c=t[u]=ye(c,s)),o(f.once)&&(c=t[u]=a(f.name,c,f.capture)),n(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,t[u]=l));for(u in e)r(t[u])&&(f=be(u),i(f.name,e[u],f.capture))}function _e(t,e,n){var a;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function u(){n.apply(this,arguments),b(a.fns,u)}r(s)?a=ye([u]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(u)):a=ye([s,u]),a.merged=!0,t[e]=a}function xe(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,u=t.props;if(i(s)||i(u))for(var c in o){var l=M(c);Ce(a,u,c,l,!0)||Ce(a,s,c,l,!1)}return a}}function Ce(t,e,n,r,o){if(i(e)){if(w(e,n))return t[n]=e[n],o||delete e[n],!0;if(w(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Se(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function ke(t){return s(t)?[xt(t)]:Array.isArray(t)?Ee(t):void 0}function Me(t){return i(t)&&i(t.text)&&a(t.isComment)}function Ee(t,e){var n,a,u,c,l=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(u=l.length-1,c=l[u],Array.isArray(a)?a.length>0&&(a=Ee(a,(e||"")+"_"+n),Me(a[0])&&Me(c)&&(l[u]=xt(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Me(c)?l[u]=xt(c.text+a):""!==a&&l.push(xt(a)):Me(a)&&Me(c)?l[u]=xt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Oe(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Ae(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Pt(t,n,e[n])})),Tt(!0))}function Ae(t,e){if(t){for(var n=Object.create(null),r=dt?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var u=t[o].default;n[o]="function"===typeof u?u.call(e):u}else 0}}return n}}function De(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in n)n[c].every(Ne)&&delete n[c];return n}function Ne(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Re(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=Pe(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=Ie(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function Pe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ke(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Ie(t,e){return function(){return t[e]}}function Be(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(u(t))if(dt&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),l=c.next();while(!l.done)n.push(e(l.value,n.length)),l=c.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function Le(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function ze(t){return Yt(this.$options,"filters",t,!0)||I}function je(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Fe(t,e,n,r,i){var o=H.keyCodes[e]||n;return i&&r&&!H.keyCodes[e]?je(i,r):o?je(o,t):r?M(r)!==e:void 0}function $e(t,e,n,r,i){if(n)if(u(n)){var o;Array.isArray(n)&&(n=N(n));var a=function(a){if("class"===a||"style"===a||v(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||H.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=C(a),c=M(a);if(!(u in o)&&!(c in o)&&(o[a]=n[a],i)){var l=t.on||(t.on={});l["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function He(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ue(r,"__static__"+t,!1)),r}function Ve(t,e,n){return Ue(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ue(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&qe(t[r],e+"_"+r,n);else qe(t,e,n)}function qe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function We(t,e){if(e)if(l(e)){var n=t.on=t.on?D({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ke(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ke(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ge(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ye(t,e){return"string"===typeof t?e+t:t}function Xe(t){t._o=Ve,t._n=m,t._s=p,t._l=Be,t._t=Le,t._q=B,t._i=L,t._m=He,t._f=ze,t._k=Fe,t._b=$e,t._v=xt,t._e=_t,t._u=Ke,t._g=We,t._d=Ge,t._p=Ye}function Ze(t,e,r,i,a){var s,u=this,c=a.options;w(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var l=o(c._compiled),f=!l;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Ae(c.inject,i),this.slots=function(){return u.$slots||Re(t.scopedSlots,u.$slots=De(r,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Re(t.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Re(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var o=fn(s,t,e,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return fn(s,t,e,n,r,f)}}function Je(t,e,r,o,a){var s=t.options,u={},c=s.props;if(i(c))for(var l in c)u[l]=Xt(l,c,e||n);else i(r.attrs)&&tn(u,r.attrs),i(r.props)&&tn(u,r.props);var f=new Ze(r,u,a,o,t),d=s.render.call(null,f._c,f);if(d instanceof yt)return Qe(d,r,f.parent,s,f);if(Array.isArray(d)){for(var h=ke(d)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=Qe(h[m],r,f.parent,s,f);return p}}function Qe(t,e,n,r,i){var o=Ct(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[C(n)]=e[n]}Xe(Ze.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,An);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;In(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,jn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):Ln(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?zn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"===typeof t){var l;if(r(t.cid)&&(l=t,t=_n(l,c),void 0===t))return wn(l,e,n,a,s);e=e||{},_r(t),i(e.model)&&un(t.options,e);var f=xe(e,t,s);if(o(t.options.functional))return Je(t,f,e,n,a);var d=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var h=e.slot;e={},h&&(e.slot=h)}an(e);var p=t.options.name||s,m=new yt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:d,tag:s,children:a},l);return m}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function un(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var cn=1,ln=2;function fn(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=ln),dn(t,e,n,r,i)}function dn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return _t();if(i(n)&&i(n.is)&&(e=n.is),!e)return _t();var a,s,u;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===ln?r=ke(r):o===cn&&(r=Se(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),a=H.isReservedTag(e)?new yt(H.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(u=Yt(t.$options,"components",e))?new yt(e,n,r,void 0,void 0,t):rn(u,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&hn(a,s),i(n)&&pn(n),a):_t()}function hn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var u=t.children[a];i(u.tag)&&(r(u.ns)||o(n)&&"svg"!==u.tag)&&hn(u,e,n)}}function pn(t){u(t.style)&&ge(t.style),u(t.class)&&ge(t.class)}function mn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=De(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return fn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return fn(t,e,n,r,i,!0)};var o=r&&r.data;Pt(t,"$attrs",o&&o.attrs||n,null,!0),Pt(t,"$listeners",e._parentListeners||n,null,!0)}var gn,vn=null;function bn(t){Xe(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Re(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{vn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Ca){ee(Ca,e,"render"),t=e._vnode}finally{vn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=_t()),t.parent=i,t}}function yn(t,e){return(t.__esModule||dt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function wn(t,e,n,r,i){var o=_t();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function _n(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=vn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return b(a,n)}));var f=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},d=z((function(n){t.resolved=yn(n,e),s?a.length=0:f(!0)})),p=z((function(e){i(t.errorComp)&&(t.error=!0,f(!0))})),m=t(d,p);return u(m)&&(h(m)?r(t.resolved)&&m.then(d,p):h(m.component)&&(m.component.then(d,p),i(m.error)&&(t.errorComp=yn(m.error,e)),i(m.loading)&&(t.loadingComp=yn(m.loading,e),0===m.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,f(!1))}),m.delay||200)),i(m.timeout)&&(l=setTimeout((function(){l=null,r(t.resolved)&&p(null)}),m.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function xn(t){return t.isComment&&t.asyncFactory}function Cn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||xn(n)))return n}}function Sn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&On(t,e)}function kn(t,e){gn.$on(t,e)}function Mn(t,e){gn.$off(t,e)}function En(t,e){var n=gn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function On(t,e,n){gn=t,we(e,n||{},kn,Mn,En,t),gn=void 0}function Tn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var An=null;function Dn(t){var e=An;return An=t,function(){An=e}}function Nn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Rn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Dn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){jn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),jn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Pn(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=_t),jn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,R,{before:function(){t._isMounted&&!t._isDestroyed&&jn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,jn(t,"mounted")),t}function In(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),c=!!(o||t.$options._renderChildren||u);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Tt(!1);for(var l=t._props,f=t.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=t.$options.props;l[h]=Xt(h,p,e,t)}Tt(!0),t.$options.propsData=e}r=r||n;var m=t.$options._parentListeners;t.$options._parentListeners=r,On(t,r,m),c&&(t.$slots=De(o,i.context),t.$forceUpdate())}function Bn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Ln(t,e){if(e){if(t._directInactive=!1,Bn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Ln(t.$children[n]);jn(t,"activated")}}function zn(t,e){if((!e||(t._directInactive=!0,!Bn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)zn(t.$children[n]);jn(t,"deactivated")}}function jn(t,e){vt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),bt()}var Fn=[],$n=[],Hn={},Vn=!1,Un=!1,qn=0;function Wn(){qn=Fn.length=$n.length=0,Hn={},Vn=Un=!1}var Kn=0,Gn=Date.now;if(X&&!tt){var Yn=window.performance;Yn&&"function"===typeof Yn.now&&Gn()>document.createEvent("Event").timeStamp&&(Gn=function(){return Yn.now()})}function Xn(){var t,e;for(Kn=Gn(),Un=!0,Fn.sort((function(t,e){return t.id-e.id})),qn=0;qn<Fn.length;qn++)t=Fn[qn],t.before&&t.before(),e=t.id,Hn[e]=null,t.run();var n=$n.slice(),r=Fn.slice();Wn(),Qn(n),Zn(r),ct&&H.devtools&&ct.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&jn(r,"updated")}}function Jn(t){t._inactive=!1,$n.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Ln(t[e],!0)}function tr(t){var e=t.id;if(null==Hn[e]){if(Hn[e]=!0,Un){var n=Fn.length-1;while(n>qn&&Fn[n].id>t.id)n--;Fn.splice(n+1,0,t)}else Fn.push(t);Vn||(Vn=!0,pe(Xn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;vt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Ca){if(!this.user)throw Ca;ee(Ca,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ge(t),bt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Ca){ee(Ca,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:R,set:R};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):Rt(t._data={},!0),e.computed&&lr(t,e.computed),e.watch&&e.watch!==ot&&mr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){i.push(o);var a=Xt(o,e,n,t);Pt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?ur(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&w(r,o)||U(o)||ir(t,"_data",o)}Rt(e,!0)}function ur(t,e){vt();try{return t.call(e,e)}catch(Ca){return ee(Ca,e,"data()"),{}}finally{bt()}}var cr={lazy:!0};function lr(t,e){var n=t._computedWatchers=Object.create(null),r=ut();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||R,R,cr)),i in t||fr(t,i,o)}}function fr(t,e,n){var r=!ut();"function"===typeof n?(rr.get=r?dr(e):hr(n),rr.set=R):(rr.get=n.get?r&&!1!==n.cache?dr(e):hr(n.get):R,rr.set=n.set||R),Object.defineProperty(t,e,rr)}function dr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?R:T(e[n],t)}function mr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)gr(t,n,r[i]);else gr(t,n,r)}}function gr(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function vr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=It,t.prototype.$delete=Bt,t.prototype.$watch=function(t,e,n){var r=this;if(l(e))return gr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var br=0;function yr(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?wr(e,t):e.$options=Gt(_r(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Nn(e),Sn(e),mn(e),jn(e,"beforeCreate"),Te(e),or(e),Oe(e),jn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function wr(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function _r(t){var e=t.options;if(t.super){var n=_r(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=xr(t);i&&D(t.extendOptions,i),e=t.options=Gt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function xr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function Cr(t){this._init(t)}function Sr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function kr(t){t.mixin=function(t){return this.options=Gt(this.options,t),this}}function Mr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Gt(n.options,t),a["super"]=n,a.options.props&&Er(a),a.options.computed&&Or(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=D({},a.options),i[r]=a,a}}function Er(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Or(t){var e=t.options.computed;for(var n in e)fr(t.prototype,n,e[n])}function Tr(t){F.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ar(t){return t&&(t.Ctor.options.name||t.tag)}function Dr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Nr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ar(a.componentOptions);s&&!e(s)&&Rr(n,o,r,i)}}}function Rr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,b(n,e)}yr(Cr),vr(Cr),Tn(Cr),Rn(Cr),bn(Cr);var Pr=[String,RegExp,Array],Ir={name:"keep-alive",abstract:!0,props:{include:Pr,exclude:Pr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Rr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Nr(t,(function(t){return Dr(e,t)}))})),this.$watch("exclude",(function(e){Nr(t,(function(t){return!Dr(e,t)}))}))},render:function(){var t=this.$slots.default,e=Cn(t),n=e&&e.componentOptions;if(n){var r=Ar(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Dr(o,r))||a&&r&&Dr(a,r))return e;var s=this,u=s.cache,c=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,b(c,l),c.push(l)):(u[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&Rr(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Br={KeepAlive:Ir};function Lr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:D,mergeOptions:Gt,defineReactive:Pt},t.set=It,t.delete=Bt,t.nextTick=pe,t.observable=function(t){return Rt(t),t},t.options=Object.create(null),F.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,D(t.options.components,Br),Sr(t),kr(t),Mr(t),Tr(t)}Lr(Cr),Object.defineProperty(Cr.prototype,"$isServer",{get:ut}),Object.defineProperty(Cr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cr,"FunctionalRenderContext",{value:Ze}),Cr.version="2.6.12";var zr=g("style,class"),jr=g("input,textarea,option,select,progress"),Fr=function(t,e,n){return"value"===n&&jr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},$r=g("contenteditable,draggable,spellcheck"),Hr=g("events,caret,typing,plaintext-only"),Vr=function(t,e){return Gr(e)||"false"===e?"false":"contenteditable"===t&&Hr(e)?e:"true"},Ur=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Kr=function(t){return Wr(t)?t.slice(6,t.length):""},Gr=function(t){return null==t||!1===t};function Yr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Xr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Xr(e,n.data));return Zr(e.staticClass,e.class)}function Xr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):u(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Qr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function ui(t){if(!X)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=g("text,number,password,search,email,tel,url");function li(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function fi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function di(t,e){return document.createElementNS(ni[t],e)}function hi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function mi(t,e,n){t.insertBefore(e,n)}function gi(t,e){t.removeChild(e)}function vi(t,e){t.appendChild(e)}function bi(t){return t.parentNode}function yi(t){return t.nextSibling}function wi(t){return t.tagName}function _i(t,e){t.textContent=e}function xi(t,e){t.setAttribute(e,"")}var Ci=Object.freeze({createElement:fi,createElementNS:di,createTextNode:hi,createComment:pi,insertBefore:mi,removeChild:gi,appendChild:vi,parentNode:bi,nextSibling:yi,tagName:wi,setTextContent:_i,setStyleScope:xi}),Si={create:function(t,e){ki(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ki(t,!0),ki(e))},destroy:function(t){ki(t,!0)}};function ki(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?b(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Mi=new yt("",{},[]),Ei=["create","activate","update","remove","destroy"];function Oi(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ai(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Di(t){var e,n,a={},u=t.modules,c=t.nodeOps;for(e=0;e<Ei.length;++e)for(a[Ei[e]]=[],n=0;n<u.length;++n)i(u[n][Ei[e]])&&a[Ei[e]].push(u[n][Ei[e]]);function l(t){return new yt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function f(t,e){function n(){0===--n.listeners&&d(t)}return n.listeners=e,n}function d(t){var e=c.parentNode(t);i(e)&&c.removeChild(e,t)}function h(t,e,n,r,a,s,u){if(i(t.elm)&&i(s)&&(t=s[u]=Ct(t)),t.isRootInsert=!a,!p(t,e,n,r)){var l=t.data,f=t.children,d=t.tag;i(d)?(t.elm=t.ns?c.createElementNS(t.ns,d):c.createElement(d,t),x(t),y(t,f,e),i(l)&&_(t,e),b(n,t.elm,r)):o(t.isComment)?(t.elm=c.createComment(t.text),b(n,t.elm,r)):(t.elm=c.createTextNode(t.text),b(n,t.elm,r))}}function p(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return m(t,e),b(n,t.elm,r),o(s)&&v(t,e,n,r),!0}}function m(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,w(t)?(_(t,e),x(t)):(ki(t),e.push(t))}function v(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Mi,s);e.push(s);break}b(n,t.elm,r)}function b(t,e,n){i(t)&&(i(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function w(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function _(t,n){for(var r=0;r<a.create.length;++r)a.create[r](Mi,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(Mi,t),i(e.insert)&&n.push(t))}function x(t){var e;if(i(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}i(e=An)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function C(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function S(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)S(t.children[n])}function k(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(i(r.tag)?(M(r),S(r)):d(r.elm))}}function M(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=f(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&M(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else d(t.elm)}function E(t,e,n,o,a){var s,u,l,f,d=0,p=0,m=e.length-1,g=e[0],v=e[m],b=n.length-1,y=n[0],w=n[b],_=!a;while(d<=m&&p<=b)r(g)?g=e[++d]:r(v)?v=e[--m]:Oi(g,y)?(T(g,y,o,n,p),g=e[++d],y=n[++p]):Oi(v,w)?(T(v,w,o,n,b),v=e[--m],w=n[--b]):Oi(g,w)?(T(g,w,o,n,b),_&&c.insertBefore(t,g.elm,c.nextSibling(v.elm)),g=e[++d],w=n[--b]):Oi(v,y)?(T(v,y,o,n,p),_&&c.insertBefore(t,v.elm,g.elm),v=e[--m],y=n[++p]):(r(s)&&(s=Ai(e,d,m)),u=i(y.key)?s[y.key]:O(y,e,d,m),r(u)?h(y,o,t,g.elm,!1,n,p):(l=e[u],Oi(l,y)?(T(l,y,o,n,p),e[u]=void 0,_&&c.insertBefore(t,l.elm,g.elm)):h(y,o,t,g.elm,!1,n,p)),y=n[++p]);d>m?(f=r(n[b+1])?null:n[b+1].elm,C(t,f,n,p,b,o)):p>b&&k(e,d,m)}function O(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&Oi(t,a))return o}}function T(t,e,n,s,u,l){if(t!==e){i(e.elm)&&i(s)&&(e=s[u]=Ct(e));var f=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?N(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,h=e.data;i(h)&&i(d=h.hook)&&i(d=d.prepatch)&&d(t,e);var p=t.children,m=e.children;if(i(h)&&w(e)){for(d=0;d<a.update.length;++d)a.update[d](t,e);i(d=h.hook)&&i(d=d.update)&&d(t,e)}r(e.text)?i(p)&&i(m)?p!==m&&E(f,p,m,n,l):i(m)?(i(t.text)&&c.setTextContent(f,""),C(f,null,m,0,m.length-1,n)):i(p)?k(p,0,p.length-1):i(t.text)&&c.setTextContent(f,""):t.text!==e.text&&c.setTextContent(f,e.text),i(h)&&i(d=h.hook)&&i(d=d.postpatch)&&d(t,e)}}}function A(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var D=g("attrs,class,staticClass,staticStyle,key");function N(t,e,n,r){var a,s=e.tag,u=e.data,c=e.children;if(r=r||u&&u.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(u)&&(i(a=u.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return m(e,n),!0;if(i(s)){if(i(c))if(t.hasChildNodes())if(i(a=u)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var l=!0,f=t.firstChild,d=0;d<c.length;d++){if(!f||!N(f,c[d],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else y(e,c,n);if(i(u)){var h=!1;for(var p in u)if(!D(p)){h=!0,_(e,n);break}!h&&u["class"]&&ge(u["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var u=!1,f=[];if(r(t))u=!0,h(e,f);else{var d=i(t.nodeType);if(!d&&Oi(t,e))T(t,e,f,null,null,s);else{if(d){if(1===t.nodeType&&t.hasAttribute(j)&&(t.removeAttribute(j),n=!0),o(n)&&N(t,e,f))return A(e,f,!0),t;t=l(t)}var p=t.elm,m=c.parentNode(p);if(h(e,f,p._leaveCb?null:m,c.nextSibling(p)),i(e.parent)){var g=e.parent,v=w(e);while(g){for(var b=0;b<a.destroy.length;++b)a.destroy[b](g);if(g.elm=e.elm,v){for(var y=0;y<a.create.length;++y)a.create[y](Mi,g);var _=g.data.hook.insert;if(_.merged)for(var x=1;x<_.fns.length;x++)_.fns[x]()}else ki(g);g=g.parent}}i(m)?k([t],0,0):i(t.tag)&&S(t)}}return A(e,f,u),e.elm}i(t)&&S(t)}}var Ni={create:Ri,update:Ri,destroy:function(t){Ri(t,Mi)}};function Ri(t,e){(t.data.directives||e.data.directives)&&Pi(t,e)}function Pi(t,e){var n,r,i,o=t===Mi,a=e===Mi,s=Bi(t.data.directives,t.context),u=Bi(e.data.directives,e.context),c=[],l=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,zi(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(zi(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var f=function(){for(var n=0;n<c.length;n++)zi(c[n],"inserted",e,t)};o?_e(e,"insert",f):f()}if(l.length&&_e(e,"postpatch",(function(){for(var n=0;n<l.length;n++)zi(l[n],"componentUpdated",e,t)})),!o)for(n in s)u[n]||zi(s[n],"unbind",t,t,a)}var Ii=Object.create(null);function Bi(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Ii),i[Li(r)]=r,r.def=Yt(e.$options,"directives",r.name,!0);return i}function Li(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function zi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(Ca){ee(Ca,n.context,"directive "+t.name+" "+e+" hook")}}var ji=[Si,Ni];function Fi(t,e){var n=e.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,u=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};for(o in i(l.__ob__)&&(l=e.data.attrs=D({},l)),l)a=l[o],s=c[o],s!==a&&$i(u,o,a);for(o in(tt||nt)&&l.value!==c.value&&$i(u,"value",l.value),c)r(l[o])&&(Wr(o)?u.removeAttributeNS(qr,Kr(o)):$r(o)||u.removeAttribute(o))}}function $i(t,e,n){t.tagName.indexOf("-")>-1?Hi(t,e,n):Ur(e)?Gr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):$r(e)?t.setAttribute(e,Vr(e,n)):Wr(e)?Gr(n)?t.removeAttributeNS(qr,Kr(e)):t.setAttributeNS(qr,e,n):Hi(t,e,n)}function Hi(t,e,n){if(Gr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Vi={create:Fi,update:Fi};function Ui(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Yr(e),u=n._transitionClasses;i(u)&&(s=Jr(s,Qr(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Wi={create:Ui,update:Ui},Ki="__r",Gi="__c";function Yi(t){if(i(t[Ki])){var e=tt?"change":"input";t[e]=[].concat(t[Ki],t[e]||[]),delete t[Ki]}i(t[Gi])&&(t.change=[].concat(t[Gi],t.change||[]),delete t[Gi])}function Xi(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Zi){var i=Kn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};qi=e.elm,Yi(n),we(n,i,Ji,Qi,Xi,e.context),qi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in i(u.__ob__)&&(u=e.data.domProps=D({},u)),s)n in u||(a[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var l=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Ca){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Ca){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return m(n)!==m(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},uo=_((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function co(t){var e=lo(t.style);return t.staticStyle?D(t.staticStyle,e):e}function lo(t){return Array.isArray(t)?N(t):"string"===typeof t?uo(t):t}function fo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&D(r,n)}(n=co(t.data))&&D(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&D(r,n);return r}var ho,po=/^--/,mo=/\s*!important$/,go=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(mo.test(n))t.style.setProperty(M(e),n.replace(mo,""),"important");else{var r=bo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},vo=["Webkit","Moz","ms"],bo=_((function(t){if(ho=ho||document.createElement("div").style,t=C(t),"filter"!==t&&t in ho)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<vo.length;n++){var r=vo[n]+e;if(r in ho)return r}}));function yo(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,u=e.elm,c=o.staticStyle,l=o.normalizedStyle||o.style||{},f=c||l,d=lo(e.data.style)||{};e.data.normalizedStyle=i(d.__ob__)?D({},d):d;var h=fo(e,!0);for(s in f)r(h[s])&&go(u,s,"");for(s in h)a=h[s],a!==f[s]&&go(u,s,null==a?"":a)}}var wo={create:yo,update:yo},_o=/\s+/;function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_o).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Co(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_o).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function So(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&D(e,ko(t.name||"v")),D(e,t),e}return"string"===typeof t?ko(t):void 0}}var ko=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Mo=X&&!et,Eo="transition",Oo="animation",To="transition",Ao="transitionend",Do="animation",No="animationend";Mo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Ao="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Do="WebkitAnimation",No="webkitAnimationEnd"));var Ro=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Po(t){Ro((function(){Ro(t)}))}function Io(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xo(t,e))}function Bo(t,e){t._transitionClasses&&b(t._transitionClasses,e),Co(t,e)}function Lo(t,e,n){var r=jo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Eo?Ao:No,u=0,c=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++u>=a&&c()};setTimeout((function(){u<a&&c()}),o+1),t.addEventListener(s,l)}var zo=/\b(transform|all)(,|$)/;function jo(t,e){var n,r=window.getComputedStyle(t),i=(r[To+"Delay"]||"").split(", "),o=(r[To+"Duration"]||"").split(", "),a=Fo(i,o),s=(r[Do+"Delay"]||"").split(", "),u=(r[Do+"Duration"]||"").split(", "),c=Fo(s,u),l=0,f=0;e===Eo?a>0&&(n=Eo,l=a,f=o.length):e===Oo?c>0&&(n=Oo,l=c,f=u.length):(l=Math.max(a,c),n=l>0?a>c?Eo:Oo:null,f=n?n===Eo?o.length:u.length:0);var d=n===Eo&&zo.test(r[To+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function Fo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return $o(e)+$o(t[n])})))}function $o(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Ho(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=So(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,c=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,d=o.appearClass,h=o.appearToClass,p=o.appearActiveClass,g=o.beforeEnter,v=o.enter,b=o.afterEnter,y=o.enterCancelled,w=o.beforeAppear,_=o.appear,x=o.afterAppear,C=o.appearCancelled,S=o.duration,k=An,M=An.$vnode;while(M&&M.parent)k=M.context,M=M.parent;var E=!k._isMounted||!t.isRootInsert;if(!E||_||""===_){var O=E&&d?d:c,T=E&&p?p:f,A=E&&h?h:l,D=E&&w||g,N=E&&"function"===typeof _?_:v,R=E&&x||b,P=E&&C||y,I=m(u(S)?S.enter:S);0;var B=!1!==a&&!et,L=qo(N),j=n._enterCb=z((function(){B&&(Bo(n,A),Bo(n,T)),j.cancelled?(B&&Bo(n,O),P&&P(n)):R&&R(n),n._enterCb=null}));t.data.show||_e(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),N&&N(n,j)})),D&&D(n),B&&(Io(n,O),Io(n,T),Po((function(){Bo(n,O),j.cancelled||(Io(n,A),L||(Uo(I)?setTimeout(j,I):Lo(n,s,j)))}))),t.data.show&&(e&&e(),N&&N(n,j)),B||L||j()}}}function Vo(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=So(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,c=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,d=o.beforeLeave,h=o.leave,p=o.afterLeave,g=o.leaveCancelled,v=o.delayLeave,b=o.duration,y=!1!==a&&!et,w=qo(h),_=m(u(b)?b.leave:b);0;var x=n._leaveCb=z((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Bo(n,l),Bo(n,f)),x.cancelled?(y&&Bo(n,c),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null}));v?v(C):C()}function C(){x.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),y&&(Io(n,c),Io(n,f),Po((function(){Bo(n,c),x.cancelled||(Io(n,l),w||(Uo(_)?setTimeout(x,_):Lo(n,s,x)))}))),h&&h(n,x),y||w||x())}}function Uo(t){return"number"===typeof t&&!isNaN(t)}function qo(t){if(r(t))return!1;var e=t.fns;return i(e)?qo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Wo(t,e){!0!==e.data.show&&Ho(e)}var Ko=X?{create:Wo,activate:Wo,remove:function(t,e){!0!==t.data.show?Vo(t,e):e()}}:{},Go=[Vi,Wi,no,so,wo,Ko],Yo=Go.concat(ji),Xo=Di({nodeOps:Ci,modules:Yo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?_e(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!B(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],i)o=L(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(B(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!B(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ho(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ho(n,(function(){t.style.display=t.__vOriginalDisplay})):Vo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},ua={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(Cn(e.children)):t}function la(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[C(o)]=i[o];return e}function fa(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function da(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||xn(t)},ma=function(t){return"show"===t.name},ga={name:"transition",props:ua,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(da(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return fa(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=la(this),c=this._vnode,l=ca(c);if(o.data.directives&&o.data.directives.some(ma)&&(o.data.show=!0),l&&l.data&&!ha(o,l)&&!xn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=D({},u);if("out-in"===r)return this._leaving=!0,_e(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),fa(t,i);if("in-out"===r){if(xn(o))return c;var d,h=function(){d()};_e(u,"afterEnter",h),_e(u,"enterCancelled",h),_e(f,"delayLeave",(function(t){d=t}))}}return i}}},va=D({tag:String,moveClass:String},ua);delete va.mode;var ba={props:va,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Dn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=la(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){for(var c=[],l=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?c.push(d):l.push(d)}this.kept=t(e,null,c),this.removed=l}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ya),t.forEach(wa),t.forEach(_a),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Io(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ao,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ao,t),n._moveCb=null,Bo(n,e))})}})))},methods:{hasMove:function(t,e){if(!Mo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Co(n,t)})),xo(n,e),n.style.display="none",this.$el.appendChild(n);var r=jo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ya(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function wa(t){t.data.newPos=t.elm.getBoundingClientRect()}function _a(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var xa={Transition:ga,TransitionGroup:ba};Cr.config.mustUseProp=Fr,Cr.config.isReservedTag=oi,Cr.config.isReservedAttr=zr,Cr.config.getTagNamespace=ai,Cr.config.isUnknownElement=ui,D(Cr.options.directives,sa),D(Cr.options.components,xa),Cr.prototype.__patch__=X?Xo:R,Cr.prototype.$mount=function(t,e){return t=t&&X?li(t):void 0,Pn(this,t,e)},X&&setTimeout((function(){H.devtools&&ct&&ct.emit("init",Cr)}),0),e["default"]=Cr}.call(this,n("c8ba"))},"2b79":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,i=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,u=r.keySize,c=r.iterations;while(s.length<u){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var l=1;l<c;l++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*u,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},"2bb5":function(t,e,n){"use strict";e.__esModule=!0;n("8122");e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},"2c63":function(t,e,n){t.exports=n("dc14")},"2caf":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));n("4ae1"),n("3410"),n("131a");function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n("d3b7"),n("25f0");function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var o=n("53ca");function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){return!e||"object"!==Object(o["a"])(e)&&"function"!==typeof e?a(t):e}function u(t){var e=i();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return s(this,n)}}},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),s=n("d039"),u=n("0366"),c=n("1be4"),l=n("cc12"),f=n("1cdc"),d=n("605d"),h=a.location,p=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},_="onreadystatechange",x=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},C=function(t){return function(){x(t)}},S=function(t){x(t.data)},k=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};p&&m||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},m=function(t){delete w[t]},d?r=function(t){g.nextTick(C(t))}:b&&b.now?r=function(t){b.now(C(t))}:v&&!f?(i=new v,o=i.port2,i.port1.onmessage=S,r=u(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!s(k)?(r=k,a.addEventListener("message",S,!1)):r=_ in l("script")?function(t){c.appendChild(l("script"))[_]=function(){c.removeChild(this),x(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:p,clear:m}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,u=s&&s.versions,c=u&&u.v8;c?(r=c.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2d33":function(t,e,n){n("303c")},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f62":function(t,e,n){"use strict";(function(t){
- /*!
- * vuex v3.6.0
- * (c) 2020 Evan You
- * @license MIT
- */
- function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",(function(){return R}));var i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){return t.filter(e)[0]}function u(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=s(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=u(t[n],e)})),r}function c(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function l(t){return null!==t&&"object"===typeof t}function f(t){return t&&"function"===typeof t.then}function d(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){c(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&c(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&c(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&c(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,p);var m=function(t){this.register([],t,!1)};function g(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;g(t.concat(r),e.getChild(r),n.modules[r])}}m.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},m.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},m.prototype.update=function(t){g([],this.root,t)},m.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new h(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&c(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},m.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},m.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var v;var b=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&N(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,u=o.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;C(this,c,[],this._modules.root),x(this,c),n.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:v.config.devtools;l&&a(this)},y={state:{configurable:!0}};function w(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function _(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;C(t,n,[],t._modules.root,!0),x(t,n,e)}function x(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};c(i,(function(e,n){o[n]=d(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:o}),v.config.silent=a,t.strict&&T(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function C(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=A(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){v.set(s,u,r.state)}))}var c=r.context=S(t,a,n);r.forEachMutation((function(e,n){var r=a+n;M(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;E(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;O(t,r,e,c)})),r.forEachChild((function(r,o){C(t,e,n.concat(o),r,i)}))}function S(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return k(t,e)}},state:{get:function(){return A(t.state,n)}}}),i}function k(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function M(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function E(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return f(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function O(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function T(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function D(t,e,n){return l(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function N(t){v&&t===v||(v=t,r(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},b.prototype.commit=function(t,e,n){var r=this,i=D(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},b.prototype.dispatch=function(t,e){var n=this,r=D(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},b.prototype.subscribe=function(t,e){return w(t,this._subscribers,e)},b.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return w(n,this._actionSubscribers,e)},b.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},b.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},b.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),C(this,this.state,t,this._modules.get(t),n.preserveState),x(this,this.state)},b.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=A(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])})),_(this)},b.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},b.prototype.hotUpdate=function(t){this._modules.update(t),_(this,!0)},b.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(b.prototype,y);var R=F((function(t,e){var n={};return z(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=$(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),P=F((function(t,e){var n={};return z(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=$(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),I=F((function(t,e){var n={};return z(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||$(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),B=F((function(t,e){var n={};return z(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=$(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),L=function(t){return{mapState:R.bind(null,t),mapGetters:I.bind(null,t),mapMutations:P.bind(null,t),mapActions:B.bind(null,t)}};function z(t){return j(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function j(t){return Array.isArray(t)||l(t)}function F(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function $(t,e,n){var r=t._modulesNamespaceMap[n];return r}function H(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var c=t.logActions;void 0===c&&(c=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=u(t.state);"undefined"!==typeof l&&(s&&t.subscribe((function(t,o){var a=u(o);if(n(t,f,a)){var s=q(),c=i(t),d="mutation "+t.type+s;V(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),U(l)}f=a})),c&&t.subscribeAction((function(t,n){if(o(t,n)){var r=q(),i=a(t),s="action "+t.type+r;V(l,s,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),U(l)}})))}}function V(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function U(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function q(){var t=new Date;return" @ "+K(t.getHours(),2)+":"+K(t.getMinutes(),2)+":"+K(t.getSeconds(),2)+"."+K(t.getMilliseconds(),3)}function W(t,e){return new Array(e+1).join(t)}function K(t,e){return W("0",e-t.toString().length)+t}var G={Store:b,install:N,version:"3.6.0",mapState:R,mapMutations:P,mapGetters:I,mapActions:B,createNamespacedHelpers:L,createLogger:H};e["a"]=G}).call(this,n("c8ba"))},"2f9a":function(t,e){t.exports=function(){}},"301c":function(t,e,n){n("e198")("asyncIterator")},"303c":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");function e(){t.add("colorpicker",(function(){console.warn("Color picker plugin is now built in to the core editor, please remove it from your editor configuration")}))}e()})()},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},3252:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=n.x64={};a.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}})}(),t}))},3300:function(t,e,n){"use strict";var r=n("f3a3"),i=n("80af"),o=n("3fb5"),a=n("ea53"),s=r.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,n,r){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,n,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);e=o[0].cmp(o[1])<0?o[0]:o[1],e=e.toRed(this.red)}if(t.lambda)n=new i(t.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(e))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return r=t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(n),{beta:e,lambda:n,basis:r}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=new i(2).toRed(e).redInvm(),r=n.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(n),a=r.redAdd(o).fromRed(),s=r.redSub(o).fromRed();return[a,s]},u.prototype._getEndoBasis=function(t){var e,n,r,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,h=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),v=new i(1),b=0;while(0!==d.cmpn(0)){var y=h.div(d);c=h.sub(y.mul(d)),l=g.sub(y.mul(p));var w=v.sub(y.mul(m));if(!r&&c.cmp(f)<0)e=u.neg(),n=p,r=c.neg(),o=l;else if(r&&2===++b)break;u=c,h=d,d=c,g=p,p=l,v=m,m=w}a=c.neg(),s=l;var _=r.sqr().add(o.sqr()),x=a.sqr().add(s.sqr());return x.cmp(_)>=0&&(a=e,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b),l=t.sub(a).sub(s),f=u.add(c).neg();return{k1:l,k2:f}},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),r[2*o]=s,r[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),l=0;l<2*o;l++)r[l]=null,i[l]=null;return c},o(c,a.BasePoint),u.prototype.point=function(t,e,n){return new c(this,t,e,n)},u.prototype.pointFromJSON=function(t,e){return c.fromJSON(this,t,e)},c.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,r=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,n){"string"===typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function i(e){return t.point(e[0],e[1],n)}var o=e[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.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 n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.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,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(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)},c.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.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))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},c.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(l,a.BasePoint),u.prototype.jpoint=function(t,e,n){return new l(this,t,e,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(n=0;n<t;n++){var l=o.redSqr(),f=c.redSqr(),d=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(u)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(d);var b=c.redMul(s);n+1<t&&(u=u.redMul(d)),o=m,s=b,c=v}return this.curve.jpoint(o,c.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=d.redIAdd(d);g=g.redIAdd(g),g=g.redIAdd(g),t=m.redISub(h).redISub(h),e=p.redMul(h.redISub(t)).redISub(g),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(t,e,n)},l.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d);p=p.redIAdd(p);var m=p.redAdd(p);t=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var g=f.redSqr();g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g),e=h.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=e.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e);u=u.redIAdd(u);var c=u.redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),d=a.redSqr();d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var h=s.redMul(f).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(r);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var s=a.redSqr(),u=r.redIAdd(r);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=e.redMul(c);l=l.redIAdd(l),l=l.redIAdd(l);var f=this.x.redMul(s).redISub(l);f=f.redIAdd(f),f=f.redIAdd(f);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,h)},l.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),i=n.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(r)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),i=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3337:function(t,e,n){"use strict";var r=e;r.version=n("2801").version,r.utils=n("f3a3"),r.rand=n("fdac"),r.curve=n("4136"),r.curves=n("0cbb"),r.ec=n("b9a8"),r.eddsa=n("945d")},"334a":function(t,e,n){e=t.exports=n("4250"),e.Stream=e,e.Readable=e,e.Writable=n("19ea"),e.Duplex=n("e666"),e.Transform=n("09dc"),e.PassThrough=n("0ae3"),e.finished=n("ee93"),e.pipeline=n("fbd5")},3397:function(t,e,n){var r=n("7a41");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},3410:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"343e":function(t,e,n){"use strict";const r=e;r.der=n("3768"),r.pem=n("85b3")},3452:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(t){return t}))},"34d5":function(t,e,n){e=t.exports=n("cf35"),e.Stream=e,e.Readable=e,e.Writable=n("49ce"),e.Duplex=n("5e7d"),e.Transform=n("f1c8"),e.PassThrough=n("9d28"),e.finished=n("42a7"),e.pipeline=n("ac4f")},"34de":function(t,e,n){n("09cf")},3505:function(t,e,n){var r=n("8707").Buffer,i=n("8c8a");function o(t,e,n){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){var i,a=r.allocUnsafe(0);while(e.length){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){a=r.concat([a,o(t,e,n)]);break}i=t._cache.length,a=r.concat([a,o(t,e.slice(0,i),n)]),e=e.slice(i)}return a}},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},3768:function(t,e,n){"use strict";const r=n("3fb5"),i=n("c591").Buffer,o=n("8360"),a=n("8b71");function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.call(this,"der",t)}function c(t){return t<10?"0"+t:t}function l(t,e,n,r){let i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}return i>=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=a.tagClassByName[n||"universal"]<<6,i)}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(u,o),u.prototype._encodeComposite=function(t,e,n,r){const o=l(t,e,n,this.reporter);if(r.length<128){const t=i.alloc(2);return t[0]=o,t[1]=r.length,this._createEncoderBuffer([t,r])}let a=1;for(let i=r.length;i>=256;i>>=8)a++;const s=i.alloc(2+a);s[0]=o,s[1]=128|a;for(let i=1+a,u=r.length;u>0;i--,u>>=8)s[i]=255&u;return this._createEncoderBuffer([s,r])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=i.alloc(2*t.length);for(let n=0;n<t.length;n++)e.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},u.prototype._encodeObjid=function(t,e,n){if("string"===typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let r=0;for(let i=0;i<t.length;i++){let e=t[i];for(r++;e>=128;e>>=7)r++}const o=i.alloc(r);let a=o.length-1;for(let i=t.length-1;i>=0;i--){let e=t[i];o[a--]=127&e;while((e>>=7)>0)o[a--]=128|127&e}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(t,e){let n;const r=new Date(t);return"gentime"===e?n=[c(r.getUTCFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[c(r.getUTCFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.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&&!i.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=i.from(e)}if(i.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=i.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let i=t;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&t,t>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,n){const r=this._baseState;let i;if(null===r["default"])return!1;const o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r["default"],e,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==r.defaultBuffer[i])return!1;return!0}},"37e6":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(13).Buffer}catch(M){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],h=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(t);p=p.idivn(h),n=p.isZero()?m+n:c[d-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new v;return r.mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):g(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,y),i(x,y),i(C,y),C.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}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 _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},"380f":function(t,e,n){"use strict";var r=n("f3a3"),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},s.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=s},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38ba":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,u=(s.Utf8,s.Base64),c=n.algo,l=c.EvpKDF,f=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?C:w}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),d=(r.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),h=r.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=d.CBC=function(){var t=h.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),t.Decryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);r.decryptBlock(t,e),n.call(this,t,e,i),this._prevBlock=o}}),t}(),m=n.pad={},g=m.Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var u=o.create(a,r);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:g}),reset:function(){var t;f.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),r.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=n.format={},y=b.OpenSSL={stringify:function(t){var e,n=t.ciphertext,r=t.salt;return e=r?o.create([1398893684,1701076831]).concat(r).concat(n):n,e.toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},w=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),a=i.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=t.createDecryptor(n,r).finalize(e.ciphertext);return i},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=n.kdf={},x=_.OpenSSL={execute:function(t,e,n,r){r||(r=o.random(8));var i=l.create({keySize:e+n}).compute(t,r),a=o.create(i.words.slice(e),4*n);return i.sigBytes=4*e,v.create({key:i,iv:a,salt:r})}},C=r.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:x}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var o=w.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);r.iv=i.iv;var o=w.decrypt.call(this,t,e,i.key,r);return o}})}()}))},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"393a":function(t,e,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),u=n("26dd"),c=n("92f0"),l=n("ce7a"),f=n("cc15")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};t.exports=function(t,e,n,v,b,y,w){u(n,e,v);var _,x,C,S=function(t){if(!d&&t in O)return O[t];switch(t){case p:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",M=b==m,E=!1,O=t.prototype,T=O[f]||O[h]||b&&O[b],A=T||S(b),D=b?M?S("entries"):A:void 0,N="Array"==e&&O.entries||T;if(N&&(C=l(N.call(new t)),C!==Object.prototype&&C.next&&(c(C,k,!0),r||"function"==typeof C[f]||a(C,f,g))),M&&T&&T.name!==m&&(E=!0,A=function(){return T.call(this)}),r&&!w||!d&&!E&&O[f]||a(O,f,A),s[e]=A,s[k]=g,b)if(_={values:M?A:S(m),keys:y?A:S(p),entries:D},w)for(x in _)x in O||o(O,x,_[x]);else i(i.P+i.F*(d||E),e,_);return _}},"399f":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(10).Buffer}catch(T){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),a=0,s=e;s<o;s++){var u,c=t.charCodeAt(s)-48;i<<=4,u=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,i|=u,a|=u}return r(!(240&a),"Invalid character in "+t),i}function u(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u<s;u++){var c=t.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a<i,"Invalid character"),o+=a}return o}function c(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){c(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype._strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(T){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","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"],d=[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],h=[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 n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?f[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=h[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modrn(l).toString(t);p=p.idivn(l),n=p.isZero()?m+n:f[c-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var p=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function m(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}function g(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=p(t,o),s="le"===e?"LE":"BE";return this["_toArrayLike"+s](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;t[n++]=255&a,n<t.length&&(t[n++]=a>>8&255),n<t.length&&(t[n++]=a>>16&255),6===o?(n<t.length&&(t[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<t.length){t[n++]=r;while(n<t.length)t[n++]=0}},o.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;t[n--]=255&a,n>=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0){t[n--]=r;while(n>=0)t[n--]=0}},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var v=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function b(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(t,e,n){return b(t,e,n)}function w(t,e){this.x=t,this.y=e}Math.imul||(v=g),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?v(this,t,e):r<63?g(this,t,e):r<1024?b(this,t,e):y(this,t,e),n},w.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},w.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},w.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},w.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},w.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},w.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},w.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},w.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},w.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},w.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"===typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=m(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&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),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(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 E(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={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 C(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}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,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},x.prototype.split=function(t,e){t.iushrn(this.n,0,e)},x.prototype.imulK=function(t){return t.imul(this.k)},i(C,x),C.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},C.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(S,x),i(k,x),i(M,x),M.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new C;else if("p224"===t)e=new S;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return _[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,E),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 n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._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,n("62e4")(t))},"39a9":function(t,e,n){
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
- var r=n("b639"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"39ad":function(t,e,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},"39f5":function(t,e,n){var r=n("8707").Buffer;function i(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,n=new Array(e),i=0;i<e;i++)n[i]=t.readUInt32BE(4*i);return n}function o(t){for(var e=0;e<t.length;t++)t[e]=0}function a(t,e,n,r,i){for(var o,a,s,u,c=n[0],l=n[1],f=n[2],d=n[3],h=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],g=t[3]^e[3],v=4,b=1;b<i;b++)o=c[h>>>24]^l[p>>>16&255]^f[m>>>8&255]^d[255&g]^e[v++],a=c[p>>>24]^l[m>>>16&255]^f[g>>>8&255]^d[255&h]^e[v++],s=c[m>>>24]^l[g>>>16&255]^f[h>>>8&255]^d[255&p]^e[v++],u=c[g>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&m]^e[v++],h=o,p=a,m=s,g=u;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^e[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^e[v++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^e[v++],u=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[v++],o>>>=0,a>>>=0,s>>>=0,u>>>=0,[o,a,s,u]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var l=t[a],f=t[l],d=t[f],h=257*t[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*f^257*l^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=l^t[t[t[d^l]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<r;o++){var a=i[o-1];o%e===0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],l=0;l<r;l++){var f=r-l,d=i[f-(l%4?0:4)];c[l]=l<4||f<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return t=i(t),a(t,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},c.prototype.decryptBlock=function(t){t=i(t);var e=t[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},"3a7c":function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===g(t)}function r(t){return"boolean"===typeof t}function i(t){return null===t}function o(t){return null==t}function a(t){return"number"===typeof t}function s(t){return"string"===typeof t}function u(t){return"symbol"===typeof t}function c(t){return void 0===t}function l(t){return"[object RegExp]"===g(t)}function f(t){return"object"===typeof t&&null!==t}function d(t){return"[object Date]"===g(t)}function h(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=n,e.isBoolean=r,e.isNull=i,e.isNullOrUndefined=o,e.isNumber=a,e.isString=s,e.isSymbol=u,e.isUndefined=c,e.isRegExp=l,e.isObject=f,e.isDate=d,e.isError=h,e.isFunction=p,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(this,n("b639").Buffer)},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c4e":function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||u(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function u(t){return t.$$typeof===s}function c(t){return Array.isArray(t)?[]:{}}function l(t,e){var n=e&&!0===e.clone;return n&&r(t)?h(c(t),t,e):t}function f(t,e,n){var i=t.slice();return e.forEach((function(e,o){"undefined"===typeof i[o]?i[o]=l(e,n):r(e)?i[o]=h(t[o],e,n):-1===t.indexOf(e)&&i.push(l(e,n))})),i}function d(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=l(t[e],n)})),Object.keys(e).forEach((function(o){r(e[o])&&t[o]?i[o]=h(t[o],e[o],n):i[o]=l(e[o],n)})),i}function h(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(t,e,n)}return d(t,e,n)}return l(e,n)}h.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,n){return h(t,n,e)}))};var p=h;t.exports=p},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3d5a":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,i=e.algo,o=[],a=[],s=[],u=i.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;r[0]^=u,r[1]^=f,r[2]^=l,r[3]^=d,r[4]^=u,r[5]^=f,r[6]^=l,r[7]^=d;for(i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),t[e+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(u)}(),t.RabbitLegacy}))},"3daf":function(t,e,n){"use strict";var r=n("f3a3"),i=n("80af"),o=n("3fb5"),a=n("ea53"),s=r.assert;function u(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function c(t,e,n,r,o){a.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,n,r){return new c(this,t,e,n,r)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),s=r.redSub(e),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),e=s.redMul(a.redSub(o)),n=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),c=s.redSub(u).redISub(u);t=r.redSub(i).redISub(o).redMul(c),e=s.redMul(a.redSub(o)),n=s.redMul(c)}}else{a=i.redAdd(o),u=this.curve._mulC(this.z).redSqr(),c=a.redSub(u).redSub(u);t=this.curve._mulC(r.redISub(a)).redMul(c),e=this.curve._mulC(a).redMul(i.redISub(o)),n=a.redMul(c)}return this.curve.point(t,e,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),s=i.redAdd(r),u=n.redAdd(e),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),d=a.redMul(s);return this.curve.point(c,l,d,f)},c.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),f=r.redMul(u).redMul(l);return this.curve.twisted?(e=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=u.redMul(c)):(e=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(u).redMul(c)),this.curve.point(f,e,n)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},c.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},"3f62":function(t,e,n){var r=n("8707").Buffer,i=r.alloc(16,0);function o(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function a(t){var e=r.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 s(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(t){var e=-1;while(++e<t.length)this.state[e]^=t[e];this._multiply()},s.prototype._multiply=function(){var t,e,n,r=o(this.h),i=[0,0,0,0],s=-1;while(++s<128){for(e=0!==(this.state[~~(s/8)]&1<<7-s%8),e&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!==(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},s.prototype.update=function(t){var e;this.cache=r.concat([this.cache,t]);while(this.cache.length>=16)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},s.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,t,0,e])),this.state},t.exports=s},"3f6b":function(t,e,n){t.exports={default:n("b9c7"),__esModule:!0}},"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 n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},4010:function(t,e,n){"use strict";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var r=n("6dd8"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var a="undefined"===typeof window,s=function(t){var e=t,n=Array.isArray(e),r=0;for(e=n?e:e[Symbol.iterator]();;){var i;if(n){if(r>=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(t){t()}))}};e.addResizeListener=function(t,e){a||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new i.default(s),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},"408a":function(t,e,n){var r=n("c6b6");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(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,n){"use strict";var r=n("7f7a");e.certificate=n("56b5");var i=r.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=i;var o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=r.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())})),u=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var c=r.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=c;var l=r.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=l,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.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=f;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},4136:function(t,e,n){"use strict";var r=e;r.base=n("ea53"),r.short=n("3300"),r.mont=n("676f"),r.edwards=n("3daf")},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"417f":function(t,e,n){"use strict";e.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(t){return t&&t.__esModule?t:{default:t}}var s=[],u="@@clickoutsideContext",c=void 0,l=0;function f(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[u].methodName&&n.context[t[u].methodName]?n.context[t[u].methodName]():t[u].bindingFn&&t[u].bindingFn())}}!i.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(t){return c=t})),!i.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(t){s.forEach((function(e){return e[u].documentHandler(t,c)}))})),e.default={bind:function(t,e,n){s.push(t);var r=l++;t[u]={id:r,documentHandler:f(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[u].documentHandler=f(t,e,n),t[u].methodName=e.expression,t[u].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n<e;n++)if(s[n][u].id===t[u].id){s.splice(n,1);break}delete t[u]}}},4186:function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("ee93"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[d].read();null!==n&&(t[l]=null,t[a]=null,t[s]=null,e(h(n,!1)))}}function m(t){e.nextTick(p,t)}function g(t,e){return function(n,r){t.then((function(){e[c]?n(h(void 0,!0)):e[f](n,r)}),r)}}var v=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var t=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[u]?r(t[u]):n(h(void 0,!0))}))}));var r,i=this[l];if(i)r=new Promise(g(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));r=new Promise(this[f])}return this[l]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(h(void 0,!0))}))}))})),r),v),y=function(t){var e,n=Object.create(b,(e={},i(e,d,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var r=n[d].read();r?(n[l]=null,n[a]=null,n[s]=null,t(h(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[l]=null,n[a]=null,n[s]=null,e(t)),void(n[u]=t)}var r=n[a];null!==r&&(n[l]=null,n[a]=null,n[s]=null,r(h(void 0,!0))),n[c]=!0})),t.on("readable",m.bind(null,n)),n};t.exports=y}).call(this,n("4362"))},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r=n("3f6b"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},"41df":function(t,e,n){"use strict";const r=e;r.Reporter=n("d1c8").Reporter,r.DecoderBuffer=n("6283").DecoderBuffer,r.EncoderBuffer=n("6283").EncoderBuffer,r.Node=n("8360")},"41f8":function(t,e,n){"use strict";e.__esModule=!0;var r="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};e.isVNode=o;var i=n("8122");function o(t){return null!==t&&"object"===("undefined"===typeof t?"undefined":r(t))&&(0,i.hasOwn)(t,"componentOptions")}},4228:function(t,e,n){var r=n("82f0"),i=n("8707").Buffer,o=n("bac2"),a=n("09f5"),s=n("6430"),u=n("39f5"),c=n("ae84"),l=n("3fb5");function f(t,e,n){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(n),this._mode=t,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var n=-1;while(++n<e)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function p(t,e,n){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"===typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,n,!0):"auth"===s.type?new r(s.module,e,n,!0):new f(s.module,e,n)}function m(t,e){var n=o[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(e,!1,n.key,n.iv);return p(t,r.key,r.iv)}l(f,s),f.prototype._update=function(t){var e,n;this._cache.add(t);var r=[];while(e=this._cache.get(this._autopadding))n=this._mode.decrypt(this,e),r.push(n);return i.concat(r)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return h(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=i.concat([this.cache,t])},d.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=m,e.createDecipheriv=p},4237:function(t,e,n){n("be7f")},4250:function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=O;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("5bbb"),s=n("b639").Buffer,u=e.Uint8Array||function(){};function c(t){return s.from(t)}function l(t){return s.isBuffer(t)||t instanceof u}var f,d=n(1);f=d&&d.debuglog?d.debuglog("stream"):function(){};var h,p,m,g=n("96a5"),v=n("493f"),b=n("b9b5"),y=b.getHighWaterMark,w=n("9d8a").codes,_=w.ERR_INVALID_ARG_TYPE,x=w.ERR_STREAM_PUSH_AFTER_EOF,C=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var k=v.errorOrDestroy,M=["error","close","destroy","pause","resume"];function E(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function O(t,e,r){i=i||n("e666"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),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&&(h||(h=n("7d72").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("e666"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(t,e,n,r,i){f("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,B(t,a);else if(i||(o=N(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=c(e)),r)a.endEmitted?k(t,new S):D(t,a,e,!0);else if(a.ended)k(t,new x);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?D(t,a,e,!1):j(t,a)):D(t,a,e,!1)}else r||(a.reading=!1,j(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function D(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&L(t)),j(t,e)}function N(t,e){var n;return l(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new _("chunk",["string","Buffer","Uint8Array"],e)),n}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=v.destroy,T.prototype._undestroy=v.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=s.from(t,e),e=""),n=!0),A(this,t,e,!1,n)},T.prototype.unshift=function(t){return A(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){h||(h=n("7d72").StringDecoder);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=1073741824;function P(t){return t>=R?t=R:(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 B(t,e){if(f("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,z(t)))}}function L(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(z,t))}function z(t){var e=t._readableState;f("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,W(t)}function j(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var n=e.length;if(f("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function $(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,W(t))}}function H(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function V(t){f("readable nexttick read 0"),t.read(0)}function U(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(q,t,e))}function q(t,e){f("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),W(t),e.flowing&&!e.reading&&t.read(0)}function W(t){var e=t._readableState;f("flow",e.flowing);while(e.flowing&&null!==t.read());}function K(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(Y,e,t))}function Y(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function X(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}T.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):L(this),null;if(t=I(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,f("length less than watermark",i)),e.ended||e.reading?(i=!1,f("reading or ended",i)):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=I(n,e))),r=t>0?K(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){k(this,new C("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?c:b;function u(t,e){f("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,h())}function c(){f("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",u);var l=$(n);t.on("drain",l);var d=!1;function h(){f("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function p(e){f("ondata");var r=t.write(e);f("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==X(i.pipes,t))&&!d&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function m(e){f("onerror",e),b(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function g(){t.removeListener("finish",v),b()}function v(){f("onfinish"),t.removeListener("close",g),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",p),E(t,"error",m),t.once("close",g),t.once("finish",v),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={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,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=X(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},T.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,f("on readable",i.length,i.reading),i.length?L(this):i.reading||r.nextTick(V,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(H,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(H,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,U(this,t)),t.paused=!1,this},T.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("4186")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=K,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===m&&(m=n("919c")),m(T,t,e)})}).call(this,n("c8ba"),n("4362"))},"428f":function(t,e,n){var r=n("da84");t.exports=r},"429b":function(t,e,n){t.exports=n("faa1").EventEmitter},"42a7":function(t,e,n){"use strict";var r=n("d113").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}function o(){}function a(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,n){if("function"===typeof e)return s(t,null,e);e||(e={}),n=i(n||o);var u=e.readable||!1!==e.readable&&t.readable,c=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||d()},f=t._writableState&&t._writableState.finished,d=function(){c=!1,f=!0,u||n.call(t)},h=t._readableState&&t._readableState.endEmitted,p=function(){u=!1,h=!0,c||n.call(t)},m=function(e){n.call(t,e)},g=function(){var e;return u&&!h?(t._readableState&&t._readableState.ended||(e=new r),n.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new r),n.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return a(t)?(t.on("complete",d),t.on("abort",g),t.req?v():t.on("request",v)):c&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",p),t.on("finish",d),!1!==e.error&&t.on("error",m),t.on("close",g),function(){t.removeListener("complete",d),t.removeListener("abort",g),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",m),t.removeListener("close",g)}}t.exports=s},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44a3":function(t,e,n){"use strict";var r=n("80af"),i=n("f3a3"),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(t,e){this.eddsa=t,"object"!==typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"45fc":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").some,o=n("a640"),a=n("ae40"),s=o("some"),u=a("some");r({target:"Array",proto:!0,forced:!s||!u},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"466d":function(t,e,n){"use strict";var r=n("d784"),i=n("825a"),o=n("50c4"),a=n("1d80"),s=n("8aa5"),u=n("14c3");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=i(t),c=String(this);if(!a.global)return u(a,c);var l=a.unicode;a.lastIndex=0;var f,d=[],h=0;while(null!==(f=u(a,c))){var p=String(f[0]);d[h]=p,""===p&&(a.lastIndex=s(c,o(a.lastIndex),l)),h++}return 0===h?null:d}]}))},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},4681:function(t,e,n){"use strict";var r=n("966d");function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(a,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}t.exports={destroy:i,undestroy:o}},4726:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=59)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},14:function(t,e){t.exports=n("14e9")},18:function(t,e){t.exports=n("dcdc")},21:function(t,e){t.exports=n("d397")},26:function(t,e){t.exports=n("92fa")},3:function(t,e){t.exports=n("8122")},31:function(t,e){t.exports=n("2a5e")},32:function(t,e){t.exports=n("e452")},51:function(t,e){t.exports=n("f494")},59:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-cascader-panel",t.border&&"is-bordered"],on:{keydown:t.handleKeyDown}},t._l(t.menus,(function(t,e){return n("cascader-menu",{key:e,ref:"menu",refInFor:!0,attrs:{index:e,nodes:t}})})),1)},i=[];r._withStripped=!0;var o,a,s=n(26),u=n.n(s),c=n(14),l=n.n(c),f=n(18),d=n.n(f),h=n(51),p=n.n(h),m=n(3),g=function(t){return t.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:d.a,ElRadio:p.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(e){return t.isInPath(e)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,(function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}})):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node,n=t[e.level-1]||{};return n.uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=g),t("el-checkbox",u()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(m["isEqual"])(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:g}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn,i=r?r({node:n,data:n.data}):null;return t("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,c=this.nodeId,l=s.expandTrigger,f=s.checkStrictly,d=s.multiple,h=!f&&a,p={on:{}};return"click"===l?p.on.click=this.handleExpand:(p.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},p.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||f||d||(p.on.click=this.handleCheckChange),t("li",u()([{attrs:{role:"menuitem",id:c,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":f,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},p]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},b=v,y=n(0),w=Object(y["a"])(b,o,a,!1,null,null,null);w.options.__file="packages/cascader-panel/src/cascader-node.vue";var _,x,C=w.exports,S=n(6),k=n.n(S),M={name:"ElCascaderMenu",mixins:[k.a],inject:["panel"],components:{ElScrollbar:l.a,CascaderNode:C},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(m["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=t.clientX-o,s=this.$el,u=s.offsetWidth,c=s.offsetHeight,l=e.offsetTop,f=l+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+l+" L"+u+" 0 V"+l+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+u+" "+c+" V"+f+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return t("cascader-node",u()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":o,"aria-owns":o?e:null}},r]))}));return[].concat(i,[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",u()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},E=M,O=Object(y["a"])(E,_,x,!1,null,null,null);O.options.__file="packages/cascader-panel/src/cascader-menu.vue";var T=O.exports,A=n(21),D=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var R=0,P=function(){function t(e,n,r){N(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=R++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(t){return t.value})),this.pathLabels=this.pathNodes.map((function(t){return t.label})),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new t(r,n,e)}))},t.prototype.calculatePathNodes=function(){var t=[this],e=this.parent;while(e)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some((function(t){return Object(m["isEqual"])(t,e)})):Object(m["isEqual"])(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(m["capitalize"])(t);this.children.forEach((function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))}))},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(m["capitalize"])(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children,e=t.filter((function(t){return!t.isDisabled})),n=!!e.length&&e.every((function(t){return t.checked}));this.setCheckState(n)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce((function(t,e){var n=e.checked?1:e.indeterminate?.5:0;return t+n}),0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},D(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(A["isDef"])(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}(),I=P;function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var L=function t(e,n){return e.reduce((function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e}),[])},z=function(){function t(e,n){B(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(m["coerceTruthyValueToArray"])(t),this.nodes=t.map((function(t){return new I(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new I(t,this.config,e),r=e?e.children:this.nodes;r.push(n)},t.prototype.appendNodes=function(t,e){var n=this;t=Object(m["coerceTruthyValueToArray"])(t),t.forEach((function(t){return n.appendNode(t,e)}))},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:L(this.nodes,t)},t.prototype.getNodeByValue=function(t){if(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter((function(e){return Object(m["valueEquals"])(e.path,t)||e.value===t}));return e&&e.length?e[0]:null}return null},t}(),j=z,F=n(9),$=n.n(F),H=n(32),V=n.n(H),U=n(31),q=n.n(U),W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},K=V.a.keys,G={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:m["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Y=function(t){return!t.getAttribute("aria-owns")},X=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,t);return r[i+e]||null}return null},Z=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},J=function(t){t&&(t.focus(),!Y(t)&&t.click())},Q=function(t){if(t){var e=t.querySelector("input");e?e.click():Y(t)&&t.click()}},tt={name:"ElCascaderPanel",components:{CascaderMenu:T},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return $()(W({},G),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(t){Object(m["isEqual"])(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){Object(m["isEmpty"])(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(m["isEmpty"])(e)?this.lazyLoad():(this.store=new j(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(m["isEqual"])(t,e)||(this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this,e=this.getFlattedNodes(this.leafOnly);e.forEach((function(e){e.syncCheckState(t.checkedValue)}))},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(m["isEmpty"])(r))if(Object(m["isEmpty"])(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var u=r.map((function(e){return t.getNodeByValue(e.getValue())}));this.expandNodes(u)}},expandNodes:function(t){var e=this;t.forEach((function(t){return e.handleExpand(t,!0)}))},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple,r=n?Object(m["coerceTruthyValueToArray"])(e):[e];this.checkedNodePaths=r.map((function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]}))},handleKeyDown:function(t){var e=t.target,n=t.keyCode;switch(n){case K.up:var r=X(e,-1);J(r);break;case K.down:var i=X(e,1);J(i);break;case K.left:var o=this.$refs.menu[Z(e)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');J(a)}break;case K.right:var s=this.$refs.menu[Z(e)+1];if(s){var u=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');J(u)}break;case K.enter:Q(e);break;case K.esc:case K.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map((function(t){return t.getValue()})),s=n.map((function(t){return t.getValue()}));Object(m["valueEquals"])(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new j([],r),this.menus=[this.store.getNodes()]),t.loading=!0;var i=function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(t){return t[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)};r.lazyLoad(t,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(t){return t.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var t=this.$refs.menu||[];t.forEach((function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");q()(n,r)}}))}},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(t);return r.filter((function(t){return t.checked}))}return Object(m["isEmpty"])(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter((function(t){return!t.isDisabled})).forEach((function(t){return t.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},et=tt,nt=Object(y["a"])(et,r,i,!1,null,null,null);nt.options.__file="packages/cascader-panel/src/cascader-panel.vue";var rt=nt.exports;rt.install=function(t){t.component(rt.name,rt)};e["default"]=rt},6:function(t,e){t.exports=n("6b7c")},9:function(t,e){t.exports=n("7f4d")}})},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4897:function(t,e,n){"use strict";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=n("f0d9"),i=f(r),o=n("2b0e"),a=f(o),s=n("3c4e"),u=f(s),c=n("9d7e"),l=f(c);function f(t){return t&&t.__esModule?t:{default:t}}var d=(0,l.default)(a.default),h=i.default,p=!1,m=function(){var t=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof t&&a.default.locale)return p||(p=!0,a.default.locale(a.default.config.lang,(0,u.default)(h,a.default.locale(a.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},g=e.t=function(t,e){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=t.split("."),i=h,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return d(n,e);if(!n)return"";i=n}return""},v=e.use=function(t){h=t||h},b=e.i18n=function(t){m=t||m};e.default={use:v,t:g,i18n:b}},"48e6":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(5).Buffer}catch(M){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],h=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(t);p=p.idivn(h),n=p.isZero()?m+n:c[d-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new v;return r.mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):g(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,y),i(x,y),i(C,y),C.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}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 _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"493f":function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){a(t,e),i(t)}function i(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 a(t,e){t.emit("error",e)}function s(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:s}}).call(this,n("4362"))},"49ce":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){q(e,t)}}var o;t.exports=O,O.WritableState=E;var a={deprecate:n("b7d1")},s=n("f12a"),u=n("b639").Buffer,c=e.Uint8Array||function(){};function l(t){return u.from(t)}function f(t){return u.isBuffer(t)||t instanceof c}var d,h=n("9019"),p=n("05f0"),m=p.getHighWaterMark,g=n("d113").codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,x=g.ERR_STREAM_NULL_VALUES,C=g.ERR_STREAM_WRITE_AFTER_END,S=g.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function M(){}function E(t,e,r){o=o||n("5e7d"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=m(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){B(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(t){o=o||n("5e7d");var e=this instanceof o;if(!e&&!d.call(O,this))return new O(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)),s.call(this)}function T(t,e){var n=new C;k(t,n),r.nextTick(e,n)}function A(t,e,n,i){var o;return null===n?o=new x:"string"===typeof n||e.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}function D(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,n)),e}function N(t,e,n,r,i,o){if(!n){var a=D(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else R(t,e,!1,s,r,i,o);return u}function R(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new _("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function P(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(V,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),V(t,e))}function I(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function B(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(I(n),e)P(t,n,i,e,o);else{var a=F(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||j(t,n),i?r.nextTick(L,t,n,a,o):L(t,n,a,o)}}function L(t,e,n,r){n||z(t,e),e.pendingcb--,r(),V(t,e)}function z(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function j(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;var s=0,u=!0;while(n)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,R(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(n){var c=n.chunk,l=n.encoding,f=n.callback,d=e.objectMode?1:c.length;if(R(t,e,!1,d,c,l,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function F(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function $(t,e){t._final((function(n){e.pendingcb--,n&&k(t,n),e.prefinished=!0,t.emit("prefinish"),V(t,e)}))}function H(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick($,t,e)))}function V(t,e){var n=F(e);if(n&&(H(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}function U(t,e,n){e.ending=!0,V(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function q(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}n("3fb5")(O,s),E.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===O&&(t&&t._writableState instanceof E)}})):d=function(t){return t instanceof this},O.prototype.pipe=function(){k(this,new w)},O.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&f(t);return o&&!u.isBuffer(t)&&(t=l(t)),"function"===typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=M),r.ending?T(this,n):(o||A(this,r,t,n))&&(r.pendingcb++,i=N(this,r,o,t,e,n)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||j(this,t))},O.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,n){n(new b("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||U(this,r,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"4a7b":function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){"undefined"!==typeof e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):"undefined"!==typeof e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):"undefined"!==typeof t[i]&&(n[i]=t[i])})),r.forEach(a,(function(r){"undefined"!==typeof e[r]?n[r]=e[r]:"undefined"!==typeof t[r]&&(n[r]=t[r])}));var s=i.concat(o).concat(a),u=Object.keys(e).filter((function(t){return-1===s.indexOf(t)}));return r.forEach(u,(function(r){"undefined"!==typeof e[r]?n[r]=e[r]:"undefined"!==typeof t[r]&&(n[r]=t[r])})),n}},"4ae1":function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("1c0b"),a=n("825a"),s=n("861d"),u=n("7c73"),c=n("0538"),l=n("d039"),f=i("Reflect","construct"),d=l((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!l((function(){f((function(){}))})),p=d||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!d)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var i=n.prototype,l=u(s(i)?i:Object.prototype),p=Function.apply.call(t,l,e);return s(p)?p:l}})},"4b26":function(t,e,n){"use strict";e.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(t){return t&&t.__esModule?t:{default:t}}var s=!1,u=!1,c=void 0,l=function(){if(!i.default.prototype.$isServer){var t=d.modalDom;return t?s=!0:(s=!1,t=document.createElement("div"),d.modalDom=t,t.addEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),t}},f={},d={modalFade:!0,getInstance:function(t){return f[t]},register:function(t,e){t&&e&&(f[t]=e)},deregister:function(t){t&&(f[t]=null,delete f[t])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var t=d.modalStack[d.modalStack.length-1];if(t){var e=d.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,r,a){if(!i.default.prototype.$isServer&&t&&void 0!==e){this.modalFade=a;for(var u=this.modalStack,c=0,f=u.length;c<f;c++){var d=u[c];if(d.id===t)return}var h=l();if((0,o.addClass)(h,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(h,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(t){return(0,o.addClass)(h,t)}))}setTimeout((function(){(0,o.removeClass)(h,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),e&&(h.style.zIndex=e),h.tabIndex=0,h.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:r})}},closeModal:function(t){var e=this.modalStack,n=l();if(e.length>0){var r=e[e.length-1];if(r.id===t){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.forEach((function(t){return(0,o.removeClass)(n,t)}))}e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var a=e.length-1;a>=0;a--)if(e[a].id===t){e.splice(a,1);break}}0===e.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return u||(c=c||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,u=!0),c},set:function(t){c=t}});var h=function(){if(!i.default.prototype.$isServer&&d.modalStack.length>0){var t=d.modalStack[d.modalStack.length-1];if(!t)return;var e=d.getInstance(t.id);return e}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(t){if(27===t.keyCode){var e=h();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}})),e.default=d},"4b8b":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"4ba9":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}});return e.Decryptor=n,e}(),t.mode.OFB}))},"4d20":function(t,e,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),u=n("faf5"),c=Object.getOwnPropertyDescriptor;e.f=n("0bad")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d88":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"4dd0":function(t,e,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=n("ae84"),s=n("fda6"),u=n("8707").Buffer;t.exports=function(t,e){var n,c=t.toString(),l=c.match(r);if(l){var f="aes"+l[1],d=u.from(l[2],"hex"),h=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(e,d.slice(0,8),parseInt(l[1],10)).key,m=[],g=s.createDecipheriv(f,p,d);m.push(g.update(h)),m.push(g.final()),n=u.concat(m)}else{var v=c.match(o);n=u.from(v[2].replace(/[\r\n]/g,""),"base64")}var b=c.match(i)[1];return{tag:b,data:n}}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4e2b":function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5"),o=n("5ee7"),a=n("0184");function s(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}i(u,a),t.exports=u,u.create=function(t){return new u(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(n,i,t.tmp,0),n=t.tmp[0],i=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=c[a>>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,t.keys,a)}},u.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r<t.length;r++)t[r]=n;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)r.equal(t[n],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,n,r,i){for(var a=e,s=n,u=0;u<t.keys.length;u+=2){var c=t.keys[u],l=t.keys[u+1];o.expand(s,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1];var f=o.substitute(c,l),d=o.permute(f),h=s;s=(a^d)>>>0,a=h}o.rip(s,a,r,i)},u.prototype._decrypt=function(t,e,n,r,i){for(var a=n,s=e,u=t.keys.length-2;u>=0;u-=2){var c=t.keys[u],l=t.keys[u+1];o.expand(a,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1];var f=o.substitute(c,l),d=o.permute(f),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,r,i)}},"4e4b":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=61)}([function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},,,function(t,e){t.exports=n("8122")},function(t,e){t.exports=n("d010")},function(t,e){t.exports=n("e974")},function(t,e){t.exports=n("6b7c")},,,,function(t,e){t.exports=n("f3ad")},,function(t,e){t.exports=n("417f")},,function(t,e){t.exports=n("14e9")},,function(t,e){t.exports=n("4010")},function(t,e){t.exports=n("0e15")},,function(t,e){t.exports=n("4897")},,function(t,e){t.exports=n("d397")},function(t,e){t.exports=n("12f2")},,,,,,,,,function(t,e){t.exports=n("2a5e")},,,function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u="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},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof t?"undefined":u(t))&&"object"===("undefined"===typeof e?"undefined":u(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(t,n)===Object(s["getValueByPath"])(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(s["getValueByPath"])(t,n)===Object(s["getValueByPath"])(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(s["escapeRegexpString"])(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple,r=n?e:[e],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=c,f=n(0),d=Object(f["a"])(l,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";e["a"]=d.exports},,,,function(t,e){t.exports=n("8bbc")},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,(function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])})),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.navigateOptions("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.deletePrevTag(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{keyup:function(e){return t.debouncedOnInputChange(e)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],paste:function(e){return t.debouncedOnInputChange(e)},mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),u=n.n(s),c=n(6),l=n.n(c),f=n(10),d=n.n(f),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":t.$parent.multiple},t.popperClass],style:{minWidth:t.minWidth}},[t._t("default")],2)},p=[];h._withStripped=!0;var m=n(5),g=n.n(m),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[g.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){t.$parent.visible&&t.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},b=v,y=n(0),w=Object(y["a"])(b,h,p,!1,null,null,null);w.options.__file="packages/select/src/select-dropdown.vue";var _=w.exports,x=n(34),C=n(38),S=n.n(C),k=n(14),M=n.n(k),E=n(17),O=n.n(E),T=n(12),A=n.n(T),D=n(16),N=n(19),R=n(31),P=n.n(R),I=n(3),B={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(t){return t.visible})).every((function(t){return t.disabled}))}},watch:{hoverIndex:function(t){var e=this;"number"===typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach((function(t){t.hover=e.hoverOption===t}))}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick((function(){return e.scrollToOption(e.hoverOption)}))}}else this.visible=!0}}},L=n(21),z={mixins:[a.a,l.a,u()("reference"),B],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(I["isIE"])()&&!Object(I["isEdge"])()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,e=this.clearable&&!this.selectDisabled&&this.inputHovering&&t;return e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter((function(t){return!t.created})).some((function(e){return e.currentLabel===t.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"}},components:{ElInput:d.a,ElSelectMenu:_,ElOption:x["a"],ElTag:S.a,ElScrollbar:M.a},directives:{Clickoutside:A.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,default:function(){return Object(N["t"])("el.select.placeholder")}},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick((function(){t.resetInputHeight()}))},placeholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(I["valueEquals"])(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick((function(){t.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick((function(t){return e.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(L["isKorean"])(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick((function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"===typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");P()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick((function(){return t.scrollToOption(t.selected)}))},emitChange:function(t){Object(I["valueEquals"])(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(I["getValueByPath"])(a.value,this.valueKey)===Object(I["getValueByPath"])(t,this.valueKey):a.value===t;if(s){e=a;break}}if(e)return e;var u=n||r||i?"":t,c={value:t,currentLabel:u};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(e){n.push(t.getOption(e))})),this.selected=n,this.$nextTick((function(){t.resetInputHeight()}))},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout((function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)}),50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,(function(t){return"INPUT"===t.tagName}))[0],r=t.$refs.tags,i=t.initialInputHeight||40;n.style.height=0===t.selected.length?i+"px":Math.max(r?r.clientHeight+(r.clientHeight>i?6:0):0,i)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var t=this;setTimeout((function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((function(e){return t.options.indexOf(e)}))):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)}),300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n="[object object]"===Object.prototype.toString.call(e).toLowerCase();if(n){var r=this.valueKey,i=-1;return t.some((function(t,n){return Object(I["getValueByPath"])(t,r)===Object(I["getValueByPath"])(e,r)&&(i=n,!0)})),i}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(I["getValueByPath"])(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=O()(this.debounce,(function(){t.onInputChange()})),this.debouncedQueryChange=O()(this.debounce,(function(e){t.handleQueryChange(e.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(D["addResizeListener"])(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n={medium:36,small:32,mini:28},r=e.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(D["removeResizeListener"])(this.$el,this.handleResize)}},j=z,F=Object(y["a"])(j,r,i,!1,null,null,null);F.options.__file="packages/select/src/select.vue";var $=F.exports;$.install=function(t){t.component($.name,$)};e["default"]=$}])},"4e71":function(t,e,n){n("e198")("observable")},"4ea8":function(t,e,n){n("cdd9")},"4ebc":function(t,e,n){var r=n("4d88");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"4fd1":function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,a=[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],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function f(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 h(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<e>>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,C=0|this._dl,S=0|this._el,k=0|this._fl,M=0|this._gl,E=0|this._hl,O=0;O<32;O+=2)e[O]=t.readInt32BE(4*O),e[O+1]=t.readInt32BE(4*O+4);for(;O<160;O+=2){var T=e[O-30],A=e[O-30+1],D=h(T,A),N=p(A,T);T=e[O-4],A=e[O-4+1];var R=m(T,A),P=g(A,T),I=e[O-14],B=e[O-14+1],L=e[O-32],z=e[O-32+1],j=N+B|0,F=D+I+v(j,N)|0;j=j+P|0,F=F+R+v(j,P)|0,j=j+z|0,F=F+L+v(j,z)|0,e[O]=F,e[O+1]=j}for(var $=0;$<160;$+=2){F=e[$],j=e[$+1];var H=l(n,r,i),V=l(w,_,x),U=f(n,w),q=f(w,n),W=d(s,S),K=d(S,s),G=a[$],Y=a[$+1],X=c(s,u,b),Z=c(S,k,M),J=E+K|0,Q=y+W+v(J,E)|0;J=J+Z|0,Q=Q+X+v(J,Z)|0,J=J+Y|0,Q=Q+G+v(J,Y)|0,J=J+j|0,Q=Q+F+v(J,j)|0;var tt=q+V|0,et=U+H+v(tt,q)|0;y=b,E=M,b=u,M=k,u=s,k=S,S=C+J|0,s=o+Q+v(S,C)|0,o=i,C=x,i=r,x=_,r=n,_=w,w=J+tt|0,n=Q+et+v(w,J)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+S|0,this._fl=this._fl+k|0,this._gl=this._gl+M|0,this._hl=this._hl+E|0,this._ah=this._ah+n+v(this._al,w)|0,this._bh=this._bh+r+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,x)|0,this._dh=this._dh+o+v(this._dl,C)|0,this._eh=this._eh+s+v(this._el,S)|0,this._fh=this._fh+u+v(this._fl,k)|0,this._gh=this._gh+b+v(this._gl,M)|0,this._hh=this._hh+y+v(this._hl,E)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+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=u},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"511f":function(t,e,n){n("0b99"),n("658f"),t.exports=n("fcd4").f("iterator")},5128:function(t,e,n){"use strict";e.__esModule=!0,e.PopupManager=void 0;var r=n("2b0e"),i=d(r),o=n("7f4d"),a=d(o),s=n("4b26"),u=d(s),c=n("e62d"),l=d(c),f=n("5924");function d(t){return t&&t.__esModule?t:{default:t}}var h=1,p=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+h++,u.default.register(this._popupId,this)},beforeDestroy:function(){u.default.deregister(this._popupId),u.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(u.default.zIndex=r),n&&(this._closing&&(u.default.closeModal(this._popupId),this._closing=!1),u.default.openModal(this._popupId,u.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,f.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,f.getStyle)(document.body,"paddingRight"),10)),p=(0,l.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,f.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,f.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=u.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){u.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,f.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=u.default},"512c":function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),u="prototype",c=function(t,e,n){var l,f,d,h=t&c.F,p=t&c.G,m=t&c.S,g=t&c.P,v=t&c.B,b=t&c.W,y=p?i:i[e]||(i[e]={}),w=y[u],_=p?r:m?r[e]:(r[e]||{})[u];for(l in p&&(n=e),n)f=!h&&_&&void 0!==_[l],f&&s(y,l)||(d=f?_[l]:n[l],y[l]=p&&"function"!=typeof _[l]?n[l]:v&&f?o(d,r):b&&_[l]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[l]=d,t&c.R&&w&&!w[l]&&a(w,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5165:function(t,e,n){(function(t){var r=n("8c8a");function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,n){while(e._cache.length<n.length)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,o)}}).call(this,n("b639").Buffer)},5239:function(t,e,n){var r=n("8707").Buffer;function i(t,e,n){var r,i,a,s=-1,u=8,c=0;while(++s<u)r=t._cipher.encryptBlock(t._prev),i=e&1<<7-s?128:0,a=r[0]^i,c+=(128&a)>>s%8,t._prev=o(t._prev,n?i:a);return c}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);t=r.concat([t,r.from([e])]);while(++i<n)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,n){var o=e.length,a=r.allocUnsafe(o),s=-1;while(++s<o)a[s]=i(t,e[s],n);return a}},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5291:function(t,e,n){var r=n("0106"),i=n("8707").Buffer;function o(t,e){return i.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}t.exports=o},5319:function(t,e,n){"use strict";var r=n("d784"),i=n("825a"),o=n("50c4"),a=n("a691"),s=n("1d80"),u=n("8aa5"),c=n("0cb2"),l=n("14c3"),f=Math.max,d=Math.min,h=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,g=p?"$":"$0";return[function(n,r){var i=s(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,r){if(!p&&m||"string"===typeof r&&-1===r.indexOf(g)){var s=n(e,t,this,r);if(s.done)return s.value}var v=i(t),b=String(this),y="function"===typeof r;y||(r=String(r));var w=v.global;if(w){var _=v.unicode;v.lastIndex=0}var x=[];while(1){var C=l(v,b);if(null===C)break;if(x.push(C),!w)break;var S=String(C[0]);""===S&&(v.lastIndex=u(b,o(v.lastIndex),_))}for(var k="",M=0,E=0;E<x.length;E++){C=x[E];for(var O=String(C[0]),T=f(d(a(C.index),b.length),0),A=[],D=1;D<C.length;D++)A.push(h(C[D]));var N=C.groups;if(y){var R=[O].concat(A,T,b);void 0!==N&&R.push(N);var P=String(r.apply(void 0,R))}else P=c(O,b,T,A,N,r);T>=M&&(k+=b.slice(M,T)+P,M=T+O.length)}return k+b.slice(M)}]}))},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(t){return r="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},r(t)}},5488:function(t,e,n){"use strict";e.__esModule=!0;var r=n("5924");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(){i(this,t)}return t.prototype.beforeEnter=function(t){(0,r.addClass)(t,"collapse-transition"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},t.prototype.enter=function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},t.prototype.afterEnter=function(t){(0,r.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},t.prototype.beforeLeave=function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},t.prototype.leave=function(t){0!==t.scrollHeight&&((0,r.addClass)(t,"collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},t.prototype.afterLeave=function(t){(0,r.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},t}();e.default={name:"ElCollapseTransition",functional:!0,render:function(t,e){var n=e.children,r={on:new o};return t("transition",r,n)}}},5524:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"561d":function(t,e,n){(function(e){var r=n("48e6"),i=n("7a10"),o=new i,a=new r(24),s=new r(11),u=new r(10),c=new r(3),l=new r(7),f=n("58a2"),d=n("11dc");function h(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new r(t),this}function p(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new r(t),this}t.exports=v;var m={};function g(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in m)return m[r];var i,d=0;if(t.isEven()||!f.simpleSieve||!f.fermatTest(t)||!o.test(t))return d+=1,d+="02"===n||"05"===n?8:4,m[r]=d,d;switch(o.test(t.shrn(1))||(d+=2),n){case"02":t.mod(a).cmp(s)&&(d+=8);break;case"05":i=t.mod(u),i.cmp(c)&&i.cmp(l)&&(d+=8);break;default:d+=4}return m[r]=d,d}function v(t,e,n){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function b(t,n){var r=new e(t.toArray());return n?r.toString(n):r}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new r(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(t){t=new r(t),t=t.toRed(this._prime);var n=t.redPow(this._priv).fromRed(),i=new e(n.toArray()),o=this.getPrime();if(i.length<o.length){var a=new e(o.length-i.length);a.fill(0),i=e.concat([a,i])}return i},v.prototype.getPublicKey=function(t){return b(this._pub,t)},v.prototype.getPrivateKey=function(t){return b(this._priv,t)},v.prototype.getPrime=function(t){return b(this.__prime,t)},v.prototype.getGenerator=function(t){return b(this._gen,t)},v.prototype.setGenerator=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.__gen=t,this._gen=new r(t),this}}).call(this,n("b639").Buffer)},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56b5":function(t,e,n){"use strict";var r=n("7f7a"),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=r.define("RDNSequence",(function(){this.seqof(u)})),l=r.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},"57e2":function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("42a7"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[d].read();null!==n&&(t[l]=null,t[a]=null,t[s]=null,e(h(n,!1)))}}function m(t){e.nextTick(p,t)}function g(t,e){return function(n,r){t.then((function(){e[c]?n(h(void 0,!0)):e[f](n,r)}),r)}}var v=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var t=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[u]?r(t[u]):n(h(void 0,!0))}))}));var r,i=this[l];if(i)r=new Promise(g(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));r=new Promise(this[f])}return this[l]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(h(void 0,!0))}))}))})),r),v),y=function(t){var e,n=Object.create(b,(e={},i(e,d,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var r=n[d].read();r?(n[l]=null,n[a]=null,n[s]=null,t(h(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[l]=null,n[a]=null,n[s]=null,e(t)),void(n[u]=t)}var r=n[a];null!==r&&(n[l]=null,n[a]=null,n[s]=null,r(h(void 0,!0))),n[c]=!0})),t.on("readable",m.bind(null,n)),n};t.exports=y}).call(this,n("4362"))},"58a2":function(t,e,n){var r=n("11dc");t.exports=y,y.simpleSieve=v,y.fermatTest=b;var i=n("48e6"),o=new i(24),a=n("7a10"),s=new a,u=new i(1),c=new i(2),l=new i(5),f=(new i(16),new i(8),new i(10)),d=new i(3),h=(new i(7),new i(11)),p=new i(4),m=(new i(12),null);function g(){if(null!==m)return m;var t=1048576,e=[];e[0]=2;for(var n=1,r=3;r<t;r+=2){for(var i=Math.ceil(Math.sqrt(r)),o=0;o<n&&e[o]<=i;o++)if(r%e[o]===0)break;n!==o&&e[o]<=i||(e[n++]=r)}return m=e,e}function v(t){for(var e=g(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function b(t){var e=i.mont(t);return 0===c.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function y(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var n,a;e=new i(e);while(1){n=new i(r(Math.ceil(t/8)));while(n.bitLength()>t)n.ishrn(1);if(n.isEven()&&n.iadd(u),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(l))while(n.mod(f).cmp(d))n.iadd(p)}else while(n.mod(o).cmp(h))n.iadd(p);if(a=n.shrn(1),v(a)&&v(n)&&b(a)&&b(n)&&s.test(a)&&s.test(n))return n}}},5919:function(t,e,n){"use strict";e.sha1=n("13e2"),e.sha224=n("07f2"),e.sha256=n("6eed"),e.sha384=n("8b95"),e.sha512=n("b525")},5924:function(t,e,n){"use strict";e.__esModule=!0,e.isInContainer=e.getScrollContainer=e.isScroll=e.getStyle=e.once=e.off=e.on=void 0;var r="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};e.hasClass=m,e.addClass=g,e.removeClass=v,e.setStyle=y;var i=n("2b0e"),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}var s=o.default.prototype.$isServer,u=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,l=s?0:Number(document.documentMode),f=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(t){return t.replace(u,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(c,"Moz$1")},h=e.on=function(){return!s&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}(),p=e.off=function(){return!s&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}();e.once=function(t,e,n){var r=function r(){n&&n.apply(this,arguments),p(t,e,r)};h(t,e,r)};function m(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function g(t,e){if(t){for(var n=t.className,r=(e||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(t.classList?t.classList.add(a):m(t,a)||(n+=" "+a))}t.classList||(t.className=n)}}function v(t,e){if(t&&e){for(var n=e.split(" "),r=" "+t.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(t.classList?t.classList.remove(a):m(t,a)&&(r=r.replace(" "+a+" "," ")))}t.classList||(t.className=f(r))}}var b=e.getStyle=l<9?function(t,e){if(!s){if(!t||!e)return null;e=d(e),"float"===e&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(n){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!s){if(!t||!e)return null;e=d(e),"float"===e&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(r){return t.style[e]}}};function y(t,e,n){if(t&&e)if("object"===("undefined"===typeof e?"undefined":r(e)))for(var i in e)e.hasOwnProperty(i)&&y(t,i,e[i]);else e=d(e),"opacity"===e&&l<9?t.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":t.style[e]=n}var w=e.isScroll=function(t,e){if(!s){var n=null!==e||void 0!==e,r=b(t,n?e?"overflow-y":"overflow-x":"overflow");return r.match(/(scroll|auto)/)}};e.getScrollContainer=function(t,e){if(!s){var n=t;while(n){if([window,document,document.documentElement].includes(n))return window;if(w(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(s||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,u=arguments;function c(){o=Number(new Date),n.apply(a,u)}function l(){i=void 0}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>t?c():!0!==e&&(i=setTimeout(r?l:c,void 0===r?t-s:t))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),a}},5980:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){(function(){var e=t,n=e.lib,r=n.Base,i=e.enc,o=i.Utf8,a=e.algo;a.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),a=this._iKey=e.clone(),s=i.words,u=a.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var r=e.finalize(this._oKey.clone().concat(n));return r}})})()}))},"5a76":function(t,e,n){var r=n("f576");t.exports=function(t){return(new r).update(t).digest()}},"5a94":function(t,e,n){var r=n("b367")("keys"),i=n("8b1a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"5bbb":function(t,e,n){t.exports=n("faa1").EventEmitter},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5c96":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=45)}([function(t,e){t.exports=n("d940")},function(t,e){t.exports=n("5924")},function(t,e){t.exports=n("8122")},function(t,e){t.exports=n("d010")},function(t,e){t.exports=n("6b7c")},function(t,e){t.exports=n("e974")},function(t,e){t.exports=n("2b0e")},function(t,e){t.exports=n("7f4d")},function(t,e){t.exports=n("f3ad")},function(t,e){t.exports=n("2bb5")},function(t,e){t.exports=n("417f")},function(t,e){t.exports=n("4897")},function(t,e){t.exports=n("eedf")},function(t,e){t.exports=n("4010")},function(t,e){t.exports=n("5128")},function(t,e){t.exports=n("0e15")},function(t,e){t.exports=n("dcdc")},function(t,e){t.exports=n("14e9")},function(t,e){t.exports=n("a742")},function(t,e){t.exports=n("d397")},function(t,e){t.exports=n("d7d1")},function(t,e){t.exports=n("5488")},function(t,e){t.exports=n("12f2")},function(t,e){t.exports=n("41f8")},function(t,e){t.exports=n("92fa")},function(t,e){t.exports=n("597f")},function(t,e){t.exports=n("299c")},function(t,e){t.exports=n("2a5e")},function(t,e){t.exports=n("e452")},function(t,e){t.exports=n("845f")},function(t,e){t.exports=n("8bbc")},function(t,e){t.exports=n("e62d")},function(t,e){t.exports=n("7fc1")},function(t,e){t.exports=n("c56a")},function(t,e){t.exports=n("c284")},function(t,e){t.exports=n("9619")},function(t,e){t.exports=n("4e4b")},function(t,e){t.exports=n("e772")},function(t,e){t.exports=n("c098")},function(t,e){t.exports=n("722f")},function(t,e){t.exports=n("a15e")},function(t,e){t.exports=n("e450")},function(t,e){t.exports=n("4726")},function(t,e){t.exports=n("f494")},function(t,e){t.exports=n("6ac9")},function(t,e,n){t.exports=n(46)},function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"el-pager",on:{click:t.onPagerClick}},[t.pageCount>0?n("li",{staticClass:"number",class:{active:1===t.currentPage,disabled:t.disabled}},[t._v("1")]):t._e(),t.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[t.quickprevIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("left")},mouseleave:function(e){t.quickprevIconClass="el-icon-more"}}}):t._e(),t._l(t.pagers,(function(e){return n("li",{key:e,staticClass:"number",class:{active:t.currentPage===e,disabled:t.disabled}},[t._v(t._s(e))])})),t.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[t.quicknextIconClass,{disabled:t.disabled}],on:{mouseenter:function(e){t.onMouseenter("right")},mouseleave:function(e){t.quicknextIconClass="el-icon-more"}}}):t._e(),t.pageCount>1?n("li",{staticClass:"number",class:{active:t.currentPage===t.pageCount,disabled:t.disabled}},[t._v(t._s(t.pageCount))]):t._e()],2)},i=[];r._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(t){t||(this.quickprevIconClass="el-icon-more")},showNextMore:function(t){t||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(t){var e=t.target;if("UL"!==e.tagName&&!this.disabled){var n=Number(t.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==e.className.indexOf("more")&&(-1!==e.className.indexOf("quickprev")?n=i-o:-1!==e.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(t){this.disabled||("left"===t?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var t=this.pagerCount,e=(t-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>t&&(n>t-e&&(i=!0),n<r-e&&(o=!0));var a=[];if(i&&!o)for(var s=r-(t-2),u=s;u<r;u++)a.push(u);else if(!i&&o)for(var c=2;c<t;c++)a.push(c);else if(i&&o)for(var l=Math.floor(t/2)-1,f=n-l;f<=n+l;f++)a.push(f);else for(var d=2;d<r;d++)a.push(d);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},a=o;function s(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}var u=s(a,r,i,!1,null,null,null);u.options.__file="packages/pagination/src/pager.vue";var c=u.exports,l=n(36),f=n.n(l),d=n(37),h=n.n(d),p=n(8),m=n.n(p),g=n(4),v=n.n(g),b=n(2),y={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(t){return(0|t)===t&&t>4&&t<22&&t%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(t){var e=this.layout;if(!e)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=t("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:t("prev"),jumper:t("jumper"),pager:t("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:t("next"),sizes:t("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:t("slot",[this.$slots.default?this.$slots.default:""]),total:t("total")},i=e.split(",").map((function(t){return t.trim()})),o=t("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach((function(t){"->"!==t?a?o.children.push(r[t]):n.children.push(r[t]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?t("span",[this.$parent.prevText]):t("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(t){return t("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?t("span",[this.$parent.nextText]):t("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(t,e){Object(b["valueEquals"])(t,e)||Array.isArray(t)&&(this.$parent.internalPageSize=t.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(t){var e=this;return t("span",{class:"el-pagination__sizes"},[t("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return t("el-option",{attrs:{value:n,label:n+e.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:f.a,ElOption:h.a},methods:{handleChange:function(t){t!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=t=parseInt(t,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",t),this.$parent.$emit("size-change",t))}}},Jumper:{mixins:[v.a],components:{ElInput:m.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(t){var e=t.keyCode,n=t.target;13===e&&this.handleChange(n.value)},handleInput:function(t){this.userInput=t},handleChange:function(t){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(t),this.$parent.emitChange(),this.userInput=null}},render:function(t){return t("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),t("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(t){return"number"===typeof this.$parent.total?t("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(t){this.internalCurrentPage=this.getValidCurrentPage(t),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var t=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var t=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(t){t=parseInt(t,10);var e="number"===typeof this.internalPageCount,n=void 0;return e?t<1?n=1:t>this.internalPageCount&&(n=this.internalPageCount):(isNaN(t)||t<1)&&(n=1),(void 0===n&&isNaN(t)||0===n)&&(n=1),void 0===n?t:n},emitChange:function(){var t=this;this.$nextTick((function(){(t.internalCurrentPage!==t.lastEmittedPage||t.userChangePageSize)&&(t.$emit("current-change",t.internalCurrentPage),t.lastEmittedPage=t.internalCurrentPage,t.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(t){this.internalCurrentPage=this.getValidCurrentPage(t)}},pageSize:{immediate:!0,handler:function(t){this.internalPageSize=isNaN(t)?10:t}},internalCurrentPage:{immediate:!0,handler:function(t){this.$emit("update:currentPage",t),this.lastEmittedPage=-1}},internalPageCount:function(t){var e=this.internalCurrentPage;t>0&&0===e?this.internalCurrentPage=1:e>t&&(this.internalCurrentPage=0===t?1:t,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(t){t.component(y.name,y)}},w=y,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{key:t.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":t.fullscreen,"el-dialog--center":t.center},t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[t._t("title",[n("span",{staticClass:"el-dialog__title"},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2),t.rendered?n("div",{staticClass:"el-dialog__body"},[t._t("default")],2):t._e(),t.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[t._t("footer")],2):t._e()])])])},x=[];_._withStripped=!0;var C=n(14),S=n.n(C),k=n(9),M=n.n(k),E=n(3),O=n.n(E),T={name:"ElDialog",mixins:[S.a,O.a,M.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){e.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){e.key++})))}},computed:{style:function(){var t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},A=T,D=s(A,_,x,!1,null,null,null);D.options.__file="packages/dialog/src/component.vue";var N=D.exports;N.install=function(t){t.component(N.name,N)};var R=N,P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":t.suggestionVisible,"aria-owns":t.id}},[n("el-input",t._b({ref:"input",on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},nativeOn:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex-1)},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.highlight(t.highlightedIndex+1)},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleKeyEnter(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.close(e)}]}},"el-input",[t.$props,t.$attrs],!1),[t.$slots.prepend?n("template",{slot:"prepend"},[t._t("prepend")],2):t._e(),t.$slots.append?n("template",{slot:"append"},[t._t("append")],2):t._e(),t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),t.$slots.suffix?n("template",{slot:"suffix"},[t._t("suffix")],2):t._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[t.popperClass?t.popperClass:""],attrs:{"visible-arrow":"","popper-options":t.popperOptions,"append-to-body":t.popperAppendToBody,placement:t.placement,id:t.id}},t._l(t.suggestions,(function(e,r){return n("li",{key:r,class:{highlighted:t.highlightedIndex===r},attrs:{id:t.id+"-item-"+r,role:"option","aria-selected":t.highlightedIndex===r},on:{click:function(n){t.select(e)}}},[t._t("default",[t._v("\n "+t._s(e[t.valueKey])+"\n ")],{item:e})],2)})),0)],1)},I=[];P._withStripped=!0;var B=n(15),L=n.n(B),z=n(10),j=n.n(z),F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!t.parent.hideLoading&&t.parent.loading},style:{width:t.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!t.parent.hideLoading&&t.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):t._t("default")],2)],1)])},$=[];F._withStripped=!0;var H=n(5),V=n.n(H),U=n(17),q=n.n(U),W={components:{ElScrollbar:q.a},mixins:[V.a,O.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(t){this.dispatch("ElAutocomplete","item-click",t)}},updated:function(){var t=this;this.$nextTick((function(e){t.popperJS&&t.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var t=this;this.$on("visible",(function(e,n){t.dropdownWidth=n+"px",t.showPopper=e}))}},K=W,G=s(K,F,$,!1,null,null,null);G.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var Y=G.exports,X=n(22),Z=n.n(X),J={name:"ElAutocomplete",mixins:[O.a,Z()("input"),M.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:m.a,ElAutocompleteSuggestions:Y},directives:{Clickoutside:j.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var t=this.suggestions,e=Array.isArray(t)&&t.length>0;return(e||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(b["generateId"])()}},watch:{suggestionVisible:function(t){var e=this.getInput();e&&this.broadcast("ElAutocompleteSuggestions","visible",[t,e.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(t){var e=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(t,(function(t){e.loading=!1,e.suggestionDisabled||(Array.isArray(t)?(e.suggestions=t,e.highlightedIndex=e.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(t){if(this.$emit("input",t),this.suggestionDisabled=!1,!this.triggerOnFocus&&!t)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(t)},handleChange:function(t){this.$emit("change",t)},handleFocus:function(t){this.activated=!0,this.$emit("focus",t),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(t){this.$emit("blur",t)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(t){this.activated=!1},handleKeyEnter:function(t){var e=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(t.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(t){e.suggestions=[],e.highlightedIndex=-1})))},select:function(t){var e=this;this.$emit("input",t[this.valueKey]),this.$emit("select",t),this.$nextTick((function(t){e.suggestions=[],e.highlightedIndex=-1}))},highlight:function(t){if(this.suggestionVisible&&!this.loading)if(t<0)this.highlightedIndex=-1;else{t>=this.suggestions.length&&(t=this.suggestions.length-1);var e=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=e.querySelectorAll(".el-autocomplete-suggestion__list li"),r=n[t],i=e.scrollTop,o=r.offsetTop;o+r.scrollHeight>i+e.clientHeight&&(e.scrollTop+=r.scrollHeight),o<i&&(e.scrollTop-=r.scrollHeight),this.highlightedIndex=t;var a=this.getInput();a.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var t=this;this.debouncedGetData=L()(this.debounce,this.getData),this.$on("item-click",(function(e){t.select(e)}));var e=this.getInput();e.setAttribute("role","textbox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls","id"),e.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},Q=J,tt=s(Q,P,I,!1,null,null,null);tt.options.__file="packages/autocomplete/src/autocomplete.vue";var et=tt.exports;et.install=function(t){t.component(et.name,et)};var nt,rt,it=et,ot=n(12),at=n.n(ot),st=n(29),ut=n.n(st),ct={name:"ElDropdown",componentName:"ElDropdown",mixins:[O.a,M.a],directives:{Clickoutside:j.a},components:{ElButton:at.a,ElButtonGroup:ut.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(b["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(t){this.broadcast("ElDropdownMenu","visible",t),this.$emit("visible-change",t)},focusing:function(t){var e=this.$el.querySelector(".el-dropdown-selfdefine");e&&(t?e.className+=" focusing":e.className=e.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var t=this;this.triggerElm.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var t=this;this.triggerElm.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.triggerElm.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(t){var e=t.keyCode;[38,40].indexOf(e)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),t.preventDefault(),t.stopPropagation()):13===e?this.handleClick():[9,27].indexOf(e)>-1&&this.hide()},handleItemKeyDown:function(t){var e=t.keyCode,n=t.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(e)>-1?(o=38===e?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),t.preventDefault(),t.stopPropagation()):13===e?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(e)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(t){this.removeTabindex(),t.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(t){t.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var t=this,e=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var u=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),u.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){t.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){t.focusing=!1})),this.triggerElm.addEventListener("click",(function(){t.focusing=!1}))),"hover"===e?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),u.addEventListener("mouseenter",n),u.addEventListener("mouseleave",r)):"click"===e&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(t,e){this.hideOnClick&&(this.visible=!1),this.$emit("command",t,e)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(t){var e=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=function(t){e.$emit("click",t),n()},s=r?t("el-button-group",[t("el-button",{attrs:{type:i,size:o},nativeOn:{click:a}},[this.$slots.default]),t("el-button",{ref:"trigger",attrs:{type:i,size:o},class:"el-dropdown__caret-button"},[t("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]):this.$slots.default;return t("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}]},[s,this.$slots.dropdown])}},lt=ct,ft=s(lt,nt,rt,!1,null,null,null);ft.options.__file="packages/dropdown/src/dropdown.vue";var dt=ft.exports;dt.install=function(t){t.component(dt.name,dt)};var ht=dt,pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[t.size&&"el-dropdown-menu--"+t.size]},[t._t("default")],2)])},mt=[];pt._withStripped=!0;var gt={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[V.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var t=this;this.$on("updatePopper",(function(){t.showPopper&&t.updatePopper()})),this.$on("visible",(function(e){t.showPopper=e}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(t){this.currentPlacement=t}}}},vt=gt,bt=s(vt,pt,mt,!1,null,null,null);bt.options.__file="packages/dropdown/src/dropdown-menu.vue";var yt=bt.exports;yt.install=function(t){t.component(yt.name,yt)};var wt=yt,_t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":t.disabled,"el-dropdown-menu__item--divided":t.divided},attrs:{"aria-disabled":t.disabled,tabindex:t.disabled?null:-1},on:{click:t.handleClick}},[t.icon?n("i",{class:t.icon}):t._e(),t._t("default")],2)},xt=[];_t._withStripped=!0;var Ct={name:"ElDropdownItem",mixins:[O.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(t){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},St=Ct,kt=s(St,_t,xt,!1,null,null,null);kt.options.__file="packages/dropdown/src/dropdown-item.vue";var Mt=kt.exports;Mt.install=function(t){t.component(Mt.name,Mt)};var Et=Mt,Ot=Ot||{};Ot.Utils=Ot.Utils||{},Ot.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(Ot.Utils.attemptFocus(n)||Ot.Utils.focusFirstDescendant(n))return!0}return!1},Ot.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(Ot.Utils.attemptFocus(n)||Ot.Utils.focusLastDescendant(n))return!0}return!1},Ot.Utils.attemptFocus=function(t){if(!Ot.Utils.isFocusable(t))return!1;Ot.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(e){}return Ot.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},Ot.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ot.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},Ot.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var Tt=Ot.Utils,At=function(t,e){this.domNode=e,this.parent=t,this.subMenuItems=[],this.subIndex=0,this.init()};At.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},At.prototype.gotoSubIndex=function(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t},At.prototype.addListeners=function(){var t=this,e=Tt.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener("keydown",(function(r){var i=!1;switch(r.keyCode){case e.down:t.gotoSubIndex(t.subIndex+1),i=!0;break;case e.up:t.gotoSubIndex(t.subIndex-1),i=!0;break;case e.tab:Tt.triggerEvent(n,"mouseleave");break;case e.enter:case e.space:i=!0,r.currentTarget.click();break}return i&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var Dt=At,Nt=function(t){this.domNode=t,this.submenu=null,this.init()};Nt.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var t=this.domNode.querySelector(".el-menu");t&&(this.submenu=new Dt(this,t)),this.addListeners()},Nt.prototype.addListeners=function(){var t=this,e=Tt.keys;this.domNode.addEventListener("keydown",(function(n){var r=!1;switch(n.keyCode){case e.down:Tt.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(0),r=!0;break;case e.up:Tt.triggerEvent(n.currentTarget,"mouseenter"),t.submenu&&t.submenu.gotoSubIndex(t.submenu.subMenuItems.length-1),r=!0;break;case e.tab:Tt.triggerEvent(n.currentTarget,"mouseleave");break;case e.enter:case e.space:r=!0,n.currentTarget.click();break}r&&n.preventDefault()}))};var Rt=Nt,Pt=function(t){this.domNode=t,this.init()};Pt.prototype.init=function(){var t=this.domNode.childNodes;[].filter.call(t,(function(t){return 1===t.nodeType})).forEach((function(t){new Rt(t)}))};var It,Bt,Lt=Pt,zt=n(1),jt={name:"ElMenu",render:function(t){var e=t("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?t("el-menu-collapse-transition",[e]):e},componentName:"ElMenu",mixins:[O.a,M.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(t,e){var n={props:{mode:"out-in"},on:{beforeEnter:function(t){t.style.opacity=.2},enter:function(t){Object(zt["addClass"])(t,"el-opacity-transition"),t.style.opacity=1},afterEnter:function(t){Object(zt["removeClass"])(t,"el-opacity-transition"),t.style.opacity=""},beforeLeave:function(t){t.dataset||(t.dataset={}),Object(zt["hasClass"])(t,"el-menu--collapse")?(Object(zt["removeClass"])(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(zt["addClass"])(t,"el-menu--collapse")):(Object(zt["addClass"])(t,"el-menu--collapse"),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth,Object(zt["removeClass"])(t,"el-menu--collapse")),t.style.width=t.scrollWidth+"px",t.style.overflow="hidden"},leave:function(t){Object(zt["addClass"])(t,"horizontal-collapse-transition"),t.style.width=t.dataset.scrollWidth+"px"}}};return t("transition",n,e.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(t){this.items[t]||(this.activeIndex=null),this.updateActiveIndex(t)},defaultOpeneds:function(t){this.collapse||(this.openedMenus=t)},collapse:function(t){t&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",t)}},methods:{updateActiveIndex:function(t){var e=this.items[t]||this.items[this.activeIndex]||this.items[this.defaultActive];e?(this.activeIndex=e.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(t){if(t=t.replace("#",""),/^[0-9a-fA-F]{3}$/.test(t)){t=t.split("");for(var e=2;e>=0;e--)t.splice(e,0,t[e]);t=t.join("")}return/^[0-9a-fA-F]{6}$/.test(t)?{red:parseInt(t.slice(0,2),16),green:parseInt(t.slice(2,4),16),blue:parseInt(t.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(t,e){var n=this.getColorChannels(t),r=n.red,i=n.green,o=n.blue;return e>0?(r*=1-e,i*=1-e,o*=1-e):(r+=(255-r)*e,i+=(255-i)*e,o+=(255-o)*e),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(o)+")"},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},openMenu:function(t,e){var n=this.openedMenus;-1===n.indexOf(t)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(t){return-1!==e.indexOf(t)}))),this.openedMenus.push(t))},closeMenu:function(t){var e=this.openedMenus.indexOf(t);-1!==e&&this.openedMenus.splice(e,1)},handleSubmenuClick:function(t){var e=t.index,n=t.indexPath,r=-1!==this.openedMenus.indexOf(e);r?(this.closeMenu(e),this.$emit("close",e,n)):(this.openMenu(e,n),this.$emit("open",e,n))},handleItemClick:function(t){var e=this,n=t.index,r=t.indexPath,i=this.activeIndex,o=null!==t.index;o&&(this.activeIndex=t.index),this.$emit("select",n,r,t),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(t,(function(t){if(e.activeIndex=i,t){if("NavigationDuplicated"===t.name)return;console.error(t)}}))},initOpenedMenu:function(){var t=this,e=this.activeIndex,n=this.items[e];if(n&&"horizontal"!==this.mode&&!this.collapse){var r=n.indexPath;r.forEach((function(e){var n=t.submenus[e];n&&t.openMenu(e,n.indexPath)}))}},routeToItem:function(t,e){var n=t.route||t.index;try{this.$router.push(n,(function(){}),e)}catch(r){console.error(r)}},open:function(t){var e=this,n=this.submenus[t.toString()].indexPath;n.forEach((function(t){return e.openMenu(t,n)}))},close:function(t){this.closeMenu(t)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Lt(this.$el),this.$watch("items",this.updateActiveIndex)}},Ft=jt,$t=s(Ft,It,Bt,!1,null,null,null);$t.options.__file="packages/menu/src/menu.vue";var Ht=$t.exports;Ht.install=function(t){t.component(Ht.name,Ht)};var Vt,Ut,qt=Ht,Wt=n(21),Kt=n.n(Wt),Gt={inject:["rootMenu"],computed:{indexPath:function(){var t=[this.index],e=this.$parent;while("ElMenu"!==e.$options.componentName)e.index&&t.unshift(e.index),e=e.$parent;return t},parentMenu:function(){var t=this.$parent;while(t&&-1===["ElMenu","ElSubmenu"].indexOf(t.$options.componentName))t=t.$parent;return t},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var t=20,e=this.$parent;if(this.rootMenu.collapse)t=20;else while(e&&"ElMenu"!==e.$options.componentName)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return{paddingLeft:t+"px"}}}},Yt={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:V.a.props.offset,boundariesPadding:V.a.props.boundariesPadding,popperOptions:V.a.props.popperOptions},data:V.a.data,methods:V.a.methods,beforeDestroy:V.a.beforeDestroy,deactivated:V.a.deactivated},Xt={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Gt,O.a,Yt],components:{ElCollapseTransition:Kt.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(t){var e=this;this.isMenuPopup&&this.$nextTick((function(t){e.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var t=!1,e=this.submenus,n=this.items;return Object.keys(n).forEach((function(e){n[e].active&&(t=!0)})),Object.keys(e).forEach((function(n){e[n].active&&(t=!0)})),t},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var t=!0,e=this.$parent;while(e&&e!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(e.$options.componentName)>-1){t=!1;break}e=e.$parent}return t}},methods:{handleCollapseToggle:function(t){t?this.initPopper():this.doDestroy()},addItem:function(t){this.$set(this.items,t.index,t)},removeItem:function(t){delete this.items[t.index]},addSubmenu:function(t){this.$set(this.submenus,t.index,t)},removeSubmenu:function(t){delete this.submenus[t.index]},handleClick:function(){var t=this.rootMenu,e=this.disabled;"hover"===t.menuTrigger&&"horizontal"===t.mode||t.collapse&&"vertical"===t.mode||e||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==t.type||t.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.rootMenu.openMenu(e.index,e.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!t.mouseInChild&&t.rootMenu.closeMenu(t.index)}),this.hideTimeout),this.appendToBody&&e&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var t=this.$refs["submenu-title"];t&&(t.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var t=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){t.mouseInChild=!0,clearTimeout(t.timeout)})),this.$on("mouse-leave-child",(function(){t.mouseInChild=!1,clearTimeout(t.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(t){var e=this,n=this.active,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,u=this.currentPlacement,c=this.menuTransitionName,l=this.mode,f=this.disabled,d=this.popperClass,h=this.$slots,p=this.isFirstLevel,m=t("transition",{attrs:{name:c}},[t("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+l,d],on:{mouseenter:function(t){return e.handleMouseenter(t,100)},mouseleave:function(){return e.handleMouseleave(!0)},focus:function(t){return e.handleMouseenter(t,100)}}},[t("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+u],style:{backgroundColor:s.backgroundColor||""}},[h.default])])]),g=t("el-collapse-transition",[t("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[h.default])]),v="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return t("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":f},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return e.handleMouseleave(!1)},focus:this.handleMouseenter}},[t("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,o,{backgroundColor:a}]},[h.title,t("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?m:g])}},Zt=Xt,Jt=s(Zt,Vt,Ut,!1,null,null,null);Jt.options.__file="packages/menu/src/submenu.vue";var Qt=Jt.exports;Qt.install=function(t){t.component(Qt.name,Qt)};var te=Qt,ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-menu-item",class:{"is-active":t.active,"is-disabled":t.disabled},style:[t.paddingStyle,t.itemStyle,{backgroundColor:t.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:t.handleClick,mouseenter:t.onMouseEnter,focus:t.onMouseEnter,blur:t.onMouseLeave,mouseleave:t.onMouseLeave}},["ElMenu"===t.parentMenu.$options.componentName&&t.rootMenu.collapse&&t.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[t._t("default")],2)]):[t._t("default"),t._t("title")]],2)},ne=[];ee._withStripped=!0;var re=n(26),ie=n.n(re),oe={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Gt,O.a],components:{ElTooltip:ie.a},props:{index:{default:null,validator:function(t){return"string"===typeof t||null===t}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var t={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(t.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),t},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},ae=oe,se=s(ae,ee,ne,!1,null,null,null);se.options.__file="packages/menu/src/menu-item.vue";var ue=se.exports;ue.install=function(t){t.component(ue.name,ue)};var ce=ue,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:t.levelPadding+"px"}},[t.$slots.title?t._t("title"):[t._v(t._s(t.title))]],2),n("ul",[t._t("default")],2)])},fe=[];le._withStripped=!0;var de={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var t=20,e=this.$parent;if(this.rootMenu.collapse)return 20;while(e&&"ElMenu"!==e.$options.componentName)"ElSubmenu"===e.$options.componentName&&(t+=20),e=e.$parent;return t}}},he=de,pe=s(he,le,fe,!1,null,null,null);pe.options.__file="packages/menu/src/menu-item-group.vue";var me=pe.exports;me.install=function(t){t.component(me.name,me)};var ge=me,ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)},be=[];ve._withStripped=!0;var ye=void 0,we="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",_e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function xe(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width")),o=_e.map((function(t){return t+":"+e.getPropertyValue(t)})).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function Ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ye||(ye=document.createElement("textarea"),document.body.appendChild(ye));var r=xe(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;ye.setAttribute("style",s+";"+we),ye.value=t.value||t.placeholder||"";var u=ye.scrollHeight,c={};"border-box"===a?u+=o:"content-box"===a&&(u-=i),ye.value="";var l=ye.scrollHeight-i;if(null!==e){var f=l*e;"border-box"===a&&(f=f+i+o),u=Math.max(f,u),c.minHeight=f+"px"}if(null!==n){var d=l*n;"border-box"===a&&(d=d+i+o),u=Math.min(d,u)}return c.height=u+"px",ye.parentNode&&ye.parentNode.removeChild(ye),ye=null,c}var Se=n(7),ke=n.n(Se),Me=n(19),Ee={name:"ElInput",componentName:"ElInput",mixins:[O.a,M.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return ke()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize,e=this.type;if("textarea"===e)if(t){var n=t.minRows,r=t.maxRows;this.textareaCalcStyle=Ce(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:Ce(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(t){var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(Me["isKorean"])(n)},handleCompositionEnd:function(t){this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[t];this.$slots[o]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Oe=Ee,Te=s(Oe,ve,be,!1,null,null,null);Te.options.__file="packages/input/src/input.vue";var Ae=Te.exports;Ae.install=function(t){t.component(Ae.name,Ae)};var De=Ae,Ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.decrease(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.increase(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.increase(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.decrease(e))}]}})],1)},Re=[];Ne._withStripped=!0;var Pe={bind:function(t,e,n){var r=null,i=void 0,o=function(){return n.context[e.expression].apply()},a=function(){Date.now()-i<100&&o(),clearInterval(r),r=null};Object(zt["on"])(t,"mousedown",(function(t){0===t.button&&(i=Date.now(),Object(zt["once"])(document,"mouseup",a),clearInterval(r),r=setInterval(o,100))}))}},Ie={name:"ElInputNumber",mixins:[Z()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:Pe},components:{ElInput:m.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"===typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!==typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!==typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"===typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var t=this.$refs.input.$refs.input;t.setAttribute("aria-valuenow",this.currentValue)}}},Be=Ie,Le=s(Be,Ne,Re,!1,null,null,null);Le.options.__file="packages/input-number/src/input-number.vue";var ze=Le.exports;ze.install=function(t){t.component(ze.name,ze)};var je=ze,Fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},$e=[];Fe._withStripped=!0;var He={name:"ElRadio",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var t=this.$parent;while(t){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)}))}}},Ve=He,Ue=s(Ve,Fe,$e,!1,null,null,null);Ue.options.__file="packages/radio/src/radio.vue";var qe=Ue.exports;qe.install=function(t){t.component(qe.name,qe)};var We=qe,Ke=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:t.handleKeydown}},[t._t("default")],2)},Ge=[];Ke._withStripped=!0;var Ye=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Xe={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[O.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){return(this.$vnode.data||{}).tag||"div"},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var t=this;this.$on("handleChange",(function(e){t.$emit("change",e)}))},mounted:function(){var t=this.$el.querySelectorAll("[type=radio]"),e=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(t,(function(t){return t.checked}))&&e&&(e.tabIndex=0)},methods:{handleKeydown:function(t){var e=t.target,n="INPUT"===e.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,e),a=this.$el.querySelectorAll("[role=radio]");switch(t.keyCode){case Ye.LEFT:case Ye.UP:t.stopPropagation(),t.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case Ye.RIGHT:case Ye.DOWN:o===i-1?(t.stopPropagation(),t.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus());break;default:break}}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Ze=Xe,Je=s(Ze,Ke,Ge,!1,null,null,null);Je.options.__file="packages/radio/src/radio-group.vue";var Qe=Je.exports;Qe.install=function(t){t.component(Qe.name,Qe)};var tn=Qe,en=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio-button",class:[t.size?"el-radio-button--"+t.size:"",{"is-active":t.value===t.label},{"is-disabled":t.isDisabled},{"is-focus":t.focus}],attrs:{role:"radio","aria-checked":t.value===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.value=t.isDisabled?t.value:t.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.value,t.label)},on:{change:[function(e){t.value=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:t.value===t.label?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},nn=[];en._withStripped=!0;var rn={name:"ElRadioButton",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(t){this._radioGroup.$emit("input",t)}},_radioGroup:function(){var t=this.$parent;while(t){if("ElRadioGroup"===t.$options.componentName)return t;t=t.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.dispatch("ElRadioGroup","handleChange",t.value)}))}}},on=rn,an=s(on,en,nn,!1,null,null,null);an.options.__file="packages/radio/src/radio-button.vue";var sn=an.exports;sn.install=function(t){t.component(sn.name,sn)};var un=sn,cn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=null,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])},ln=[];cn._withStripped=!0;var fn={name:"ElCheckbox",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var t=this.$parent;while(t){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},dn=fn,hn=s(dn,cn,ln,!1,null,null,null);hn.options.__file="packages/checkbox/src/checkbox.vue";var pn=hn.exports;pn.install=function(t){t.component(pn.name,pn)};var mn=pn,gn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox-button",class:[t.size?"el-checkbox-button--"+t.size:"",{"is-disabled":t.isDisabled},{"is-checked":t.isChecked},{"is-focus":t.focus}],attrs:{role:"checkbox","aria-checked":t.isChecked,"aria-disabled":t.isDisabled}},[t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=null,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox-button__inner",style:t.isChecked?t.activeStyle:null},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])},vn=[];gn._withStripped=!0;var bn={name:"ElCheckboxButton",mixins:[O.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):void 0!==this.value?this.$emit("input",t):this.selfModel=t}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var t=this.$parent;while(t){if("ElCheckboxGroup"===t.$options.componentName)return t;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e._checkboxGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},yn=bn,wn=s(yn,gn,vn,!1,null,null,null);wn.options.__file="packages/checkbox/src/checkbox-button.vue";var _n=wn.exports;_n.install=function(t){t.component(_n.name,_n)};var xn=_n,Cn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[t._t("default")],2)},Sn=[];Cn._withStripped=!0;var kn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[O.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},Mn=kn,En=s(Mn,Cn,Sn,!1,null,null,null);En.options.__file="packages/checkbox/src/checkbox-group.vue";var On=En.exports;On.install=function(t){t.component(On.name,On)};var Tn=On,An=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-switch",class:{"is-disabled":t.switchDisabled,"is-checked":t.checked},attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.switchDisabled},on:{click:function(e){return e.preventDefault(),t.switchValue(e)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:t.id,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:t.switchDisabled},on:{change:t.handleChange,keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.switchValue(e)}}}),t.inactiveIconClass||t.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIconClass?n("i",{class:[t.inactiveIconClass]}):t._e(),!t.inactiveIconClass&&t.inactiveText?n("span",{attrs:{"aria-hidden":t.checked}},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:t.coreWidth+"px"}}),t.activeIconClass||t.activeText?n("span",{class:["el-switch__label","el-switch__label--right",t.checked?"is-active":""]},[t.activeIconClass?n("i",{class:[t.activeIconClass]}):t._e(),!t.activeIconClass&&t.activeText?n("span",{attrs:{"aria-hidden":!t.checked}},[t._v(t._s(t.activeText))]):t._e()]):t._e()])},Dn=[];An._withStripped=!0;var Nn={name:"ElSwitch",mixins:[Z()("input"),M.a,O.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(t){var e=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){e.$refs.input.checked=e.checked}))},setBackgroundColor:function(){var t=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=t,this.$refs.core.style.backgroundColor=t},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},Rn=Nn,Pn=s(Rn,An,Dn,!1,null,null,null);Pn.options.__file="packages/switch/src/component.vue";var In=Pn.exports;In.install=function(t){t.component(In.name,In)};var Bn=In,Ln=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[t.selectSize?"el-select--"+t.selectSize:""],on:{click:function(e){return e.stopPropagation(),t.toggleMenu(e)}}},[t.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?n("span",[n("el-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){t.deleteTag(e,t.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?n("el-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():n("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,(function(e){return n("el-tag",{key:t.getValueKey(e),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:e.hitState,type:"info","disable-transitions":""},on:{close:function(n){t.deleteTag(n,e)}}},[n("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.currentLabel))])])})),1),t.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autoComplete||t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.navigateOptions("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.deletePrevTag(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),n("el-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autoComplete||t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur},nativeOn:{keyup:function(e){return t.debouncedOnInputChange(e)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("next")},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.stopPropagation(),e.preventDefault(),t.navigateOptions("prev")},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],paste:function(e){return t.debouncedOnInputChange(e)},mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix?n("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+t.iconClass]}),t.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[t.showNewOption?n("el-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty?t._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)},zn=[];Ln._withStripped=!0;var jn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":t.$parent.multiple},t.popperClass],style:{minWidth:t.minWidth}},[t._t("default")],2)},Fn=[];jn._withStripped=!0;var $n={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[V.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var t=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){t.$parent.visible&&t.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Hn=$n,Vn=s(Hn,jn,Fn,!1,null,null,null);Vn.options.__file="packages/select/src/select-dropdown.vue";var Un=Vn.exports,qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)},Wn=[];qn._withStripped=!0;var Kn="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},Gn={mixins:[O.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof t?"undefined":Kn(t))&&"object"===("undefined"===typeof e?"undefined":Kn(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(b["getValueByPath"])(t,n)===Object(b["getValueByPath"])(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(b["getValueByPath"])(t,n)===Object(b["getValueByPath"])(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(b["escapeRegexpString"])(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple,r=n?e:[e],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Yn=Gn,Xn=s(Yn,qn,Wn,!1,null,null,null);Xn.options.__file="packages/select/src/option.vue";var Zn=Xn.exports,Jn=n(30),Qn=n.n(Jn),tr=n(13),er=n(11),nr=n.n(er),rr=n(27),ir=n.n(rr),or={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(t){return t.visible})).every((function(t){return t.disabled}))}},watch:{hoverIndex:function(t){var e=this;"number"===typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach((function(t){t.hover=e.hoverOption===t}))}},methods:{navigateOptions:function(t){var e=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(t),this.$nextTick((function(){return e.scrollToOption(e.hoverOption)}))}}else this.visible=!0}}},ar={mixins:[O.a,v.a,Z()("reference"),or],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(b["isIE"])()&&!Object(b["isEdge"])()&&!this.visible},showClose:function(){var t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,e=this.clearable&&!this.selectDisabled&&this.inputHovering&&t;return e},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var t=this,e=this.options.filter((function(t){return!t.created})).some((function(e){return e.currentLabel===t.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!e},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"}},components:{ElInput:m.a,ElSelectMenu:Un,ElOption:Zn,ElTag:Qn.a,ElScrollbar:q.a},directives:{Clickoutside:j.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,default:function(){return Object(er["t"])("el.select.placeholder")}},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var t=this;this.$nextTick((function(){t.resetInputHeight()}))},placeholder:function(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value:function(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(b["valueEquals"])(t,e)||this.dispatch("ElFormItem","el.form.change",t)},visible:function(t){var e=this;t?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){e.$refs.input&&""===e.$refs.input.value&&0===e.selected.length&&(e.currentPlaceholder=e.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},options:function(){var t=this;if(!this.$isServer){this.$nextTick((function(){t.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var e=this.$el.querySelectorAll("input");-1===[].indexOf.call(e,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(t){var e=this,n=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick((function(t){return e.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(Me["isKorean"])(r)}},handleQueryChange:function(t){var e=this;this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick((function(){e.visible&&e.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var t=15*e.$refs.input.value.length+20;e.inputLength=e.collapseTags?Math.min(50,t):t,e.managePlaceholder(),e.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"===typeof this.filterMethod?(this.filterMethod(t),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",t),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},scrollToOption:function(t){var e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");ir()(n,e)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var t=this;this.$nextTick((function(){return t.scrollToOption(t.selected)}))},emitChange:function(t){Object(b["valueEquals"])(this.value,t)||this.$emit("change",t)},getOption:function(t){for(var e=void 0,n="[object object]"===Object.prototype.toString.call(t).toLowerCase(),r="[object null]"===Object.prototype.toString.call(t).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(t).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(b["getValueByPath"])(a.value,this.valueKey)===Object(b["getValueByPath"])(t,this.valueKey):a.value===t;if(s){e=a;break}}if(e)return e;var u=n||r||i?"":t,c={value:t,currentLabel:u};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(e){n.push(t.getOption(e))})),this.selected=n,this.$nextTick((function(){t.resetInputHeight()}))},handleFocus:function(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",t))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(t){var e=this;setTimeout((function(){e.isSilentBlur?e.isSilentBlur=!1:e.$emit("blur",t)}),50),this.softFocus=!1},handleClearClick:function(t){this.deleteSelected(t)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(t){if(Array.isArray(this.selected)){var e=this.selected[this.selected.length-1];if(e)return!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState)}},deletePrevTag:function(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){var e=this.value.slice();e.pop(),this.$emit("input",e),this.emitChange(e)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var t=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(t.$refs.reference){var e=t.$refs.reference.$el.childNodes,n=[].filter.call(e,(function(t){return"INPUT"===t.tagName}))[0],r=t.$refs.tags,i=t.initialInputHeight||40;n.style.height=0===t.selected.length?i+"px":Math.max(r?r.clientHeight+(r.clientHeight>i?6:0):0,i)+"px",t.visible&&!1!==t.emptyText&&t.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var t=this;setTimeout((function(){t.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((function(e){return t.options.indexOf(e)}))):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)}),300)},handleOptionSelect:function(t,e){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,t.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(t.value),this.$emit("input",r),this.emitChange(r),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(t)}))},setSoftFocus:function(){this.softFocus=!0;var t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n="[object object]"===Object.prototype.toString.call(e).toLowerCase();if(n){var r=this.valueKey,i=-1;return t.some((function(t,n){return Object(b["getValueByPath"])(t,r)===Object(b["getValueByPath"])(e,r)&&(i=n,!0)})),i}return t.indexOf(e)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(t){t.stopPropagation();var e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag:function(t,e){var n=this.selected.indexOf(e);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var t=!1,e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(b["getValueByPath"])(t.value,this.valueKey)}},created:function(){var t=this;this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=L()(this.debounce,(function(){t.onInputChange()})),this.debouncedQueryChange=L()(this.debounce,(function(e){t.handleQueryChange(e.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var t=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(tr["addResizeListener"])(this.$el,this.handleResize);var e=this.$refs.reference;if(e&&e.$el){var n={medium:36,small:32,mini:28},r=e.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){e&&e.$el&&(t.inputWidth=e.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(tr["removeResizeListener"])(this.$el,this.handleResize)}},sr=ar,ur=s(sr,Ln,zn,!1,null,null,null);ur.options.__file="packages/select/src/select.vue";var cr=ur.exports;cr.install=function(t){t.component(cr.name,cr)};var lr=cr;Zn.install=function(t){t.component(Zn.name,Zn)};var fr=Zn,dr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[t._v(t._s(t.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[t._t("default")],2)])])},hr=[];dr._withStripped=!0;var pr={mixins:[O.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(t){this.broadcast("ElOption","handleGroupDisabled",t)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(t){return!0===t.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},mr=pr,gr=s(mr,dr,hr,!1,null,null,null);gr.options.__file="packages/select/src/option-group.vue";var vr=gr.exports;vr.install=function(t){t.component(vr.name,vr)};var br=vr,yr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])},wr=[];yr._withStripped=!0;var _r={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},xr=_r,Cr=s(xr,yr,wr,!1,null,null,null);Cr.options.__file="packages/button/src/button.vue";var Sr=Cr.exports;Sr.install=function(t){t.component(Sr.name,Sr)};var kr=Sr,Mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-button-group"},[t._t("default")],2)},Er=[];Mr._withStripped=!0;var Or={name:"ElButtonGroup"},Tr=Or,Ar=s(Tr,Mr,Er,!1,null,null,null);Ar.options.__file="packages/button/src/button-group.vue";var Dr=Ar.exports;Dr.install=function(t){t.component(Dr.name,Dr)};var Nr=Dr,Rr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-table",class:[{"el-table--fit":t.fit,"el-table--striped":t.stripe,"el-table--border":t.border||t.isGroup,"el-table--hidden":t.isHidden,"el-table--group":t.isGroup,"el-table--fluid-height":t.maxHeight,"el-table--scrollable-x":t.layout.scrollX,"el-table--scrollable-y":t.layout.scrollY,"el-table--enable-row-hover":!t.store.states.isComplex,"el-table--enable-row-transition":0!==(t.store.states.data||[]).length&&(t.store.states.data||[]).length<100},t.tableSize?"el-table--"+t.tableSize:""],on:{mouseleave:function(e){t.handleMouseLeave(e)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[t._t("default")],2),t.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"default-sort":t.defaultSort}})],1):t._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[t.layout.scrollX?"is-scrolling-"+t.scrollPosition:"is-scrolling-none"],style:[t.bodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{context:t.context,store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.data&&0!==t.data.length?t._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:t.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[t._t("empty",[t._v(t._s(t.emptyText||t.t("el.table.emptyText")))])],2)]),t.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[t._t("append")],2):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:t.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:t.layout.bodyWidth?t.layout.bodyWidth+"px":""},attrs:{store:t.store,border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,"default-sort":t.defaultSort}})],1):t._e(),t.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:t.layout.fixedWidth?t.layout.fixedWidth+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"left",store:t.store,stripe:t.stripe,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"row-style":t.rowStyle}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"left",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:t.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:t.layout.rightFixedWidth?t.layout.rightFixedWidth+"px":"",right:t.layout.scrollY?(t.border?t.layout.gutterWidth:t.layout.gutterWidth||0)+"px":""},t.fixedHeight]},[t.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,store:t.store}})],1):t._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:t.layout.headerHeight+"px"},t.fixedBodyHeight]},[n("table-body",{style:{width:t.bodyWidth},attrs:{fixed:"right",store:t.store,stripe:t.stripe,"row-class-name":t.rowClassName,"row-style":t.rowStyle,highlight:t.highlightCurrentRow}}),t.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:t.layout.appendHeight+"px"}}):t._e()],1),t.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:t.data&&t.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:t.bodyWidth},attrs:{fixed:"right",border:t.border,"sum-text":t.sumText||t.t("el.table.sumText"),"summary-method":t.summaryMethod,store:t.store}})],1):t._e()]):t._e(),t.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:t.layout.scrollY?t.layout.gutterWidth+"px":"0",height:t.layout.headerHeight+"px"}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Pr=[];Rr._withStripped=!0;var Ir=n(16),Br=n.n(Ir),Lr=n(35),zr=n(38),jr=n.n(zr),Fr="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,$r=function(t,e){t&&t.addEventListener&&t.addEventListener(Fr?"DOMMouseScroll":"mousewheel",(function(t){var n=jr()(t);e&&e.apply(this,[t,n])}))},Hr={bind:function(t,e){$r(t,e.value)}},Vr=n(6),Ur=n.n(Vr),qr="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},Wr=function(t){var e=t.target;while(e&&"HTML"!==e.tagName.toUpperCase()){if("TD"===e.tagName.toUpperCase())return e;e=e.parentNode}return null},Kr=function(t){return null!==t&&"object"===("undefined"===typeof t?"undefined":qr(t))},Gr=function(t,e,n,r,i){if(!e&&!r&&(!i||Array.isArray(i)&&!i.length))return t;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((function(e){return"string"===typeof e?Object(b["getValueByPath"])(n,e):e(n,r,t)}))):("$key"!==e&&Kr(n)&&"$value"in n&&(n=n.$value),[Kr(n)?Object(b["getValueByPath"])(n,e):n])},a=function(t,e){if(r)return r(t.value,e.value);for(var n=0,i=t.key.length;n<i;n++){if(t.key[n]<e.key[n])return-1;if(t.key[n]>e.key[n])return 1}return 0};return t.map((function(t,e){return{value:t,index:e,key:o?o(t,e):null}})).sort((function(t,e){var r=a(t,e);return r||(r=t.index-e.index),r*n})).map((function(t){return t.value}))},Yr=function(t,e){var n=null;return t.columns.forEach((function(t){t.id===e&&(n=t)})),n},Xr=function(t,e){for(var n=null,r=0;r<t.columns.length;r++){var i=t.columns[r];if(i.columnKey===e){n=i;break}}return n},Zr=function(t,e){var n=(e.className||"").match(/el-table_[^\s]+/gm);return n?Yr(t,n[0]):null},Jr=function(t,e){if(!t)throw new Error("row is required when get row identity");if("string"===typeof e){if(e.indexOf(".")<0)return t[e];for(var n=e.split("."),r=t,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"===typeof e)return e.call(null,t)},Qr=function(t,e){var n={};return(t||[]).forEach((function(t,r){n[Jr(t,e)]={row:t,index:r}})),n};function ti(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ei(t,e){var n={},r=void 0;for(r in t)n[r]=t[r];for(r in e)if(ti(e,r)){var i=e[r];"undefined"!==typeof i&&(n[r]=i)}return n}function ni(t){return void 0!==t&&(t=parseInt(t,10),isNaN(t)&&(t=null)),t}function ri(t){return"undefined"!==typeof t&&(t=ni(t),isNaN(t)&&(t=80)),t}function ii(t){return"number"===typeof t?t:"string"===typeof t?/^\d+(?:px)?$/.test(t)?parseInt(t,10):t:null}function oi(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ai(t,e,n){var r=!1,i=t.indexOf(e),o=-1!==i,a=function(){t.push(e),r=!0},s=function(){t.splice(i,1),r=!0};return"boolean"===typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function si(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(t){return!(Array.isArray(t)&&t.length)};function o(t,a,s){e(t,a,s),a.forEach((function(t){if(t[r])e(t,null,s+1);else{var a=t[n];i(a)||o(t,a,s+1)}}))}t.forEach((function(t){if(t[r])e(t,null,0);else{var a=t[n];i(a)||o(t,a,0)}}))}var ui={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.rowKey,i=t.defaultExpandAll,o=t.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=Qr(o,r);this.states.expandRows=n.reduce((function(t,e){var n=Jr(e,r),i=a[n];return i&&t.push(e),t}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(t,e){var n=ai(this.states.expandRows,t,e);n&&(this.table.$emit("expand-change",t,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(t){this.assertRowKey();var e=this.states,n=e.data,r=e.rowKey,i=Qr(n,r);this.states.expandRows=t.reduce((function(t,e){var n=i[e];return n&&t.push(n.row),t}),[])},isRowExpanded:function(t){var e=this.states,n=e.expandRows,r=void 0===n?[]:n,i=e.rowKey;if(i){var o=Qr(r,i);return!!o[Jr(t,i)]}return-1!==r.indexOf(t)}}},ci={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(t){this.assertRowKey(),this.states._currentRowKey=t,this.setCurrentRowByKey(t)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(t){var e=this.states,n=e.data,r=void 0===n?[]:n,i=e.rowKey,o=null;i&&(o=Object(b["arrayFind"])(r,(function(e){return Jr(e,i)===t}))),e.currentRow=o},updateCurrentRow:function(t){var e=this.states,n=this.table,r=e.currentRow;if(t&&t!==r)return e.currentRow=t,void n.$emit("current-change",t,r);!t&&r&&(e.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var t=this.states,e=this.table,n=t.rowKey,r=t._currentRowKey,i=t.data||[],o=t.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=Jr(o,n);this.setCurrentRowByKey(a)}else t.currentRow=null;null===t.currentRow&&e.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},li=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fi={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var t=this.states.data||[];return this.normalize(t)},normalizedLazyNode:function(){var t=this.states,e=t.rowKey,n=t.lazyTreeNodeMap,r=t.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach((function(t){if(n[t].length){var i={children:[]};n[t].forEach((function(t){var n=Jr(t,e);i.children.push(n),t[r]&&!o[n]&&(o[n]={children:[]})})),o[t]=i}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(t){var e=this.states,n=e.childrenColumnName,r=e.lazyColumnIdentifier,i=e.rowKey,o=e.lazy,a={};return si(t,(function(t,e,n){var r=Jr(t,i);Array.isArray(e)?a[r]={children:e.map((function(t){return Jr(t,i)})),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})}),n,r),a},updateTreeData:function(){var t=this.normalizedData,e=this.normalizedLazyNode,n=Object.keys(t),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,u=i.lazy,c=[],l=function(t,e){var n=a||s&&-1!==s.indexOf(e);return!!(t&&t.expanded||n)};n.forEach((function(e){var n=o[e],i=li({},t[e]);if(i.expanded=l(n,e),i.lazy){var a=n||{},s=a.loaded,u=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;i.loaded=!!u,i.loading=!!d,c.push(e)}r[e]=i}));var f=Object.keys(e);u&&f.length&&c.length&&f.forEach((function(t){var n=o[t],i=e[t].children;if(-1!==c.indexOf(t)){if(0!==r[t].children.length)throw new Error("[ElTable]children must be an empty array.");r[t].children=i}else{var a=n||{},s=a.loaded,u=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;r[t]={lazy:!0,loaded:!!u,loading:!!d,expanded:l(n,t),children:i,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(t){this.states.expandRowKeys=t,this.updateTreeData()},toggleTreeExpansion:function(t,e){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=Jr(t,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;e="undefined"===typeof e?!a.expanded:e,i[o].expanded=e,s!==e&&this.table.$emit("expand-change",t,e),this.updateTableScrollY()}},loadOrToggle:function(t){this.assertRowKey();var e=this.states,n=e.lazy,r=e.treeData,i=e.rowKey,o=Jr(t,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(t,o,a):this.toggleTreeExpansion(t)},loadData:function(t,e,n){var r=this,i=this.table.load,o=this.states,a=o.lazyTreeNodeMap,s=o.treeData;i&&!s[e].loaded&&(s[e].loading=!0,i(t,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");s[e].loading=!1,s[e].loaded=!0,s[e].expanded=!0,n.length&&r.$set(a,e,n),r.table.$emit("expand-change",t,!0)})))}}},di=function(t,e){var n=e.sortingColumn;return n&&"string"!==typeof n.sortable?Gr(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy):t},hi=function t(e){var n=[];return e.forEach((function(e){e.children?n.push.apply(n,t(e.children)):n.push(e)})),n},pi=Ur.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[ui,ci,fi],methods:{assertRowKey:function(){var t=this.states.rowKey;if(!t)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var t=this.states,e=t._columns||[];t.fixedColumns=e.filter((function(t){return!0===t.fixed||"left"===t.fixed})),t.rightFixedColumns=e.filter((function(t){return"right"===t.fixed})),t.fixedColumns.length>0&&e[0]&&"selection"===e[0].type&&!e[0].fixed&&(e[0].fixed=!0,t.fixedColumns.unshift(e[0]));var n=e.filter((function(t){return!t.fixed}));t.originColumns=[].concat(t.fixedColumns).concat(n).concat(t.rightFixedColumns);var r=hi(n),i=hi(t.fixedColumns),o=hi(t.rightFixedColumns);t.leafColumnsLength=r.length,t.fixedLeafColumnsLength=i.length,t.rightFixedLeafColumnsLength=o.length,t.columns=[].concat(i).concat(r).concat(o),t.isComplex=t.fixedColumns.length>0||t.rightFixedColumns.length>0},scheduleLayout:function(t){t&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(t){var e=this.states.selection,n=void 0===e?[]:e;return n.indexOf(t)>-1},clearSelection:function(){var t=this.states;t.isAllSelected=!1;var e=t.selection;e.length&&(t.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var t=this.states,e=t.data,n=t.rowKey,r=t.selection,i=void 0;if(n){i=[];var o=Qr(r,n),a=Qr(e,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter((function(t){return-1===e.indexOf(t)}));if(i.length){var u=r.filter((function(t){return-1===i.indexOf(t)}));t.selection=u,this.table.$emit("selection-change",u.slice())}},toggleRowSelection:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ai(this.states.selection,t,e);if(r){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,t),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var t=this.states,e=t.data,n=void 0===e?[]:e,r=t.selection,i=t.selectOnIndeterminate?!t.isAllSelected:!(t.isAllSelected||r.length);t.isAllSelected=i;var o=!1;n.forEach((function(e,n){t.selectable?t.selectable.call(null,e,n)&&ai(r,e,i)&&(o=!0):ai(r,e,i)&&(o=!0)})),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.data,i=Qr(e,n);r.forEach((function(t){var r=Jr(t,n),o=i[r];o&&(e[o.index]=t)}))},updateAllSelected:function(){var t=this.states,e=t.selection,n=t.rowKey,r=t.selectable,i=t.data||[];if(0!==i.length){var o=void 0;n&&(o=Qr(e,n));for(var a=function(t){return o?!!o[Jr(t,n)]:-1!==e.indexOf(t)},s=!0,u=0,c=0,l=i.length;c<l;c++){var f=i[c],d=r&&r.call(null,f,c);if(a(f))u++;else if(!r||d){s=!1;break}}0===u&&(s=!1),t.isAllSelected=s}else t.isAllSelected=!1},updateFilters:function(t,e){Array.isArray(t)||(t=[t]);var n=this.states,r={};return t.forEach((function(t){n.filters[t.id]=e,r[t.columnKey||t.id]=e})),r},updateSort:function(t,e,n){this.states.sortingColumn&&this.states.sortingColumn!==t&&(this.states.sortingColumn.order=null),this.states.sortingColumn=t,this.states.sortProp=e,this.states.sortOrder=n},execFilter:function(){var t=this,e=this.states,n=e._data,r=e.filters,i=n;Object.keys(r).forEach((function(n){var r=e.filters[n];if(r&&0!==r.length){var o=Yr(t.states,n);o&&o.filterMethod&&(i=i.filter((function(t){return r.some((function(e){return o.filterMethod.call(null,e,t,o)}))})))}})),e.filteredData=i},execSort:function(){var t=this.states;t.data=di(t.filteredData,t)},execQuery:function(t){t&&t.filter||this.execFilter(),this.execSort()},clearFilter:function(t){var e=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=ke()(a,r.filterPanels)),i&&(a=ke()(a,i.filterPanels)),o&&(a=ke()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"===typeof t&&(t=[t]),Array.isArray(t)){var u=t.map((function(t){return Xr(e,t)}));s.forEach((function(t){var e=u.find((function(e){return e.id===t}));e&&(a[t].filteredValue=[])})),this.commit("filterChange",{column:u,values:[],silent:!0,multi:!0})}else s.forEach((function(t){a[t].filteredValue=[]})),e.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var t=this.states;t.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(t){this.setExpandRowKeys(t),this.updateTreeExpandKeys(t)},toggleRowExpansionAdapter:function(t,e){var n=this.states.columns.some((function(t){var e=t.type;return"expand"===e}));n?this.toggleRowExpansion(t,e):this.toggleTreeExpansion(t,e)}}});pi.prototype.mutations={setData:function(t,e){var n=t._data!==e;t._data=e,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),t.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(t,e,n,r){var i=t._columns;r&&(i=r.children,i||(i=r.children=[])),"undefined"!==typeof n?i.splice(n,0,e):i.push(e),"selection"===e.type&&(t.selectable=e.selectable,t.reserveSelection=e.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(t,e,n){var r=t._columns;n&&(r=n.children,r||(r=n.children=[])),r&&r.splice(r.indexOf(e),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(t,e){var n=e.prop,r=e.order,i=e.init;if(n){var o=Object(b["arrayFind"])(t.columns,(function(t){return t.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,e){var n=t.sortingColumn,r=t.sortProp,i=t.sortOrder;null===i&&(t.sortingColumn=null,t.sortProp=null);var o={filter:!0};this.execQuery(o),e&&(e.silent||e.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(t,e){var n=e.column,r=e.values,i=e.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(t,e){this.toggleRowSelection(e),this.updateAllSelected()},setHoverRow:function(t,e){t.hoverRow=e},setCurrentRow:function(t,e){this.updateCurrentRow(e)}},pi.prototype.commit=function(t){var e=this.mutations;if(!e[t])throw new Error("Action not found: "+t);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e[t].apply(this,[this.states].concat(r))},pi.prototype.updateTableScrollY=function(){Ur.a.nextTick(this.table.updateScrollY)};var mi=pi;function gi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Table is required.");var n=new mi;return n.table=t,n.toggleAllSelection=L()(10,n._toggleAllSelection),Object.keys(e).forEach((function(t){n.states[t]=e[t]})),n}function vi(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n],i=void 0;"string"===typeof r?i=function(){return this.store.states[r]}:"function"===typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(e[n]=i)})),e}var bi=n(31),yi=n.n(bi);function wi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _i=function(){function t(e){for(var n in wi(this,t),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=yi()(),e)e.hasOwnProperty(n)&&(this[n]=e[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return t.prototype.updateScrollY=function(){var t=this.height;if(null===t)return!1;var e=this.table.bodyWrapper;if(this.table.$el&&e){var n=e.querySelector(".el-table__body"),r=this.scrollY,i=n.offsetHeight>this.bodyHeight;return this.scrollY=i,r!==i}return!1},t.prototype.setHeight=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Ur.a.prototype.$isServer){var r=this.table.$el;if(t=ii(t),this.height=t,!r&&(t||0===t))return Ur.a.nextTick((function(){return e.setHeight(t,n)}));"number"===typeof t?(r.style[n]=t+"px",this.updateElsHeight()):"string"===typeof t&&(r.style[n]=t,this.updateElsHeight())}},t.prototype.setMaxHeight=function(t){this.setHeight(t,"max-height")},t.prototype.getFlattenColumns=function(){var t=[],e=this.table.columns;return e.forEach((function(e){e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)})),t},t.prototype.updateElsHeight=function(){var t=this;if(!this.table.$ready)return Ur.a.nextTick((function(){return t.updateElsHeight()}));var e=this.table.$refs,n=e.headerWrapper,r=e.appendWrapper,i=e.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return Ur.a.nextTick((function(){return t.updateElsHeight()}));var u=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=u-s-c+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var l=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?u-(l?0:this.gutterWidth):u,this.updateScrollY(),this.notifyObservers("scrollable")}},t.prototype.headerDisplayNone=function(t){if(!t)return!0;var e=t;while("DIV"!==e.tagName){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},t.prototype.updateColumnsWidth=function(){if(!Ur.a.prototype.$isServer){var t=this.fit,e=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(t){return"number"!==typeof t.width}));if(r.forEach((function(t){"number"===typeof t.width&&t.realWidth&&(t.realWidth=null)})),i.length>0&&t){r.forEach((function(t){n+=t.width||t.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=e-o){this.scrollX=!1;var a=e-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=i.reduce((function(t,e){return t+(e.minWidth||80)}),0),u=a/s,c=0;i.forEach((function(t,e){if(0!==e){var n=Math.floor((t.minWidth||80)*u);c+=n,t.realWidth=(t.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-c}}else this.scrollX=!0,i.forEach((function(t){t.realWidth=t.minWidth}));this.bodyWidth=Math.max(n,e),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(t){t.width||t.minWidth?t.realWidth=t.width||t.minWidth:t.realWidth=80,n+=t.realWidth})),this.scrollX=n>e,this.bodyWidth=n;var l=this.store.states.fixedColumns;if(l.length>0){var f=0;l.forEach((function(t){f+=t.realWidth||t.width})),this.fixedWidth=f}var d=this.store.states.rightFixedColumns;if(d.length>0){var h=0;d.forEach((function(t){h+=t.realWidth||t.width})),this.rightFixedWidth=h}this.notifyObservers("columns")}},t.prototype.addObserver=function(t){this.observers.push(t)},t.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);-1!==e&&this.observers.splice(e,1)},t.prototype.notifyObservers=function(t){var e=this,n=this.observers;n.forEach((function(n){switch(t){case"columns":n.onColumnsChange(e);break;case"scrollable":n.onScrollableChange(e);break;default:throw new Error("Table Layout don't have event "+t+".")}}))},t}(),xi=_i,Ci={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var t=this.layout;if(!t&&this.table&&(t=this.table.layout),!t)throw new Error("Can not find table layout.");return t}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(t){var e=this.$el.querySelectorAll("colgroup > col");if(e.length){var n=t.getFlattenColumns(),r={};n.forEach((function(t){r[t.id]=t}));for(var i=0,o=e.length;i<o;i++){var a=e[i],s=a.getAttribute("name"),u=r[s];u&&a.setAttribute("width",u.realWidth||u.width)}}},onScrollableChange:function(t){for(var e=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=e.length;n<r;n++){var i=e[n];i.setAttribute("width",t.scrollY?t.gutterWidth:"0")}for(var o=this.$el.querySelectorAll("th.gutter"),a=0,s=o.length;a<s;a++){var u=o[a];u.style.width=t.scrollY?t.gutterWidth+"px":"0",u.style.display=t.scrollY?"":"none"}}}},Si="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},ki=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mi={name:"ElTableBody",mixins:[Ci],components:{ElCheckbox:Br.a,ElTooltip:ie.a},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(t){var e=this,n=this.data||[];return t("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map((function(e){return t("col",{attrs:{name:e.id},key:e.id})}))]),t("tbody",[n.reduce((function(t,n){return t.concat(e.wrappedRowRender(n,t.length))}),[]),t("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:ki({table:function(){return this.$parent}},vi({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length},hasExpandColumn:function(t){return t.columns.some((function(t){var e=t.type;return"expand"===e}))}}),{firstDefaultColumnIndex:function(){return Object(b["arrayFindIndex"])(this.columns,(function(t){var e=t.type;return"default"===e}))}}),watch:{"store.states.hoverRow":function(t,e){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(t){return setTimeout(t,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[e],o=r[t];i&&Object(zt["removeClass"])(i,"hover-row"),o&&Object(zt["addClass"])(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=L()(50,(function(t){return t.handleShowPopper()}))},methods:{getKeyOfRow:function(t,e){var n=this.table.rowKey;return n?Jr(t,n):e},isColumnHidden:function(t){return!0===this.fixed||"left"===this.fixed?t>=this.leftFixedLeafCount:"right"===this.fixed?t<this.columnsCount-this.rightFixedLeafCount:t<this.leftFixedLeafCount||t>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(t,e,n,r){var i=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:t,column:e,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":Si(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(t,e){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:t,rowIndex:e}):n||null},getRowClass:function(t,e){var n=["el-table__row"];this.table.highlightCurrentRow&&t===this.store.states.currentRow&&n.push("current-row"),this.stripe&&e%2===1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"===typeof r?n.push(r):"function"===typeof r&&n.push(r.call(null,{row:t,rowIndex:e})),this.store.states.expandRows.indexOf(t)>-1&&n.push("expanded"),n},getCellStyle:function(t,e,n,r){var i=this.table.cellStyle;return"function"===typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getCellClass:function(t,e,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(e)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.join(" ")},getColspanRealWidth:function(t,e,n){if(e<1)return t[n].realWidth;var r=t.map((function(t){var e=t.realWidth;return e})).slice(n,n+e);return r.reduce((function(t,e){return t+e}),-1)},handleCellMouseEnter:function(t,e){var n=this.table,r=Wr(t);if(r){var i=Zr(n,r),o=n.hoverState={cell:r,column:i,row:e};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,t)}var a=t.target.querySelector(".cell");if(Object(zt["hasClass"])(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);var u=s.getBoundingClientRect().width,c=(parseInt(Object(zt["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(zt["getStyle"])(a,"paddingRight"),10)||0);if((u+c>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var l=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,l.referenceElm=r,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},handleCellMouseLeave:function(t){var e=this.$refs.tooltip;e&&(e.setExpectedState(!1),e.handleClosePopper());var n=Wr(t);if(n){var r=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",r.row,r.column,r.cell,t)}},handleMouseEnter:L()(30,(function(t){this.store.commit("setHoverRow",t)})),handleMouseLeave:L()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(t,e){this.handleEvent(t,e,"contextmenu")},handleDoubleClick:function(t,e){this.handleEvent(t,e,"dblclick")},handleClick:function(t,e){this.store.commit("setCurrentRow",e),this.handleEvent(t,e,"click")},handleEvent:function(t,e,n){var r=this.table,i=Wr(t),o=void 0;i&&(o=Zr(r,i),o&&r.$emit("cell-"+n,e,o,i,t)),r.$emit("row-"+n,e,o,t)},rowRender:function(t,e,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,u=a.map((function(t,e){return r.isColumnHidden(e)})),c=this.getRowClass(t,e),l=!0;n&&(c.push("el-table__row--level-"+n.level),l=n.display);var f=l?null:{display:"none"};return i("tr",{style:[f,this.getRowStyle(t,e)],class:c,key:this.getKeyOfRow(t,e),on:{dblclick:function(e){return r.handleDoubleClick(e,t)},click:function(e){return r.handleClick(e,t)},contextmenu:function(e){return r.handleContextMenu(e,t)},mouseenter:function(t){return r.handleMouseEnter(e)},mouseleave:this.handleMouseLeave}},[a.map((function(c,l){var f=r.getSpan(t,c,e,l),d=f.rowspan,h=f.colspan;if(!d||!h)return null;var p=ki({},c);p.realWidth=r.getColspanRealWidth(a,h,l);var m={store:r.store,_self:r.context||r.table.$vnode.context,column:p,row:t,$index:e};return l===s&&n&&(m.treeNode={indent:n.level*o,level:n.level},"boolean"===typeof n.expanded&&(m.treeNode.expanded=n.expanded,"loading"in n&&(m.treeNode.loading=n.loading),"noLazyChildren"in n&&(m.treeNode.noLazyChildren=n.noLazyChildren))),i("td",{style:r.getCellStyle(e,l,t,c),class:r.getCellClass(e,l,t,c),attrs:{rowspan:d,colspan:h},on:{mouseenter:function(e){return r.handleCellMouseEnter(e,t)},mouseleave:r.handleCellMouseLeave}},[c.renderCell.call(r._renderProxy,r.$createElement,m,u[l])])}))])},wrappedRowRender:function(t,e){var n=this,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,u=s.treeData,c=s.lazyTreeNodeMap,l=s.childrenColumnName,f=s.rowKey;if(this.hasExpandColumn&&o(t)){var d=this.table.renderExpanded,h=this.rowRender(t,e);return d?[[h,r("tr",{key:"expanded-row__"+h.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[d(this.$createElement,{row:t,$index:e,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),h)}if(Object.keys(u).length){a();var p=Jr(t,f),m=u[p],g=null;m&&(g={expanded:m.expanded,level:m.level,display:!0},"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(g.noLazyChildren=!(m.children&&m.children.length)),g.loading=m.loading));var v=[this.rowRender(t,e,g)];if(m){var b=0,y=function t(r,i){r&&r.length&&i&&r.forEach((function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=Jr(r,f);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(m=ki({},u[a]),m&&(o.expanded=m.expanded,m.level=m.level||o.level,m.display=!(!m.expanded||!o.display),"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(o.noLazyChildren=!(m.children&&m.children.length)),o.loading=m.loading)),b++,v.push(n.rowRender(r,e+b,o)),m){var s=c[a]||r[l];t(s,m)}}))};m.display=!0;var w=c[p]||t[l];y(w,m)}return v}return this.rowRender(t,e)}}},Ei=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"}},[t.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:t.filteredValue,callback:function(e){t.filteredValue=e},expression:"filteredValue"}},t._l(t.filters,(function(e){return n("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===t.filteredValue.length},attrs:{disabled:0===t.filteredValue.length},on:{click:t.handleConfirm}},[t._v(t._s(t.t("el.table.confirmFilter")))]),n("button",{on:{click:t.handleReset}},[t._v(t._s(t.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===t.filterValue||null===t.filterValue},on:{click:function(e){t.handleSelect(null)}}},[t._v(t._s(t.t("el.table.clearFilter")))]),t._l(t.filters,(function(e){return n("li",{key:e.value,staticClass:"el-table-filter__list-item",class:{"is-active":t.isActive(e)},attrs:{label:e.value},on:{click:function(n){t.handleSelect(e.value)}}},[t._v(t._s(e.text))])}))],2)])])},Oi=[];Ei._withStripped=!0;var Ti=[];!Ur.a.prototype.$isServer&&document.addEventListener("click",(function(t){Ti.forEach((function(e){var n=t.target;e&&e.$el&&(n===e.$el||e.$el.contains(n)||e.handleOutsideClick&&e.handleOutsideClick(t))}))}));var Ai={open:function(t){t&&Ti.push(t)},close:function(t){var e=Ti.indexOf(t);-1!==e&&Ti.splice(t,1)}},Di=n(32),Ni=n.n(Di),Ri={name:"ElTableFilterPanel",mixins:[V.a,v.a],directives:{Clickoutside:j.a},components:{ElCheckbox:Br.a,ElCheckboxGroup:Ni.a,ElScrollbar:q.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(t){return t.value===this.filterValue},handleOutsideClick:function(){var t=this;setTimeout((function(){t.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(t){this.filterValue=t,"undefined"!==typeof t&&null!==t?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(t){this.table.store.commit("filterChange",{column:this.column,values:t}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(t){this.filteredValue&&("undefined"!==typeof t&&null!==t?this.filteredValue.splice(0,1,t):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(t){this.column&&(this.column.filteredValue=t)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var t=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){t.updatePopper()})),this.$watch("showPopper",(function(e){t.column&&(t.column.filterOpened=e),e?Ai.open(t):Ai.close(t)}))},watch:{showPopper:function(t){!0===t&&parseInt(this.popperJS._popper.style.zIndex,10)<C["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=C["PopupManager"].nextZIndex())}}},Pi=Ri,Ii=s(Pi,Ei,Oi,!1,null,null,null);Ii.options.__file="packages/table/src/filter-panel.vue";var Bi=Ii.exports,Li=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zi=function t(e){var n=[];return e.forEach((function(e){e.children?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)})),n},ji=function(t){var e=1,n=function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children){var i=0;n.children.forEach((function(e){t(e,n),i+=e.colSpan})),n.colSpan=i}else n.colSpan=1};t.forEach((function(t){t.level=1,n(t)}));for(var r=[],i=0;i<e;i++)r.push([]);var o=zi(t);return o.forEach((function(t){t.children?t.rowSpan=1:t.rowSpan=e-t.level+1,r[t.level-1].push(t)})),r},Fi={name:"ElTableHeader",mixins:[Ci],render:function(t){var e=this,n=this.store.states.originColumns,r=ji(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),t("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map((function(e){return t("col",{attrs:{name:e.id},key:e.id})})),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return t("tr",{style:e.getHeaderRowStyle(r),class:e.getHeaderRowClass(r)},[n.map((function(i,o){return t("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(t){return e.handleMouseMove(t,i)},mouseout:e.handleMouseOut,mousedown:function(t){return e.handleMouseDown(t,i)},click:function(t){return e.handleHeaderClick(t,i)},contextmenu:function(t){return e.handleHeaderContextMenu(t,i)}},style:e.getHeaderCellStyle(r,o,n,i),class:e.getHeaderCellClass(r,o,n,i),key:i.id},[t("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(e._renderProxy,t,{column:i,$index:o,store:e.store,_self:e.$parent.$vnode.context}):i.label,i.sortable?t("span",{class:"caret-wrapper",on:{click:function(t){return e.handleSortClick(t,i)}}},[t("i",{class:"sort-caret ascending",on:{click:function(t){return e.handleSortClick(t,i,"ascending")}}}),t("i",{class:"sort-caret descending",on:{click:function(t){return e.handleSortClick(t,i,"descending")}}})]):"",i.filterable?t("span",{class:"el-table__column-filter-trigger",on:{click:function(t){return e.handleFilterClick(t,i)}}},[t("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])})),e.hasGutter?t("th",{class:"gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:Br.a},computed:Li({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},vi({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.defaultSort,n=e.prop,r=e.order,i=!0;t.store.commit("sort",{prop:n,order:r,init:i})}))},beforeDestroy:function(){var t=this.filterPanels;for(var e in t)t.hasOwnProperty(e)&&t[e]&&t[e].$destroy(!0)},methods:{isCellHidden:function(t,e){for(var n=0,r=0;r<t;r++)n+=e[r].colSpan;var i=n+e[t].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(t){var e=this.table.headerRowStyle;return"function"===typeof e?e.call(null,{rowIndex:t}):e},getHeaderRowClass:function(t){var e=[],n=this.table.headerRowClassName;return"string"===typeof n?e.push(n):"function"===typeof n&&e.push(n.call(null,{rowIndex:t})),e.join(" ")},getHeaderCellStyle:function(t,e,n,r){var i=this.table.headerCellStyle;return"function"===typeof i?i.call(null,{rowIndex:t,columnIndex:e,row:n,column:r}):i},getHeaderCellClass:function(t,e,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===t&&this.isCellHidden(e,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:t,columnIndex:e,row:n,column:r})),i.join(" ")},toggleAllSelection:function(t){t.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(t,e){t.stopPropagation();var n=t.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(zt["hasClass"])(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[e.id];o&&e.filterOpened?o.showPopper=!1:(o||(o=new Ur.a(Bi),this.filterPanels[e.id]=o,e.filterPlacement&&(o.placement=e.filterPlacement),o.table=i,o.cell=r,o.column=e,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(t,e){!e.filters&&e.sortable?this.handleSortClick(t,e):e.filterable&&!e.sortable&&this.handleFilterClick(t,e),this.$parent.$emit("header-click",e,t)},handleHeaderContextMenu:function(t,e){this.$parent.$emit("header-contextmenu",e,t)},handleMouseDown:function(t,e){var n=this;if(!this.$isServer&&!(e.children&&e.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el,o=i.getBoundingClientRect().left,a=this.$el.querySelector("th."+e.id),s=a.getBoundingClientRect(),u=s.left-o+30;Object(zt["addClass"])(a,"noclick"),this.dragState={startMouseLeft:t.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var c=r.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var l=function(t){var e=t.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+e;c.style.left=Math.max(u,r)+"px"},f=function i(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,u=o.startLeft,f=parseInt(c.style.left,10),d=f-s;e.width=e.realWidth=d,r.$emit("header-dragend",e.width,u-s,e,t),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(zt["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",f)}},handleMouseMove:function(t,e){if(!(e.children&&e.children.length>0)){var n=t.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(e&&e.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-t.pageX<8?(i.cursor="col-resize",Object(zt["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=e):this.dragging||(i.cursor="",Object(zt["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(t){var e=t.order,n=t.sortOrders;if(""===e)return n[0];var r=n.indexOf(e||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(t,e,n){t.stopPropagation();var r=e.order===n?null:n||this.toggleOrder(e),i=t.target;while(i&&"TH"!==i.tagName)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(zt["hasClass"])(i,"noclick"))Object(zt["removeClass"])(i,"noclick");else if(e.sortable){var o=this.store.states,a=o.sortProp,s=void 0,u=o.sortingColumn;(u!==e||u===e&&null===u.order)&&(u&&(u.order=null),o.sortingColumn=e,a=e.property),s=e.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},$i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hi={name:"ElTableFooter",mixins:[Ci],render:function(t){var e=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(t,r){if(0!==r){var i=e.store.states.data.map((function(e){return Number(e[t.property])})),o=[],a=!0;i.forEach((function(t){if(!isNaN(t)){a=!1;var e=(""+t).split(".")[1];o.push(e?e.length:0)}}));var s=Math.max.apply(null,o);n[r]=a?"":i.reduce((function(t,e){var n=Number(e);return isNaN(n)?t:parseFloat((t+e).toFixed(Math.min(s,20)))}),0)}else n[r]=e.sumText})),t("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[t("colgroup",[this.columns.map((function(e){return t("col",{attrs:{name:e.id},key:e.id})})),this.hasGutter?t("col",{attrs:{name:"gutter"}}):""]),t("tbody",{class:[{"has-gutter":this.hasGutter}]},[t("tr",[this.columns.map((function(r,i){return t("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:e.getRowClasses(r,i)},[t("div",{class:["cell",r.labelClassName]},[n[i]])])})),this.hasGutter?t("th",{class:"gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:$i({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},vi({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(t){return t.columns.length},leftFixedCount:function(t){return t.fixedColumns.length},rightFixedCount:function(t){return t.rightFixedColumns.length}})),methods:{isCellHidden:function(t,e,n){if(!0===this.fixed||"left"===this.fixed)return t>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<t;i++)r+=e[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(t<this.leftFixedCount||t>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(t,e){var n=[t.id,t.align,t.labelClassName];return t.className&&n.push(t.className),this.isCellHidden(e,this.columns,t)&&n.push("is-hidden"),t.children||n.push("is-leaf"),n}}},Vi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ui=1,qi={name:"ElTable",mixins:[v.a,M.a],directives:{Mousewheel:Hr},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:Fi,TableFooter:Hi,TableBody:Mi,ElCheckbox:Br.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(t){this.store.commit("setCurrentRow",t)},toggleRowSelection:function(t,e){this.store.toggleRowSelection(t,e,!1),this.store.updateAllSelected()},toggleRowExpansion:function(t,e){this.store.toggleRowExpansionAdapter(t,e)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(t){this.store.clearFilter(t)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var t=this.layout.updateScrollY();t&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(t,e){var n=this.bodyWrapper;if(Math.abs(e.spinY)>0){var r=n.scrollTop;e.pixelY<0&&0!==r&&t.preventDefault(),e.pixelY>0&&n.scrollHeight-n.clientHeight>r&&t.preventDefault(),n.scrollTop+=Math.ceil(e.pixelY/5)}else n.scrollLeft+=Math.ceil(e.pixelX/5)},handleHeaderFooterMousewheel:function(t,e){var n=e.pixelX,r=e.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=e.pixelX/5)},syncPostion:Object(Lr["throttle"])(20,(function(){var t=this.bodyWrapper,e=t.scrollLeft,n=t.scrollTop,r=t.offsetWidth,i=t.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,u=o.fixedBodyWrapper,c=o.rightFixedBodyWrapper;a&&(a.scrollLeft=e),s&&(s.scrollLeft=e),u&&(u.scrollTop=n),c&&(c.scrollTop=n);var l=i-r-1;this.scrollPosition=e>=l?"right":0===e?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(tr["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(tr["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var t=!1,e=this.$el,n=this.resizeState,r=n.width,i=n.height,o=e.offsetWidth;r!==o&&(t=!0);var a=e.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(t=!0),t&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(t,e){this.store.commit("sort",{prop:t,order:e})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Vi({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var t=this.layout,e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e?e-(n?r:0)+"px":""},bodyHeight:function(){var t=this.layout,e=t.headerHeight,n=void 0===e?0:e,r=t.bodyHeight,i=t.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=ii(this.maxHeight);if("number"===typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var t=ii(this.maxHeight);if("number"===typeof t)return t=this.layout.scrollX?t-this.layout.gutterWidth:t,this.showHeader&&(t-=this.layout.headerHeight),t-=this.layout.footerHeight,{"max-height":t+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var t="100%";return this.layout.appendHeight&&(t="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:t}}},vi({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(t){this.layout.setHeight(t)}},maxHeight:{immediate:!0,handler:function(t){this.layout.setMaxHeight(t)}},currentRowKey:{immediate:!0,handler:function(t){this.rowKey&&this.store.setCurrentRowKey(t)}},data:{immediate:!0,handler:function(t){this.store.commit("setData",t)}},expandRowKeys:{immediate:!0,handler:function(t){t&&this.store.setExpandRowKeysAdapter(t)}}},created:function(){var t=this;this.tableId="el-table_"+Ui++,this.debouncedUpdateLayout=Object(Lr["debounce"])(50,(function(){return t.doLayout()}))},mounted:function(){var t=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(e){e.filteredValue&&e.filteredValue.length&&t.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var t=this.treeProps,e=t.hasChildren,n=void 0===e?"hasChildren":e,r=t.children,i=void 0===r?"children":r;this.store=gi(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i});var o=new xi({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Wi=qi,Ki=s(Wi,Rr,Pr,!1,null,null,null);Ki.options.__file="packages/table/src/table.vue";var Gi=Ki.exports;Gi.install=function(t){t.component(Gi.name,Gi)};var Yi=Gi,Xi={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Zi={selection:{renderHeader:function(t,e){var n=e.store;return t("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(t,e){var n=e.row,r=e.column,i=e.store,o=e.$index;return t("el-checkbox",{nativeOn:{click:function(t){return t.stopPropagation()}},attrs:{value:i.isSelected(n),disabled:!!r.selectable&&!r.selectable.call(null,n,o)},on:{input:function(){i.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(t,e){var n=e.column;return n.label||"#"},renderCell:function(t,e){var n=e.$index,r=e.column,i=n+1,o=r.index;return"number"===typeof o?i=n+o:"function"===typeof o&&(i=o(n)),t("div",[i])},sortable:!1},expand:{renderHeader:function(t,e){var n=e.column;return n.label||""},renderCell:function(t,e){var n=e.row,r=e.store,i=["el-table__expand-icon"];r.states.expandRows.indexOf(n)>-1&&i.push("el-table__expand-icon--expanded");var o=function(t){t.stopPropagation(),r.toggleRowExpansion(n)};return t("div",{class:i,on:{click:o}},[t("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Ji(t,e){var n=e.row,r=e.column,i=e.$index,o=r.property,a=o&&Object(b["getPropByPath"])(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}function Qi(t,e){var n=e.row,r=e.treeNode,i=e.store;if(!r)return null;var o=[],a=function(t){t.stopPropagation(),i.loadOrToggle(n)};if(r.indent&&o.push(t("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!==typeof r.expanded||r.noLazyChildren)o.push(t("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],u=["el-icon-arrow-right"];r.loading&&(u=["el-icon-loading"]),o.push(t("div",{class:s,on:{click:a}},[t("i",{class:u})]))}return o}var to=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},eo=1,no={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(t){return t.every((function(t){return["ascending","descending",null].indexOf(t)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var t=this.$parent;while(t&&!t.tableId)t=t.$parent;return t},columnOrTableParent:function(){var t=this.$parent;while(t&&!t.tableId&&!t.columnId)t=t.$parent;return t},realWidth:function(){return ni(this.width)},realMinWidth:function(){return ri(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return Array.isArray(n)&&n.forEach((function(n){e[n]=t[n]})),e}),{})},getColumnElIndex:function(t,e){return[].indexOf.call(t,e)},setColumnWidth:function(t){return this.realWidth&&(t.width=this.realWidth),this.realMinWidth&&(t.minWidth=this.realMinWidth),t.minWidth||(t.minWidth=80),t.realWidth=void 0===t.width?t.minWidth:t.width,t},setColumnForcedProps:function(t){var e=t.type,n=Zi[e]||{};return Object.keys(n).forEach((function(e){var r=n[e];void 0!==r&&(t[e]="className"===e?t[e]+" "+r:r)})),t},setColumnRenders:function(t){var e=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==t.type&&(t.renderHeader=function(n,r){var i=e.$scopedSlots.header;return i?i(r):t.label});var n=t.renderCell;return"expand"===t.type?(t.renderCell=function(t,e){return t("div",{class:"cell"},[n(t,e)])},this.owner.renderExpanded=function(t,n){return e.$scopedSlots.default?e.$scopedSlots.default(n):e.$slots.default}):(n=n||Ji,t.renderCell=function(r,i){var o=null;o=e.$scopedSlots.default?e.$scopedSlots.default(i):n(r,i);var a=Qi(r,i),s={class:"cell",style:{}};return t.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[a,o])}),t},registerNormalWatchers:function(){var t=this,e=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},r=e.reduce((function(t,e){return t[e]=e,t}),n);Object.keys(r).forEach((function(e){var r=n[e];t.$watch(e,(function(e){t.columnConfig[r]=e}))}))},registerComplexWatchers:function(){var t=this,e=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},r=e.reduce((function(t,e){return t[e]=e,t}),n);Object.keys(r).forEach((function(e){var r=n[e];t.$watch(e,(function(e){t.columnConfig[r]=e;var n="fixed"===r;t.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:Br.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var t=this.columnOrTableParent;this.isSubColumn=this.owner!==t,this.columnId=(t.tableId||t.columnId)+"_column_"+eo++;var e=this.type||"default",n=""===this.sortable||this.sortable,r=to({},Xi[e],{id:this.columnId,type:e,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],o=["sortMethod","sortBy","sortOrders"],a=["selectable","reserveSelection"],s=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],u=this.getPropsData(i,o,a,s);u=ei(r,u);var c=oi(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);u=c(u),this.columnConfig=u,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var t=this.owner,e=this.columnOrTableParent,n=this.isSubColumn?e.$el.children:e.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);t.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?e.columnConfig:null)},destroyed:function(){if(this.$parent){var t=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?t.columnConfig:null)}},render:function(t){return t("div",this.$slots.default)},install:function(t){t.component(no.name,no)}},ro=no,io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+t.type,t.pickerSize?"el-range-editor--"+t.pickerSize:"",t.pickerDisabled?"is-disabled":"",t.pickerVisible?"is-active":""],on:{click:t.handleRangeClick,mouseenter:t.handleMouseEnter,mouseleave:function(e){t.showClose=!1},keydown:t.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",t.triggerClass]}),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.startPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[0]},domProps:{value:t.displayValue&&t.displayValue[0]},on:{input:t.handleStartInput,change:t.handleStartChange,focus:t.handleFocus}},"input",t.firstInputId,!1)),t._t("range-separator",[n("span",{staticClass:"el-range-separator"},[t._v(t._s(t.rangeSeparator))])]),n("input",t._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:t.endPlaceholder,disabled:t.pickerDisabled,readonly:!t.editable||t.readonly,name:t.name&&t.name[1]},domProps:{value:t.displayValue&&t.displayValue[1]},on:{input:t.handleEndInput,change:t.handleEndChange,focus:t.handleFocus}},"input",t.secondInputId,!1)),t.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[t.showClose?""+t.clearIcon:""],on:{click:t.handleClickIcon}}):t._e()],2):n("el-input",t._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+t.type,attrs:{readonly:!t.editable||t.readonly||"dates"===t.type||"week"===t.type,disabled:t.pickerDisabled,size:t.pickerSize,name:t.name,placeholder:t.placeholder,value:t.displayValue,validateEvent:!1},on:{focus:t.handleFocus,input:function(e){return t.userInput=e},change:t.handleChange},nativeOn:{keydown:function(e){return t.handleKeydown(e)},mouseenter:function(e){return t.handleMouseEnter(e)},mouseleave:function(e){t.showClose=!1}}},"el-input",t.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:t.triggerClass,attrs:{slot:"prefix"},on:{click:t.handleFocus},slot:"prefix"}),t.haveTrigger?n("i",{staticClass:"el-input__icon",class:[t.showClose?""+t.clearIcon:""],attrs:{slot:"suffix"},on:{click:t.handleClickIcon},slot:"suffix"}):t._e()])},oo=[];io._withStripped=!0;var ao=n(0),so={props:{appendToBody:V.a.props.appendToBody,offset:V.a.props.offset,boundariesPadding:V.a.props.boundariesPadding,arrowOffset:V.a.props.arrowOffset},methods:V.a.methods,data:function(){return ke()({visibleArrow:!0},V.a.data)},beforeDestroy:V.a.beforeDestroy},uo={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},co=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],lo=function(t,e){return"timestamp"===e?t.getTime():Object(ao["formatDate"])(t,e)},fo=function(t,e){return"timestamp"===e?new Date(Number(t)):Object(ao["parseDate"])(t,e)},ho=function(t,e){if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(n&&r)return[lo(n,e),lo(r,e)]}return""},po=function(t,e,n){if(Array.isArray(t)||(t=t.split(n)),2===t.length){var r=t[0],i=t[1];return[fo(r,e),fo(i,e)]}return[]},mo={default:{formatter:function(t){return t?""+t:""},parser:function(t){return void 0===t||""===t?null:t}},week:{formatter:function(t,e){var n=Object(ao["getWeekNumber"])(t),r=t.getMonth(),i=new Date(t);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(ao["formatDate"])(i,e);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n),o},parser:function(t,e){return mo.date.parser(t,e)}},date:{formatter:lo,parser:fo},datetime:{formatter:lo,parser:fo},daterange:{formatter:ho,parser:po},monthrange:{formatter:ho,parser:po},datetimerange:{formatter:ho,parser:po},timerange:{formatter:ho,parser:po},time:{formatter:lo,parser:fo},month:{formatter:lo,parser:fo},year:{formatter:lo,parser:fo},number:{formatter:function(t){return t?""+t:""},parser:function(t){var e=Number(t);return isNaN(t)?null:e}},dates:{formatter:function(t,e){return t.map((function(t){return lo(t,e)}))},parser:function(t,e){return("string"===typeof t?t.split(", "):t).map((function(t){return t instanceof Date?t:fo(t,e)}))}}},go={left:"bottom-start",center:"bottom",right:"bottom-end"},vo=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!t)return null;var i=(mo[n]||mo["default"]).parser,o=e||uo[n];return i(t,o,r)},bo=function(t,e,n){if(!t)return null;var r=(mo[n]||mo["default"]).formatter,i=e||uo[n];return r(t,i)},yo=function(t,e){var n=function(t,e){var n=t instanceof Date,r=e instanceof Date;return n&&r?t.getTime()===e.getTime():!n&&!r&&t===e},r=t instanceof Array,i=e instanceof Array;return r&&i?t.length===e.length&&t.every((function(t,r){return n(t,e[r])})):!r&&!i&&n(t,e)},wo=function(t){return"string"===typeof t||t instanceof String},_o=function(t){return null===t||void 0===t||wo(t)||Array.isArray(t)&&2===t.length&&t.every(wo)},xo={mixins:[O.a,so],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:_o},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:_o},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:m.a},directives:{Clickoutside:j.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(t){this.readonly||this.pickerDisabled||(t?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(t){this.picker&&(this.picker.value=t)}},defaultValue:function(t){this.picker&&(this.picker.defaultValue=t)},value:function(t,e){yo(t,e)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",t)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var t=this.$refs.reference;return t.$el||t},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var t=this.value;if(Array.isArray(t)){for(var e=0,n=t.length;e<n;e++)if(t[e])return!1}else if(t)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==co.indexOf(this.type)},displayValue:function(){var t=bo(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||t&&t[0]||"",this.userInput[1]||t&&t[1]||""]:null!==this.userInput?this.userInput:t?"dates"===this.type?t.join(", "):t:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var t=Object(ao["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(ao["isDateObject"]);return t?this.value:this.valueFormat?vo(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(t){return new Date(t)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var t={},e=void 0;return e=this.ranged?this.id&&this.id[0]:this.id,e&&(t.id=e),t},secondInputId:function(){var t={},e=void 0;return this.ranged&&(e=this.id&&this.id[1]),e&&(t.id=e),t}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=go[this.align]||go.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(t){return t.blur()}))},parseValue:function(t){var e=Object(ao["isDateObject"])(t)||Array.isArray(t)&&t.every(ao["isDateObject"]);return this.valueFormat&&!e&&vo(t,this.valueFormat,this.type,this.rangeSeparator)||t},formatToValue:function(t){var e=Object(ao["isDateObject"])(t)||Array.isArray(t)&&t.every(ao["isDateObject"]);return this.valueFormat&&e?bo(t,this.valueFormat,this.type,this.rangeSeparator):t},parseString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return vo(t,this.format,e)},formatToString:function(t){var e=Array.isArray(t)?this.type:this.type.replace("range","");return bo(t,this.format,e)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var t=this.parseString(this.displayValue);t&&(this.picker.value=t,this.isValidValue(t)&&(this.emitInput(t),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(t){this.userInput?this.userInput=[t.target.value,this.userInput[1]]:this.userInput=[t.target.value,null]},handleEndInput:function(t){this.userInput?this.userInput=[this.userInput[0],t.target.value]:this.userInput=[null,t.target.value]},handleStartChange:function(t){var e=this.parseString(this.userInput&&this.userInput[0]);if(e){this.userInput=[this.formatToString(e),this.displayValue[1]];var n=[e,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(t){var e=this.parseString(this.userInput&&this.userInput[1]);if(e){this.userInput=[this.displayValue[0],this.formatToString(e)];var n=[this.picker.value&&this.picker.value[0],e];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(t){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,t.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var t=vo(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(t)}},handleFieldReset:function(t){this.userInput=""===t?null:t},handleFocus:function(){var t=this.type;-1===co.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(t){var e=this,n=t.keyCode;return 27===n?(this.pickerVisible=!1,void t.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void t.stopPropagation()):void(this.userInput?t.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(t)):void(this.ranged?setTimeout((function(){-1===e.refInput.indexOf(document.activeElement)&&(e.pickerVisible=!1,e.blur(),t.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),t.stopPropagation()))},handleRangeClick:function(){var t=this.type;-1===co.indexOf(t)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var t=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){t.picker.adjustSpinners&&t.picker.adjustSpinners()})))},mountPicker:function(){var t=this;this.picker=new Ur.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(e){t.picker.format=e}));var e=function(){var e=t.pickerOptions;if(e&&e.selectableRange){var n=e.selectableRange,r=mo.datetimerange.parser,i=uo.timerange;n=Array.isArray(n)?n:[n],t.picker.selectableRange=n.map((function(e){return r(e,i,t.rangeSeparator)}))}for(var o in e)e.hasOwnProperty(o)&&"selectableRange"!==o&&(t.picker[o]=e[o]);t.format&&(t.picker.format=t.format)};e(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return e()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.userInput=null,t.pickerVisible=t.picker.visible=n,t.emitInput(e),t.picker.resetView&&t.picker.resetView()})),this.picker.$on("select-range",(function(e,n,r){0!==t.refInput.length&&(r&&"min"!==r?"max"===r&&(t.refInput[1].setSelectionRange(e,n),t.refInput[1].focus()):(t.refInput[0].setSelectionRange(e,n),t.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(t){yo(t,this.valueOnOpen)||(this.$emit("change",t),this.valueOnOpen=t,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",t))},emitInput:function(t){var e=this.formatToValue(t);yo(this.value,e)||this.$emit("input",e)},isValidValue:function(t){return this.picker||this.mountPicker(),!this.picker.isValidValue||t&&this.picker.isValidValue(t)}}},Co=xo,So=s(Co,io,oo,!1,null,null,null);So.options.__file="packages/date-picker/src/picker.vue";var ko=So.exports,Mo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":t.handleEnter,"after-leave":t.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,(function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:t.t("el.datepicker.selectDate"),value:t.visibleDate,size:"small"},on:{input:function(e){return t.userInputDate=e},change:t.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:t.t("el.datepicker.selectTime"),value:t.visibleTime,size:"small"},on:{focus:function(e){t.timePickerVisible=!0},input:function(e){return t.userInputTime=e},change:t.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.timePickerVisible},on:{pick:t.handleTimePick,mounted:t.proxyTimePickerDataProperties}})],1)]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==t.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===t.currentView||"month"===t.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevYear")},on:{click:t.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":t.t("el.datepicker.prevMonth")},on:{click:t.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:t.showYearPicker}},[t._v(t._s(t.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===t.currentView},attrs:{role:"button"},on:{click:t.showMonthPicker}},[t._v(t._s(t.t("el.datepicker.month"+(t.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextYear")},on:{click:t.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":t.t("el.datepicker.nextMonth")},on:{click:t.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===t.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":t.selectionMode,"first-day-of-week":t.firstDayOfWeek,value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"cell-class-name":t.cellClassName,"disabled-date":t.disabledDate},on:{pick:t.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===t.currentView,expression:"currentView === 'year'"}],attrs:{value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===t.currentView,expression:"currentView === 'month'"}],attrs:{value:t.value,"default-value":t.defaultValue?new Date(t.defaultValue):null,date:t.date,"disabled-date":t.disabledDate},on:{pick:t.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.footerVisible&&"date"===t.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==t.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.changeToNow}},[t._v("\n "+t._s(t.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:t.confirm}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1)])])},Eo=[];Mo._withStripped=!0;var Oo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":t.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":t.useArrow,"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,date:t.date},on:{change:t.handleChange,"select-range":t.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:t.handleCancel}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!t.disabled},attrs:{type:"button"},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])},To=[];Oo._withStripped=!0;var Ao=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":t.showSeconds}},[t.arrowControl?t._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("hours")},mousemove:function(e){t.adjustCurrentSpinner("hours")}}},t._l(t.hoursList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.hours,disabled:e},on:{click:function(n){t.handleClick("hours",{value:r,disabled:e})}}},[t._v(t._s(("0"+(t.amPmMode?r%12||12:r)).slice(-2))+t._s(t.amPm(r)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("minutes")},mousemove:function(e){t.adjustCurrentSpinner("minutes")}}},t._l(t.minutesList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.minutes,disabled:!e},on:{click:function(e){t.handleClick("minutes",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(e){t.emitSelectRange("seconds")},mousemove:function(e){t.adjustCurrentSpinner("seconds")}}},t._l(60,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===t.seconds},on:{click:function(e){t.handleClick("seconds",{value:r,disabled:!1})}}},[t._v(t._s(("0"+r).slice(-2)))])})),0)],t.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},t._l(t.arrowHourList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.hours,disabled:t.hoursList[e]}},[t._v(t._s(void 0===e?"":("0"+(t.amPmMode?e%12||12:e)).slice(-2)+t.amPm(e)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},t._l(t.arrowMinuteList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.minutes}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])})),0)]),t.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(e){t.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},t._l(t.arrowSecondList,(function(e,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:e===t.seconds}},[t._v("\n "+t._s(void 0===e?"":("0"+e).slice(-2))+"\n ")])})),0)]):t._e()]:t._e()],2)},Do=[];Ao._withStripped=!0;var No={components:{ElScrollbar:q.a},directives:{repeatClick:Pe},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(ao["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(ao["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var t=this.hours;return[t>0?t-1:void 0,t,t<23?t+1:void 0]},arrowMinuteList:function(){var t=this.minutes;return[t>0?t-1:void 0,t,t<59?t+1:void 0]},arrowSecondList:function(){var t=this.seconds;return[t>0?t-1:void 0,t,t<59?t+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var t=this;this.$nextTick((function(){!t.arrowControl&&t.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(t,e){switch(t){case"hours":this.$emit("change",Object(ao["modifyTime"])(this.date,e,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(ao["modifyTime"])(this.date,this.hours,e,this.seconds));break;case"seconds":this.$emit("change",Object(ao["modifyTime"])(this.date,this.hours,this.minutes,e));break}},handleClick:function(t,e){var n=e.value,r=e.disabled;r||(this.modifyDateField(t,n),this.emitSelectRange(t),this.adjustSpinner(t,n))},emitSelectRange:function(t){"hours"===t?this.$emit("select-range",0,2):"minutes"===t?this.$emit("select-range",3,5):"seconds"===t&&this.$emit("select-range",6,8),this.currentScrollbar=t},bindScrollEvent:function(){var t=this,e=function(e){t.$refs[e].wrap.onscroll=function(n){t.handleScroll(e,n)}};e("hours"),e("minutes"),e("seconds")},handleScroll:function(t){var e=Math.min(Math.round((this.$refs[t].wrap.scrollTop-(.5*this.scrollBarHeight(t)-10)/this.typeItemHeight(t)+3)/this.typeItemHeight(t)),"hours"===t?23:59);this.modifyDateField(t,e)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(t){this.adjustSpinner(t,this[t])},adjustSpinner:function(t,e){if(!this.arrowControl){var n=this.$refs[t].wrap;n&&(n.scrollTop=Math.max(0,e*this.typeItemHeight(t)))}},scrollDown:function(t){var e=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(t);t=t>0?1:-1;var a=r.length;while(a--&&o)i=(i+t+r.length)%r.length,r[i]||o--;if(r[i])return}else i=(i+t+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick((function(){return e.emitSelectRange(e.currentScrollbar)}))},amPm:function(t){var e="a"===this.amPmMode.toLowerCase();if(!e)return"";var n="A"===this.amPmMode,r=t<12?" am":" pm";return n&&(r=r.toUpperCase()),r},typeItemHeight:function(t){return this.$refs[t].$el.querySelector("li").offsetHeight},scrollBarHeight:function(t){return this.$refs[t].$el.offsetHeight}}},Ro=No,Po=s(Ro,Ao,Do,!1,null,null,null);Po.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Io=Po.exports,Bo={mixins:[v.a],components:{TimeSpinner:Io},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(t){var e=this;t?(this.oldValue=this.value,this.$nextTick((function(){return e.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(t){var e=this,n=void 0;t instanceof Date?n=Object(ao["limitTimeRange"])(t,this.selectableRange,this.format):t||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(t){return e.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(t){this.$refs.spinner.selectableRange=t},defaultValue:function(t){Object(ao["isDate"])(this.value)||(this.date=t?new Date(t):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(t){this.visible&&(this.date=Object(ao["clearMilliseconds"])(t),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(t,e){this.$emit("select-range",t,e),this.selectionRange=[t,e]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(!e){var n=Object(ao["clearMilliseconds"])(Object(ao["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,t,e)}},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.$refs.spinner.scrollDown(i),void t.preventDefault()}},isValidValue:function(t){return Object(ao["timeWithinRange"])(t,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(t){var e=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=e.indexOf(this.selectionRange[0]),i=(r+t+e.length)%e.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var t=this;this.$nextTick((function(){return t.handleConfirm(!0,!0)})),this.$emit("mounted")}},Lo=Bo,zo=s(Lo,Oo,To,!1,null,null,null);zo.options.__file="packages/date-picker/src/panel/time.vue";var jo=zo.exports,Fo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-year-table",on:{click:t.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+0)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+1)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+1))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+2)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+2))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+3)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+4)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+4))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+5)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+5))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+6)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+6))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+7)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+8)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+8))])]),n("td",{staticClass:"available",class:t.getCellStyle(t.startYear+9)},[n("a",{staticClass:"cell"},[t._v(t._s(t.startYear+9))])]),n("td"),n("td")])])])},$o=[];Fo._withStripped=!0;var Ho=function(t){var e=Object(ao["getDayCountOfYear"])(t),n=new Date(t,0,1);return Object(ao["range"])(e).map((function(t){return Object(ao["nextDate"])(n,t)}))},Vo={props:{disabledDate:{},value:{},defaultValue:{validator:function(t){return null===t||t instanceof Date&&Object(ao["isDate"])(t)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(t){var e={},n=new Date;return e.disabled="function"===typeof this.disabledDate&&Ho(t).every(this.disabledDate),e.current=Object(b["arrayFindIndex"])(Object(b["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===t}))>=0,e.today=n.getFullYear()===t,e.default=this.defaultValue&&this.defaultValue.getFullYear()===t,e},handleYearTableClick:function(t){var e=t.target;if("A"===e.tagName){if(Object(zt["hasClass"])(e.parentNode,"disabled"))return;var n=e.textContent||e.innerText;this.$emit("pick",Number(n))}}}},Uo=Vo,qo=s(Uo,Fo,$o,!1,null,null,null);qo.options.__file="packages/date-picker/src/basic/year-table.vue";var Wo=qo.exports,Ko=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-month-table",on:{click:t.handleMonthTableClick,mousemove:t.handleMouseMove}},[n("tbody",t._l(t.rows,(function(e,r){return n("tr",{key:r},t._l(e,(function(e,r){return n("td",{key:r,class:t.getCellStyle(e)},[n("div",[n("a",{staticClass:"cell"},[t._v(t._s(t.t("el.datepicker.months."+t.months[e.text])))])])])})),0)})),0)])},Go=[];Ko._withStripped=!0;var Yo=function(t,e){var n=Object(ao["getDayCountOfMonth"])(t,e),r=new Date(t,e,1);return Object(ao["range"])(n).map((function(t){return Object(ao["nextDate"])(r,t)}))},Xo=function(t){return new Date(t.getFullYear(),t.getMonth())},Zo=function(t){return"number"===typeof t||"string"===typeof t?Xo(new Date(t)).getTime():t instanceof Date?Xo(t).getTime():NaN},Jo={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(t){return null===t||Object(ao["isDate"])(t)||Array.isArray(t)&&t.every(ao["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[v.a],watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){Zo(t)!==Zo(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){Zo(t)!==Zo(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.date.getFullYear()===n.getFullYear()&&Number(t.text)===n.getMonth()},getCellStyle:function(t){var e=this,n={},r=this.date.getFullYear(),i=new Date,o=t.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Yo(r,o).every(this.disabledDate),n.current=Object(b["arrayFindIndex"])(Object(b["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===r&&t.getMonth()===o}))>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some((function(n){return e.cellMatchesDate(t,n)})),t.inRange&&(n["in-range"]=!0,t.start&&(n["start-date"]=!0),t.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(t){var e=this.date.getFullYear();return new Date(e,t,1)},markRange:function(t,e){t=Zo(t),e=Zo(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,u=a.length;s<u;s++){var c=a[s],l=4*i+s,f=new Date(this.date.getFullYear(),l).getTime();c.inRange=t&&f>=t&&f<=e,c.start=t&&f===t,c.end=e&&f===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(t){var e=t.target;if("A"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName&&!Object(zt["hasClass"])(e,"disabled")){var n=e.cellIndex,r=e.parentNode.rowIndex,i=4*r+n,o=this.getMonthOfCell(i);"range"===this.selectionMode?this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",i)}}},computed:{rows:function(){for(var t=this,e=this.tableRows,n=this.disabledDate,r=[],i=Zo(new Date),o=0;o<3;o++)for(var a=e[o],s=function(e){var s=a[e];s||(s={row:o,column:e,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var u=4*o+e,c=new Date(t.date.getFullYear(),u).getTime();s.inRange=c>=Zo(t.minDate)&&c<=Zo(t.maxDate),s.start=t.minDate&&c===Zo(t.minDate),s.end=t.maxDate&&c===Zo(t.maxDate);var l=c===i;l&&(s.type="today"),s.text=u;var f=new Date(c);s.disabled="function"===typeof n&&n(f),s.selected=Object(b["arrayFind"])(r,(function(t){return t.getTime()===f.getTime()})),t.$set(a,e,s)},u=0;u<4;u++)s(u);return e}}},Qo=Jo,ta=s(Qo,Ko,Go,!1,null,null,null);ta.options.__file="packages/date-picker/src/basic/month-table.vue";var ea=ta.exports,na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===t.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:t.handleClick,mousemove:t.handleMouseMove}},[n("tbody",[n("tr",[t.showWeekNumber?n("th",[t._v(t._s(t.t("el.datepicker.week")))]):t._e(),t._l(t.WEEKS,(function(e,r){return n("th",{key:r},[t._v(t._s(t.t("el.datepicker.weeks."+e)))])}))],2),t._l(t.rows,(function(e,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:t.isWeekActive(e[1])}},t._l(e,(function(e,r){return n("td",{key:r,class:t.getCellClasses(e)},[n("div",[n("span",[t._v("\n "+t._s(e.text)+"\n ")])])])})),0)}))],2)])},ra=[];na._withStripped=!0;var ia=["sun","mon","tue","wed","thu","fri","sat"],oa=function(t){return"number"===typeof t||"string"===typeof t?Object(ao["clearTime"])(new Date(t)).getTime():t instanceof Date?Object(ao["clearTime"])(t).getTime():NaN},aa=function(t,e){var n="function"===typeof e?Object(b["arrayFindIndex"])(t,e):t.indexOf(e);return n>=0?[].concat(t.slice(0,n),t.slice(n+1)):t},sa={mixins:[v.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(t){return t>=1&&t<=7}},value:{},defaultValue:{validator:function(t){return null===t||Object(ao["isDate"])(t)||Array.isArray(t)&&t.every(ao["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var t=this.firstDayOfWeek;return t>3?7-t:-t},WEEKS:function(){var t=this.firstDayOfWeek;return ia.concat(ia).slice(t,t+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(ao["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var t=this,e=new Date(this.year,this.month,1),n=Object(ao["getFirstDayOfMonth"])(e),r=Object(ao["getDayCountOfMonth"])(e.getFullYear(),e.getMonth()),i=Object(ao["getDayCountOfMonth"])(e.getFullYear(),0===e.getMonth()?11:e.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,u=this.startDate,c=this.disabledDate,l=this.cellClassName,f="dates"===this.selectionMode?Object(b["coerceTruthyValueToArray"])(this.value):[],d=oa(new Date),h=0;h<6;h++){var p=a[h];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(ao["getWeekNumber"])(Object(ao["nextDate"])(u,7*h+1))}));for(var m=function(e){var a=p[t.showWeekNumber?e+1:e];a||(a={row:h,column:e,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var m=7*h+e,g=Object(ao["nextDate"])(u,m-o).getTime();a.inRange=g>=oa(t.minDate)&&g<=oa(t.maxDate),a.start=t.minDate&&g===oa(t.minDate),a.end=t.maxDate&&g===oa(t.maxDate);var v=g===d;if(v&&(a.type="today"),h>=0&&h<=1){var y=n+o<0?7+n+o:n+o;e+7*h>=y?a.text=s++:(a.text=i-(y-e%7)+1+7*h,a.type="prev-month")}else s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var w=new Date(g);a.disabled="function"===typeof c&&c(w),a.selected=Object(b["arrayFind"])(f,(function(t){return t.getTime()===w.getTime()})),a.customClass="function"===typeof l&&l(w),t.$set(p,t.showWeekNumber?e+1:e,a)},g=0;g<7;g++)m(g);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,w=this.isWeekActive(p[v+1]);p[v].inRange=w,p[v].start=w,p[y].inRange=w,p[y].end=w}}return a}},watch:{"rangeState.endDate":function(t){this.markRange(this.minDate,t)},minDate:function(t,e){oa(t)!==oa(e)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(t,e){oa(t)!==oa(e)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(t,e){var n=new Date(e);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(t.text)===n.getDate()},getCellClasses:function(t){var e=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==t.type&&"today"!==t.type||t.disabled?i.push(t.type):(i.push("available"),"today"===t.type&&i.push("today")),"normal"===t.type&&r.some((function(n){return e.cellMatchesDate(t,n)}))&&i.push("default"),"day"!==n||"normal"!==t.type&&"today"!==t.type||!this.cellMatchesDate(t,this.value)||i.push("current"),!t.inRange||"normal"!==t.type&&"today"!==t.type&&"week"!==this.selectionMode||(i.push("in-range"),t.start&&i.push("start-date"),t.end&&i.push("end-date")),t.disabled&&i.push("disabled"),t.selected&&i.push("selected"),t.customClass&&i.push(t.customClass),i.join(" ")},getDateOfCell:function(t,e){var n=7*t+(e-(this.showWeekNumber?1:0))-this.offsetDay;return Object(ao["nextDate"])(this.startDate,n)},isWeekActive:function(t){if("week"!==this.selectionMode)return!1;var e=new Date(this.year,this.month,1),n=e.getFullYear(),r=e.getMonth();if("prev-month"===t.type&&(e.setMonth(0===r?11:r-1),e.setFullYear(0===r?n-1:n)),"next-month"===t.type&&(e.setMonth(11===r?0:r+1),e.setFullYear(11===r?n+1:n)),e.setDate(parseInt(t.text,10)),Object(ao["isDate"])(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(ao["prevDate"])(this.value,i);return o.getTime()===e.getTime()}return!1},markRange:function(t,e){t=oa(t),e=oa(e)||t;var n=[Math.min(t,e),Math.max(t,e)];t=n[0],e=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],u=0,c=s.length;u<c;u++)if(!this.showWeekNumber||0!==u){var l=s[u],f=7*o+u+(this.showWeekNumber?-1:0),d=Object(ao["nextDate"])(r,f-this.offsetDay).getTime();l.inRange=t&&d>=t&&d<=e,l.start=t&&d===t,l.end=e&&d===e}},handleMouseMove:function(t){if(this.rangeState.selecting){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r=e.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(t){var e=t.target;if("SPAN"===e.tagName&&(e=e.parentNode.parentNode),"DIV"===e.tagName&&(e=e.parentNode),"TD"===e.tagName){var n=e.parentNode.rowIndex-1,r="week"===this.selectionMode?1:e.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(ao["getWeekNumber"])(o),s=o.getFullYear()+"w"+a;this.$emit("pick",{year:o.getFullYear(),week:a,value:s,date:o})}else if("dates"===this.selectionMode){var u=this.value||[],c=i.selected?aa(u,(function(t){return t.getTime()===o.getTime()})):[].concat(u,[o]);this.$emit("pick",c)}}}}}},ua=sa,ca=s(ua,na,ra,!1,null,null,null);ca.options.__file="packages/date-picker/src/basic/date-table.vue";var la=ca.exports,fa={mixins:[v.a],directives:{Clickoutside:j.a},watch:{showTime:function(t){var e=this;t&&this.$nextTick((function(t){var n=e.$refs.input.$el;n&&(e.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(t){"dates"===this.selectionMode&&this.value||(Object(ao["isDate"])(t)?this.date=new Date(t):this.date=this.getDefaultValue())},defaultValue:function(t){Object(ao["isDate"])(this.value)||(this.date=t?new Date(t):new Date)},timePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){return e.$refs.timepicker.adjustSpinners()}))},selectionMode:function(t){"month"===t?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===t&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var t=this,e=function(e){t.$refs.timepicker.format=e},n=function(e){t.$refs.timepicker.value=e},r=function(e){t.$refs.timepicker.date=e},i=function(e){t.$refs.timepicker.selectableRange=e};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),e(this.timeFormat),n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(t)if(Array.isArray(t)){var o=t.map((function(t){return e.showTime?Object(ao["clearMilliseconds"])(t):Object(ao["clearTime"])(t)}));this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(ao["clearMilliseconds"])(t):Object(ao["clearTime"])(t)].concat(r));else this.$emit.apply(this,["pick",t].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(ao["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(ao["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(ao["prevYear"])(this.date,10):this.date=Object(ao["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(ao["nextYear"])(this.date,10):this.date=Object(ao["nextYear"])(this.date)},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleTimePick:function(t,e,n){if(Object(ao["isDate"])(t)){var r=this.value?Object(ao["modifyTime"])(this.value,t.getHours(),t.getMinutes(),t.getSeconds()):Object(ao["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(t,!0);n||(this.timePickerVisible=e)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(t){"month"===this.selectionMode?(this.date=Object(ao["modifyDate"])(this.date,this.year,t,1),this.emit(this.date)):(this.date=Object(ao["changeYearMonthAndClampDate"])(this.date,this.year,t),this.currentView="date")},handleDatePick:function(t){if("day"===this.selectionMode){var e=this.value?Object(ao["modifyDate"])(this.value,t.getFullYear(),t.getMonth(),t.getDate()):Object(ao["modifyWithTimeString"])(t,this.defaultTime);this.checkDateWithinRange(e)||(e=Object(ao["modifyDate"])(this.selectableRange[0][0],t.getFullYear(),t.getMonth(),t.getDate())),this.date=e,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(t.date):"dates"===this.selectionMode&&this.emit(t,!0)},handleYearPick:function(t){"year"===this.selectionMode?(this.date=Object(ao["modifyDate"])(this.date,t,0,1),this.emit(this.date)):(this.date=Object(ao["changeYearMonthAndClampDate"])(this.date,t,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var t=this.value?this.value:Object(ao["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(t),this.emit(t)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(t){var e=t.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(e)&&(this.handleKeyControl(e),t.stopPropagation(),t.preventDefault()),13===e&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(t){var e={year:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setFullYear(t.getFullYear()+e)}},month:{38:-4,40:4,37:-1,39:1,offset:function(t,e){return t.setMonth(t.getMonth()+e)}},week:{38:-1,40:1,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+7*e)}},day:{38:-7,40:7,37:-1,39:1,offset:function(t,e){return t.setDate(t.getDate()+e)}}},n=this.selectionMode,r=31536e6,i=this.date.getTime(),o=new Date(this.date.getTime());while(Math.abs(i-o.getTime())<=r){var a=e[n];if(a.offset(o,a[t]),"function"!==typeof this.disabledDate||!this.disabledDate(o)){this.date=o,this.$emit("pick",o,!0);break}}},handleVisibleTimeChange:function(t){var e=Object(ao["parseDate"])(t,this.timeFormat);e&&this.checkDateWithinRange(e)&&(this.date=Object(ao["modifyDate"])(e,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(t){var e=Object(ao["parseDate"])(t,this.dateFormat);if(e){if("function"===typeof this.disabledDate&&this.disabledDate(e))return;this.date=Object(ao["modifyTime"])(e,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(t){return t&&!isNaN(t)&&("function"!==typeof this.disabledDate||!this.disabledDate(t))&&this.checkDateWithinRange(t)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(t){return!(this.selectableRange.length>0)||Object(ao["timeWithinRange"])(t,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:jo,YearTable:Wo,MonthTable:ea,DateTable:la,ElInput:m.a,ElButton:at.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(ao["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(ao["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(ao["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var t=this.t("el.datepicker.year");if("year"===this.currentView){var e=10*Math.floor(this.year/10);return t?e+" "+t+" - "+(e+9)+" "+t:e+" - "+(e+9)}return this.year+" "+t},timeFormat:function(){return this.format?Object(ao["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ao["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},da=fa,ha=s(da,Mo,Eo,!1,null,null,null);ha.options.__file="packages/date-picker/src/panel/date.vue";var pa=ha.exports,ma=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts,"has-time":t.showTime},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,(function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[t.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startDate"),value:t.minVisibleDate},on:{input:function(e){return t.handleDateInput(e,"min")},change:function(e){return t.handleDateChange(e,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.startTime"),value:t.minVisibleTime},on:{focus:function(e){t.minTimePickerVisible=!0},input:function(e){return t.handleTimeInput(e,"min")},change:function(e){return t.handleTimeChange(e,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.minTimePickerVisible},on:{pick:t.handleMinTimePick,mounted:function(e){t.$refs.minTimePicker.format=t.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endDate"),value:t.maxVisibleDate,readonly:!t.minDate},on:{input:function(e){return t.handleDateInput(e,"max")},change:function(e){return t.handleDateChange(e,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:t.rangeState.selecting,placeholder:t.t("el.datepicker.endTime"),value:t.maxVisibleTime,readonly:!t.minDate},on:{focus:function(e){t.minDate&&(t.maxTimePickerVisible=!0)},input:function(e){return t.handleTimeInput(e,"max")},change:function(e){return t.handleTimeChange(e,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":t.arrowControl,visible:t.maxTimePickerVisible},on:{pick:t.handleMaxTimePick,mounted:function(e){t.$refs.maxTimePicker.format=t.timeFormat}}})],1)])]):t._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevMonth}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.leftNextMonth}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!t.enableMonthArrow},attrs:{type:"button",disabled:!t.enableMonthArrow},on:{click:t.rightPrevMonth}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:t.rightNextMonth}}),n("div",[t._v(t._s(t.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate,"cell-class-name":t.cellClassName,"first-day-of-week":t.firstDayOfWeek},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2),t.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:t.handleClear}},[t._v("\n "+t._s(t.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm(!1)}}},[t._v("\n "+t._s(t.t("el.datepicker.confirm"))+"\n ")])],1):t._e()])])},ga=[];ma._withStripped=!0;var va=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(ao["nextDate"])(new Date(t),1)]:[new Date,Object(ao["nextDate"])(new Date,1)]},ba={mixins:[v.a],directives:{Clickoutside:j.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(ao["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(ao["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(ao["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(ao["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(ao["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ao["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var t=(this.leftMonth+1)%12,e=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+e,t)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ao["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(t){var e=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(e.$refs.maxTimePicker&&e.maxDate&&e.maxDate<e.minDate){var t="HH:mm:ss";e.$refs.maxTimePicker.selectableRange=[[Object(ao["parseDate"])(Object(ao["formatDate"])(e.minDate,t),t),Object(ao["parseDate"])("23:59:59",t)]]}})),t&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=t,this.$refs.minTimePicker.value=t)},maxDate:function(t){this.dateUserInput.max=null,this.timeUserInput.max=null,t&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=t,this.$refs.maxTimePicker.value=t)},minTimePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.minTimePicker.date=e.minDate,e.$refs.minTimePicker.value=e.minDate,e.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.maxTimePicker.date=e.maxDate,e.$refs.maxTimePicker.value=e.maxDate,e.$refs.maxTimePicker.adjustSpinners()}))},value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(ao["isDate"])(t[0])?new Date(t[0]):null,this.maxDate=Object(ao["isDate"])(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=e===r&&n===i?Object(ao["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(ao["nextMonth"])(this.leftDate);else this.leftDate=va(this.defaultValue)[0],this.rightDate=Object(ao["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=va(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&this.unlinkPanels?r:Object(ao["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=va(this.defaultValue)[0],this.rightDate=Object(ao["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleDateInput:function(t,e){if(this.dateUserInput[e]=t,t.length===this.dateFormat.length){var n=Object(ao["parseDate"])(t,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===e?(this.minDate=Object(ao["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))):(this.maxDate=Object(ao["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(ao["prevMonth"])(n)))}}},handleDateChange:function(t,e){var n=Object(ao["parseDate"])(t,this.dateFormat);n&&("min"===e?(this.minDate=Object(ao["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(ao["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(t,e){var n=this;if(this.timeUserInput[e]=t,t.length===this.timeFormat.length){var r=Object(ao["parseDate"])(t,this.timeFormat);r&&("min"===e?(this.minDate=Object(ao["modifyTime"])(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(t){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(ao["modifyTime"])(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(t){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(t,e){var n=Object(ao["parseDate"])(t,this.timeFormat);n&&("min"===e?(this.minDate=Object(ao["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(ao["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(ao["modifyWithTimeString"])(t.minDate,r[0]),o=Object(ao["modifyWithTimeString"])(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout((function(){e.maxDate=o,e.minDate=i}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},handleMinTimePick:function(t,e,n){this.minDate=this.minDate||new Date,t&&(this.minDate=Object(ao["modifyTime"])(this.minDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.minTimePickerVisible=e),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(t,e,n){this.maxDate&&t&&(this.maxDate=Object(ao["modifyTime"])(this.maxDate,t.getHours(),t.getMinutes(),t.getSeconds())),n||(this.maxTimePickerVisible=e),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(ao["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(ao["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(ao["nextYear"])(this.rightDate):(this.leftDate=Object(ao["nextYear"])(this.leftDate),this.rightDate=Object(ao["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(ao["nextMonth"])(this.rightDate):(this.leftDate=Object(ao["nextMonth"])(this.leftDate),this.rightDate=Object(ao["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(ao["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(ao["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ao["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(ao["prevMonth"])(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(ao["isDate"])(t[0])&&Object(ao["isDate"])(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:jo,DateTable:la,ElInput:m.a,ElButton:at.a}},ya=ba,wa=s(ya,ma,ga,!1,null,null,null);wa.options.__file="packages/date-picker/src/panel/date-range.vue";var _a=wa.exports,xa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":t.$slots.sidebar||t.shortcuts},t.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[t._t("sidebar"),t.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},t._l(t.shortcuts,(function(e,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){t.handleShortcutClick(e)}}},[t._v(t._s(e.text))])})),0):t._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:t.leftPrevYear}}),t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.leftNextYear}}):t._e(),n("div",[t._v(t._s(t.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.leftDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[t.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!t.enableYearArrow},attrs:{type:"button",disabled:!t.enableYearArrow},on:{click:t.rightPrevYear}}):t._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:t.rightNextYear}}),n("div",[t._v(t._s(t.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:t.rightDate,"default-value":t.defaultValue,"min-date":t.minDate,"max-date":t.maxDate,"range-state":t.rangeState,"disabled-date":t.disabledDate},on:{changerange:t.handleChangeRange,pick:t.handleRangePick}})],1)])],2)])])},Ca=[];xa._withStripped=!0;var Sa=function(t){return Array.isArray(t)?[new Date(t[0]),new Date(t[1])]:t?[new Date(t),Object(ao["nextMonth"])(new Date(t))]:[new Date,Object(ao["nextMonth"])(new Date)]},ka={mixins:[v.a],directives:{Clickoutside:j.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ao["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(t){if(t){if(Array.isArray(t))if(this.minDate=Object(ao["isDate"])(t[0])?new Date(t[0]):null,this.maxDate=Object(ao["isDate"])(t[1])?new Date(t[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var e=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=e===n?Object(ao["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(ao["nextYear"])(this.leftDate);else this.leftDate=Sa(this.defaultValue)[0],this.rightDate=Object(ao["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(t){if(!Array.isArray(this.value)){var e=Sa(t),n=e[0],r=e[1];this.leftDate=n,this.rightDate=t&&t[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(ao["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Sa(this.defaultValue)[0],this.rightDate=Object(ao["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(t){this.minDate=t.minDate,this.maxDate=t.maxDate,this.rangeState=t.rangeState},handleRangePick:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(ao["modifyWithTimeString"])(t.minDate,r[0]),o=Object(ao["modifyWithTimeString"])(t.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(t),this.maxDate=o,this.minDate=i,setTimeout((function(){e.maxDate=o,e.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(t){t.onClick&&t.onClick(this)},leftPrevYear:function(){this.leftDate=Object(ao["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(ao["nextYear"])(this.leftDate)),this.rightDate=Object(ao["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(ao["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ao["prevYear"])(this.rightDate)},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],t)},isValidValue:function(t){return Array.isArray(t)&&t&&t[0]&&t[1]&&Object(ao["isDate"])(t[0])&&Object(ao["isDate"])(t[1])&&t[0].getTime()<=t[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(t[0])&&!this.disabledDate(t[1]))},resetView:function(){this.minDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:ea,ElInput:m.a,ElButton:at.a}},Ma=ka,Ea=s(Ma,xa,Ca,!1,null,null,null);Ea.options.__file="packages/date-picker/src/panel/month-range.vue";var Oa=Ea.exports,Ta=function(t){return"daterange"===t||"datetimerange"===t?_a:"monthrange"===t?Oa:pa},Aa={mixins:[ko],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(t){this.picker?(this.unmountPicker(),this.panel=Ta(t),this.mountPicker()):this.panel=Ta(t)}},created:function(){this.panel=Ta(this.type)},install:function(t){t.component(Aa.name,Aa)}},Da=Aa,Na=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:t.popperClass,style:{width:t.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},t._l(t.items,(function(e){return n("div",{key:e.value,staticClass:"time-select-item",class:{selected:t.value===e.value,disabled:e.disabled,default:e.value===t.defaultValue},attrs:{disabled:e.disabled},on:{click:function(n){t.handleClick(e)}}},[t._v(t._s(e.value))])})),0)],1)])},Ra=[];Na._withStripped=!0;var Pa=function(t){var e=(t||"").split(":");if(e.length>=2){var n=parseInt(e[0],10),r=parseInt(e[1],10);return{hours:n,minutes:r}}return null},Ia=function(t,e){var n=Pa(t),r=Pa(e),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},Ba=function(t){return(t.hours<10?"0"+t.hours:t.hours)+":"+(t.minutes<10?"0"+t.minutes:t.minutes)},La=function(t,e){var n=Pa(t),r=Pa(e),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,Ba(i)},za={components:{ElScrollbar:q.a},watch:{value:function(t){var e=this;t&&this.$nextTick((function(){return e.scrollToOption()}))}},methods:{handleClick:function(t){t.disabled||this.$emit("pick",t.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",e=this.$refs.popper.querySelector(".el-picker-panel__content");ir()(e,e.querySelector(t))},handleMenuEnter:function(){var t=this,e=-1!==this.items.map((function(t){return t.value})).indexOf(this.value),n=-1!==this.items.map((function(t){return t.value})).indexOf(this.defaultValue),r=(e?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return t.scrollToOption(r)}))},scrollDown:function(t){var e=this.items,n=e.length,r=e.length,i=e.map((function(t){return t.value})).indexOf(this.value);while(r--)if(i=(i+t+n)%n,!e[i].disabled)return void this.$emit("pick",e[i].value,!0)},isValidValue:function(t){return-1!==this.items.filter((function(t){return!t.disabled})).map((function(t){return t.value})).indexOf(t)},handleKeydown:function(t){var e=t.keyCode;if(38===e||40===e){var n={40:1,38:-1},r=n[e.toString()];return this.scrollDown(r),void t.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var t=this.start,e=this.end,n=this.step,r=[];if(t&&e&&n){var i=t;while(Ia(i,e)<=0)r.push({value:i,disabled:Ia(i,this.minTime||"-1:-1")<=0||Ia(i,this.maxTime||"100:100")>=0}),i=La(i,n)}return r}}},ja=za,Fa=s(ja,Na,Ra,!1,null,null,null);Fa.options.__file="packages/date-picker/src/panel/time-select.vue";var $a=Fa.exports,Ha={mixins:[ko],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=$a},install:function(t){t.component(Ha.name,Ha)}},Va=Ha,Ua=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(e){t.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:t.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.minDate},on:{change:t.handleMinChange,"select-range":t.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[t._v(t._s(t.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":t.showSeconds,"is-arrow":t.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":t.showSeconds,"am-pm-mode":t.amPmMode,"arrow-control":t.arrowControl,date:t.maxDate},on:{change:t.handleMaxChange,"select-range":t.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(e){t.handleCancel()}}},[t._v(t._s(t.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:t.btnDisabled},on:{click:function(e){t.handleConfirm()}}},[t._v(t._s(t.t("el.datepicker.confirm")))])])])])},qa=[];Ua._withStripped=!0;var Wa=Object(ao["parseDate"])("00:00:00","HH:mm:ss"),Ka=Object(ao["parseDate"])("23:59:59","HH:mm:ss"),Ga=function(t){return Object(ao["modifyDate"])(Wa,t.getFullYear(),t.getMonth(),t.getDate())},Ya=function(t){return Object(ao["modifyDate"])(Ka,t.getFullYear(),t.getMonth(),t.getDate())},Xa=function(t,e){return new Date(Math.min(t.getTime()+e,Ya(t).getTime()))},Za={mixins:[v.a],components:{TimeSpinner:Io},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(t){Array.isArray(t)?(this.minDate=new Date(t[0]),this.maxDate=new Date(t[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Xa(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Xa(new Date,36e5))},visible:function(t){var e=this;t&&(this.oldValue=this.value,this.$nextTick((function(){return e.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(t){this.minDate=Object(ao["clearMilliseconds"])(t),this.handleChange()},handleMaxChange:function(t){this.maxDate=Object(ao["clearMilliseconds"])(t),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Ga(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ya(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(t,e){this.$emit("select-range",t,e,"min"),this.selectionRange=[t,e]},setMaxSelectionRange:function(t,e){this.$emit("select-range",t,e,"max"),this.selectionRange=[t+this.offset,e+this.offset]},handleConfirm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(ao["limitTimeRange"])(this.minDate,e,this.format),this.maxDate=Object(ao["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],t)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(t){var e=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=e.indexOf(this.selectionRange[0]),i=(r+t+e.length)%e.length,o=e.length/2;i<o?this.$refs.minSpinner.emitSelectRange(n[i]):this.$refs.maxSpinner.emitSelectRange(n[i-o])},isValidValue:function(t){return Array.isArray(t)&&Object(ao["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(ao["timeWithinRange"])(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(t){var e=t.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===e||39===e){var r=n[e];return this.changeSelectionRange(r),void t.preventDefault()}if(38===e||40===e){var i=n[e];return this.spinner.scrollDown(i),void t.preventDefault()}}}},Ja=Za,Qa=s(Ja,Ua,qa,!1,null,null,null);Qa.options.__file="packages/date-picker/src/panel/time-range.vue";var ts=Qa.exports,es={mixins:[ko],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(t){this.picker?(this.unmountPicker(),this.type=t?"timerange":"time",this.panel=t?ts:jo,this.mountPicker()):(this.type=t?"timerange":"time",this.panel=t?ts:jo)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?ts:jo},install:function(t){t.component(es.name,es)}},ns=es,rs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)},is=[];rs._withStripped=!0;var os={name:"ElPopover",mixins:[V.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(b["generateId"])()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(zt["addClass"])(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(zt["on"])(e,"focusin",(function(){t.handleFocus();var n=e.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(zt["on"])(n,"focusin",this.handleFocus),Object(zt["on"])(e,"focusout",this.handleBlur),Object(zt["on"])(n,"focusout",this.handleBlur)),Object(zt["on"])(e,"keydown",this.handleKeydown),Object(zt["on"])(e,"click",this.handleClick)),"click"===this.trigger?(Object(zt["on"])(e,"click",this.doToggle),Object(zt["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(zt["on"])(e,"mouseenter",this.handleMouseEnter),Object(zt["on"])(n,"mouseenter",this.handleMouseEnter),Object(zt["on"])(e,"mouseleave",this.handleMouseLeave),Object(zt["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(zt["on"])(e,"focusin",this.doShow),Object(zt["on"])(e,"focusout",this.doClose)):(Object(zt["on"])(e,"mousedown",this.doShow),Object(zt["on"])(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(zt["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(zt["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(zt["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(zt["off"])(t,"click",this.doToggle),Object(zt["off"])(t,"mouseup",this.doClose),Object(zt["off"])(t,"mousedown",this.doShow),Object(zt["off"])(t,"focusin",this.doShow),Object(zt["off"])(t,"focusout",this.doClose),Object(zt["off"])(t,"mousedown",this.doShow),Object(zt["off"])(t,"mouseup",this.doClose),Object(zt["off"])(t,"mouseleave",this.handleMouseLeave),Object(zt["off"])(t,"mouseenter",this.handleMouseEnter),Object(zt["off"])(document,"click",this.handleDocumentClick)}},as=os,ss=s(as,rs,is,!1,null,null,null);ss.options.__file="packages/popover/src/main.vue";var us=ss.exports,cs=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},ls={bind:function(t,e,n){cs(t,e,n)},inserted:function(t,e,n){cs(t,e,n)}};Ur.a.directive("popover",ls),us.install=function(t){t.directive("popover",ls),t.component(us.name,us)},us.directive=ls;var fs=us,ds={name:"ElTooltip",mixins:[V.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(b["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var t=this;this.$isServer||(this.popperVM=new Ur.a({data:{node:""},render:function(t){return this.node}}).$mount(),this.debounceClose=L()(200,(function(){return t.handleClosePopper()})))},render:function(t){var e=this;this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:function(){e.setExpectedState(!1),e.debounceClose()},mouseenter:function(){e.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var t=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(zt["on"])(this.referenceElm,"mouseenter",this.show),Object(zt["on"])(this.referenceElm,"mouseleave",this.hide),Object(zt["on"])(this.referenceElm,"focus",(function(){if(t.$slots.default&&t.$slots.default.length){var e=t.$slots.default[0].componentInstance;e&&e.focus?e.focus():t.handleFocus()}else t.handleFocus()})),Object(zt["on"])(this.referenceElm,"blur",this.handleBlur),Object(zt["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){t.value&&t.updatePopper()}))},watch:{focusing:function(t){t?Object(zt["addClass"])(this.referenceElm,"focusing"):Object(zt["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(t){return t?"el-tooltip "+t.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var t=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){t.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(t){!1===t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement:function(){var t=this.$slots.default;if(!Array.isArray(t))return null;for(var e=null,n=0;n<t.length;n++)t[n]&&t[n].tag&&(e=t[n]);return e}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var t=this.referenceElm;1===t.nodeType&&(Object(zt["off"])(t,"mouseenter",this.show),Object(zt["off"])(t,"mouseleave",this.hide),Object(zt["off"])(t,"focus",this.handleFocus),Object(zt["off"])(t,"blur",this.handleBlur),Object(zt["off"])(t,"click",this.removeFocusing))},install:function(t){t.component(ds.name,ds)}},hs=ds,ps=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{staticClass:"el-message-box",class:[t.customClass,t.center&&"el-message-box--center"]},[null!==t.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[t.icon&&t.center?n("div",{class:["el-message-box__status",t.icon]}):t._e(),n("span",[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.handleAction(t.distinguishCancelAndClose?"close":"cancel")},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction(t.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):t._e()]):t._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[t.icon&&!t.center&&""!==t.message?n("div",{class:["el-message-box__status",t.icon]}):t._e(),""!==t.message?n("div",{staticClass:"el-message-box__message"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2):t._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:t.inputType,placeholder:t.inputPlaceholder},nativeOn:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputEnter(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:t.editorErrorMessage?"visible":"hidden"}},[t._v(t._s(t.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[t.showCancelButton?n("el-button",{class:[t.cancelButtonClasses],attrs:{loading:t.cancelButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("cancel")}},nativeOn:{click:function(e){t.handleAction("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.t("el.messagebox.cancel"))+"\n ")]):t._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[t.confirmButtonClasses],attrs:{loading:t.confirmButtonLoading,round:t.roundButton,size:"small"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.handleAction("confirm")}},nativeOn:{click:function(e){t.handleAction("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.t("el.messagebox.confirm"))+"\n ")])],1)])])])},ms=[];ps._withStripped=!0;var gs=n(39),vs=n.n(gs),bs=void 0,ys={success:"success",info:"info",warning:"warning",error:"error"},ws={mixins:[S.a,v.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:m.a,ElButton:at.a},computed:{icon:function(){var t=this.type,e=this.iconClass;return e||(t&&ys[t]?"el-icon-"+ys[t]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var t=this,e=this.uid;return function(){t.$nextTick((function(){e===t.uid&&t.doClose()}))}},doClose:function(){var t=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),bs.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){t.action&&t.callback(t.action,t)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(t){("prompt"!==this.$type||"confirm"!==t||this.validate())&&(this.action=t,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(t,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(er["t"])("el.messagebox.error"),Object(zt["addClass"])(this.getInputElement(),"invalid"),!1;var e=this.inputValidator;if("function"===typeof e){var n=e(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(er["t"])("el.messagebox.error"),Object(zt["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(zt["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(zt["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var t=this.$el.querySelector(".el-message-box__btns .el-button"),e=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return t||e},getInputElement:function(){var t=this.$refs.input.$refs;return t.input||t.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(t){var e=this;this.$nextTick((function(n){"prompt"===e.$type&&null!==t&&e.validate()}))}},visible:function(t){var e=this;t&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){e.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,bs=new vs.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(t?setTimeout((function(){e.$refs.input&&e.$refs.input.$el&&e.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(zt["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var t=this;this.$nextTick((function(){t.closeOnHashChange&&window.addEventListener("hashchange",t.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){bs.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},_s=ws,xs=s(_s,ps,ms,!1,null,null,null);xs.options.__file="packages/message-box/src/main.vue";var Cs=xs.exports,Ss=n(23),ks="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},Ms={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},Es=Ur.a.extend(Cs),Os=void 0,Ts=void 0,As=[],Ds=function(t){if(Os){var e=Os.callback;"function"===typeof e&&(Ts.showInput?e(Ts.inputValue,t):e(t)),Os.resolve&&("confirm"===t?Ts.showInput?Os.resolve({value:Ts.inputValue,action:t}):Os.resolve(t):!Os.reject||"cancel"!==t&&"close"!==t||Os.reject(t))}},Ns=function(){Ts=new Es({el:document.createElement("div")}),Ts.callback=Ds},Rs=function t(){if(Ts||Ns(),Ts.action="",(!Ts.visible||Ts.closeTimer)&&As.length>0){Os=As.shift();var e=Os.options;for(var n in e)e.hasOwnProperty(n)&&(Ts[n]=e[n]);void 0===e.callback&&(Ts.callback=Ds);var r=Ts.callback;Ts.callback=function(e,n){r(e,n),t()},Object(Ss["isVNode"])(Ts.message)?(Ts.$slots.default=[Ts.message],Ts.message=null):delete Ts.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(t){void 0===Ts[t]&&(Ts[t]=!0)})),document.body.appendChild(Ts.$el),Ur.a.nextTick((function(){Ts.visible=!0}))}},Ps=function t(e,n){if(!Ur.a.prototype.$isServer){if("string"===typeof e||Object(Ss["isVNode"])(e)?(e={message:e},"string"===typeof arguments[1]&&(e.title=arguments[1])):e.callback&&!n&&(n=e.callback),"undefined"!==typeof Promise)return new Promise((function(r,i){As.push({options:ke()({},Ms,t.defaults,e),callback:n,resolve:r,reject:i}),Rs()}));As.push({options:ke()({},Ms,t.defaults,e),callback:n}),Rs()}};Ps.setDefaults=function(t){Ps.defaults=t},Ps.alert=function(t,e,n){return"object"===("undefined"===typeof e?"undefined":ks(e))?(n=e,e=""):void 0===e&&(e=""),Ps(ke()({title:e,message:t,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Ps.confirm=function(t,e,n){return"object"===("undefined"===typeof e?"undefined":ks(e))?(n=e,e=""):void 0===e&&(e=""),Ps(ke()({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},Ps.prompt=function(t,e,n){return"object"===("undefined"===typeof e?"undefined":ks(e))?(n=e,e=""):void 0===e&&(e=""),Ps(ke()({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Ps.close=function(){Ts.doClose(),Ts.visible=!1,As=[],Os=null};var Is=Ps,Bs=Is,Ls=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[t._t("default")],2)},zs=[];Ls._withStripped=!0;var js={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var t=this.$el.querySelectorAll(".el-breadcrumb__item");t.length&&t[t.length-1].setAttribute("aria-current","page")}},Fs=js,$s=s(Fs,Ls,zs,!1,null,null,null);$s.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Hs=$s.exports;Hs.install=function(t){t.component(Hs.name,Hs)};var Vs=Hs,Us=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",t.to?"is-link":""],attrs:{role:"link"}},[t._t("default")],2),t.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:t.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[t._v(t._s(t.separator))])])},qs=[];Us._withStripped=!0;var Ws={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var t=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var e=this.$refs.link;e.setAttribute("role","link"),e.addEventListener("click",(function(e){var n=t.to,r=t.$router;n&&r&&(t.replace?r.replace(n):r.push(n))}))}},Ks=Ws,Gs=s(Ks,Us,qs,!1,null,null,null);Gs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Ys=Gs.exports;Ys.install=function(t){t.component(Ys.name,Ys)};var Xs=Ys,Zs=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"el-form",class:[t.labelPosition?"el-form--label-"+t.labelPosition:"",{"el-form--inline":t.inline}]},[t._t("default")],2)},Js=[];Zs._withStripped=!0;var Qs={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(t){t.removeValidateEvents(),t.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var t=Math.max.apply(Math,this.potentialLabelWidthArr);return t?t+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var t=this;this.$on("el.form.addField",(function(e){e&&t.fields.push(e)})),this.$on("el.form.removeField",(function(e){e.prop&&t.fields.splice(t.fields.indexOf(e),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(t){t.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.length?"string"===typeof t?this.fields.filter((function(e){return t===e.prop})):this.fields.filter((function(e){return t.indexOf(e.prop)>-1})):this.fields;e.forEach((function(t){t.clearValidate()}))},validate:function(t){var e=this;if(this.model){var n=void 0;"function"!==typeof t&&window.Promise&&(n=new window.Promise((function(e,n){t=function(t){t?e(t):n(t)}})));var r=!0,i=0;0===this.fields.length&&t&&t(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(r=!1),o=ke()({},o,a),"function"===typeof t&&++i===e.fields.length&&t(r,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(t,e){t=[].concat(t);var n=this.fields.filter((function(e){return-1!==t.indexOf(e.prop)}));n.length?n.forEach((function(t){t.validate("",e)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(t){var e=this.potentialLabelWidthArr.indexOf(t);if(-1===e)throw new Error("[ElementForm]unpected width ",t);return e},registerLabelWidth:function(t,e){if(t&&e){var n=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(n,1,t)}else t&&this.potentialLabelWidthArr.push(t)},deregisterLabelWidth:function(t){var e=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(e,1)}}},tu=Qs,eu=s(tu,Zs,Js,!1,null,null,null);eu.options.__file="packages/form/src/form.vue";var nu=eu.exports;nu.install=function(t){t.component(nu.name,nu)};var ru=nu,iu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":t.elForm&&t.elForm.statusIcon,"is-error":"error"===t.validateState,"is-validating":"validating"===t.validateState,"is-success":"success"===t.validateState,"is-required":t.isRequired||t.required,"is-no-asterisk":t.elForm&&t.elForm.hideRequiredAsterisk},t.sizeClass?"el-form-item--"+t.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":t.labelStyle&&"auto"===t.labelStyle.width,"update-all":"auto"===t.form.labelWidth}},[t.label||t.$slots.label?n("label",{staticClass:"el-form-item__label",style:t.labelStyle,attrs:{for:t.labelFor}},[t._t("label",[t._v(t._s(t.label+t.form.labelSuffix))])],2):t._e()]),n("div",{staticClass:"el-form-item__content",style:t.contentStyle},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===t.validateState&&t.showMessage&&t.form.showMessage?t._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof t.inlineMessage?t.inlineMessage:t.elForm&&t.elForm.inlineMessage||!1}},[t._v("\n "+t._s(t.validateMessage)+"\n ")])],{error:t.validateMessage}):t._e()],2)],2)],1)},ou=[];iu._withStripped=!0;var au,su,uu=n(40),cu=n.n(uu),lu={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var t=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return t("div",{class:"el-form-item__label-wrap",style:r},[e])}return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var t=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(t))}return 0},updateLabelWidth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===t?this.computedWidth=this.getLabelWidth():"remove"===t&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(t,e){this.updateAll&&(this.elForm.registerLabelWidth(t,e),this.elFormItem.updateComputedLabelWidth(t))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},fu=lu,du=s(fu,au,su,!1,null,null,null);du.options.__file="packages/form/src/label-wrap.vue";var hu=du.exports,pu={name:"ElFormItem",componentName:"ElFormItem",mixins:[O.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:hu},watch:{error:{immediate:!0,handler:function(t){this.validateMessage=t,this.validateState=t?"error":""}},validateStatus:function(t){this.validateState=t}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var t={};if("top"===this.form.labelPosition)return t;var e=this.labelWidth||this.form.labelWidth;return e&&(t.width=e),t},contentStyle:function(){var t={},e=this.label;if("top"===this.form.labelPosition||this.form.inline)return t;if(!e&&!this.labelWidth&&this.isNested)return t;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?t.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(t.marginLeft=this.elForm.autoLabelWidth):t.marginLeft=n,t},form:function(){var t=this.$parent,e=t.$options.componentName;while("ElForm"!==e)"ElFormItem"===e&&(this.isNested=!0),t=t.$parent,e=t.$options.componentName;return t},fieldValue:function(){var t=this.form.model;if(t&&this.prop){var e=this.prop;return-1!==e.indexOf(":")&&(e=e.replace(/:/,".")),Object(b["getPropByPath"])(t,e,!0).v}},isRequired:function(){var t=this.getRules(),e=!1;return t&&t.length&&t.every((function(t){return!t.required||(e=!0,!1)})),e},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b["noop"];this.validateDisabled=!1;var r=this.getFilteredRule(t);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach((function(t){delete t.trigger})),i[this.prop]=r;var o=new cu.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(t,r){e.validateState=t?"error":"success",e.validateMessage=t?t[0].message:"",n(e.validateMessage,r),e.elForm&&e.elForm.$emit("validate",e.prop,!t,e.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var t=this;this.validateState="",this.validateMessage="";var e=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(b["getPropByPath"])(e,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick((function(){t.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var t=this.form.rules,e=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(b["getPropByPath"])(t,this.prop||"");return t=t?r.o[this.prop||""]||r.v:[],[].concat(e||t||[]).concat(n)},getFilteredRule:function(t){var e=this.getRules();return e.filter((function(e){return!e.trigger||""===t||(Array.isArray(e.trigger)?e.trigger.indexOf(t)>-1:e.trigger===t)})).map((function(t){return ke()({},t)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(t){this.computedLabelWidth=t?t+"px":""},addValidateEvents:function(){var t=this.getRules();(t.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var t=this.fieldValue;Array.isArray(t)&&(t=[].concat(t)),Object.defineProperty(this,"initialValue",{value:t}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},mu=pu,gu=s(mu,iu,ou,!1,null,null,null);gu.options.__file="packages/form/src/form-item.vue";var vu=gu.exports;vu.install=function(t){t.component(vu.name,vu)};var bu=vu,yu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+t.rootTabs.tabPosition,style:t.barStyle})},wu=[];yu._withStripped=!0;var _u={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var t=this,e={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===i?"x":"y",a=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))};this.tabs.every((function(e,o){var s=Object(b["arrayFind"])(t.$parent.$refs.tabs||[],(function(t){return t.id.replace("tab-","")===e.paneName}));if(!s)return!1;if(e.active){r=s["client"+a(i)];var u=window.getComputedStyle(s);return"width"===i&&t.tabs.length>1&&(r-=parseFloat(u.paddingLeft)+parseFloat(u.paddingRight)),"width"===i&&(n+=parseFloat(u.paddingLeft)),!1}return n+=s["client"+a(i)],!0}));var s="translate"+a(o)+"("+n+"px)";return e[i]=r+"px",e.transform=s,e.msTransform=s,e.webkitTransform=s,e}}}},xu=_u,Cu=s(xu,yu,wu,!1,null,null,null);Cu.options.__file="packages/tabs/src/tab-bar.vue";var Su=Cu.exports;function ku(){}var Mu,Eu,Ou=function(t){return t.toLowerCase().replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))},Tu={name:"TabNav",components:{TabBar:Su},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:ku},onTabRemove:{type:Function,default:ku},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var t=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+t+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var t=this.$refs.navScroll["offset"+Ou(this.sizeName)],e=this.navOffset;if(e){var n=e>t?e-t:0;this.navOffset=n}},scrollNext:function(){var t=this.$refs.nav["offset"+Ou(this.sizeName)],e=this.$refs.navScroll["offset"+Ou(this.sizeName)],n=this.navOffset;if(!(t-n<=e)){var r=t-n>2*e?n+e:t-e;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var t=this.$refs.nav,e=this.$el.querySelector(".is-active");if(e){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?t.offsetWidth-o.width:t.offsetHeight-o.height,s=this.navOffset,u=s;r?(i.left<o.left&&(u=s-(o.left-i.left)),i.right>o.right&&(u=s+i.right-o.right)):(i.top<o.top&&(u=s-(o.top-i.top)),i.bottom>o.bottom&&(u=s+(i.bottom-o.bottom))),u=Math.max(u,0),this.navOffset=Math.min(u,a)}}},update:function(){if(this.$refs.nav){var t=this.sizeName,e=this.$refs.nav["offset"+Ou(t)],n=this.$refs.navScroll["offset"+Ou(t)],r=this.navOffset;if(n<e){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<e,e-i<n&&(this.navOffset=e-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(t){var e=t.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(e)&&(i=t.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,t.target),n=37===e||38===e?0===r?i.length-1:r-1:r<i.length-1?r+1:0,i[n].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var t=this,e=document.visibilityState;"hidden"===e?this.focusable=!1:"visible"===e&&setTimeout((function(){t.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var t=this;setTimeout((function(){t.focusable=!0}),50)}},updated:function(){this.update()},render:function(t){var e=this,n=this.type,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,u=this.navStyle,c=this.scrollable,l=this.scrollNext,f=this.scrollPrev,d=this.changeTab,h=this.setFocus,p=this.removeFocus,m=c?[t("span",{class:["el-tabs__nav-prev",c.prev?"":"is-disabled"],on:{click:f}},[t("i",{class:"el-icon-arrow-left"})]),t("span",{class:["el-tabs__nav-next",c.next?"":"is-disabled"],on:{click:l}},[t("i",{class:"el-icon-arrow-right"})])]:null,g=this._l(r,(function(n,r){var o,u=n.name||n.index||r,c=n.isClosable||i;n.index=""+r;var l=c?t("span",{class:"el-icon-close",on:{click:function(t){s(n,t)}}}):null,f=n.$slots.label||n.label,d=n.active?0:-1;return t("div",{class:(o={"el-tabs__item":!0},o["is-"+e.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=c,o["is-focus"]=e.isFocus,o),attrs:{id:"tab-"+u,"aria-controls":"pane-"+u,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+u,ref:"tabs",refInFor:!0,on:{focus:function(){h()},blur:function(){p()},click:function(t){p(),a(n,u,t)},keydown:function(t){!c||46!==t.keyCode&&8!==t.keyCode||s(n,t)}}},[f,l])}));return t("div",{class:["el-tabs__nav-wrap",c?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[m,t("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[t("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:u,attrs:{role:"tablist"},on:{keydown:d}},[n?null:t("tab-bar",{attrs:{tabs:r}}),g])])])},mounted:function(){var t=this;Object(tr["addResizeListener"])(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){t.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(tr["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},Au=Tu,Du=s(Au,Mu,Eu,!1,null,null,null);Du.options.__file="packages/tabs/src/tab-nav.vue";var Nu,Ru,Pu=Du.exports,Iu={name:"ElTabs",components:{TabNav:Pu},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(t){this.setCurrentName(t)},value:function(t){this.setCurrentName(t)},currentName:function(t){var e=this;this.$refs.nav&&this.$nextTick((function(){e.$refs.nav.$nextTick((function(t){e.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(t){return t.tag&&t.componentOptions&&"ElTabPane"===t.componentOptions.Ctor.options.name})),r=n.map((function(t){var e=t.componentInstance;return e})),i=!(r.length===this.panes.length&&r.every((function(e,n){return e===t.panes[n]})));(e||i)&&(this.panes=r)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(t,e,n){t.disabled||(this.setCurrentName(e),this.$emit("tab-click",t,n))},handleTabRemove:function(t,e){t.disabled||(e.stopPropagation(),this.$emit("edit",t.name,"remove"),this.$emit("tab-remove",t.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(t){var e=this,n=function(){e.currentName=t,e.$emit("input",t)};if(this.currentName!==t&&this.beforeLeave){var r=this.beforeLeave(t,this.currentName);r&&r.then?r.then((function(){n(),e.$refs.nav&&e.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(t){var e,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,u=this.editable,c=this.addable,l=this.tabPosition,f=this.stretch,d=u||c?t("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(t){13===t.keyCode&&o()}},attrs:{tabindex:"0"}},[t("i",{class:"el-icon-plus"})]):null,h={props:{currentName:a,onTabClick:r,onTabRemove:i,editable:u,type:n,panes:s,stretch:f},ref:"nav"},p=t("div",{class:["el-tabs__header","is-"+l]},[d,t("tab-nav",h)]),m=t("div",{class:"el-tabs__content"},[this.$slots.default]);return t("div",{class:(e={"el-tabs":!0,"el-tabs--card":"card"===n},e["el-tabs--"+l]=!0,e["el-tabs--border-card"]="border-card"===n,e)},["bottom"!==l?[p,m]:[m,p]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Bu=Iu,Lu=s(Bu,Nu,Ru,!1,null,null,null);Lu.options.__file="packages/tabs/src/tabs.vue";var zu=Lu.exports;zu.install=function(t){t.component(zu.name,zu)};var ju=zu,Fu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.lazy||t.loaded||t.active?n("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!t.active,id:"pane-"+t.paneName,"aria-labelledby":"tab-"+t.paneName}},[t._t("default")],2):t._e()},$u=[];Fu._withStripped=!0;var Hu={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var t=this.$parent.currentName===(this.name||this.index);return t&&(this.loaded=!0),t},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Vu=Hu,Uu=s(Vu,Fu,$u,!1,null,null,null);Uu.options.__file="packages/tabs/src/tab-pane.vue";var qu=Uu.exports;qu.install=function(t){t.component(qu.name,qu)};var Wu,Ku,Gu=qu,Yu={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=t("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:t("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},Xu=Yu,Zu=s(Xu,Wu,Ku,!1,null,null,null);Zu.options.__file="packages/tag/src/tag.vue";var Ju=Zu.exports;Ju.install=function(t){t.component(Ju.name,Ju)};var Qu=Ju,tc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":t.highlightCurrent,"is-dragging":!!t.dragState.draggingNode,"is-drop-not-allow":!t.dragState.allowDrop,"is-drop-inner":"inner"===t.dragState.dropType},attrs:{role:"tree"}},[t._l(t.root.childNodes,(function(e){return n("el-tree-node",{key:t.getNodeKey(e),attrs:{node:e,props:t.props,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent},on:{"node-expand":t.handleNodeExpand}})})),t.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[t._v(t._s(t.emptyText))])]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},ec=[];tc._withStripped=!0;var nc="$treeNodeId",rc=function(t,e){e&&!e[nc]&&Object.defineProperty(e,nc,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},ic=function(t,e){return t?e[t]:e[nc]},oc=function(t,e){var n=t;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===e)return n.__vue__;n=n.parentNode}return null},ac=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function sc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var uc=function(t){for(var e=!0,n=!0,r=!0,i=0,o=t.length;i<o;i++){var a=t[i];(!0!==a.checked||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},cc=function t(e){if(0!==e.childNodes.length){var n=uc(e.childNodes),r=n.all,i=n.none,o=n.half;r?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);var a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||t(a))}},lc=function(t,e){var n=t.store.props,r=t.data||{},i=n[e];if("function"===typeof i)return i(r,t);if("string"===typeof i)return r[i];if("undefined"===typeof i){var o=r[e];return void 0===o?"":o}},fc=0,dc=function(){function t(e){for(var n in sc(this,t),this.id=fc++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&"undefined"!==typeof i.isLeaf){var o=lc(this,"isLeaf");"boolean"===typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||rc(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return t.prototype.setData=function(t){Array.isArray(t)||rc(this,t),this.data=t,this.childNodes=[];var e=void 0;e=0===this.level&&this.data instanceof Array?this.data:lc(this,"children")||[];for(var n=0,r=e.length;n<r;n++)this.insertChild({data:e[n]})},t.prototype.contains=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var u=i[a];if(u===t||e&&n(u)){o=!0;break}}return o};return n(this)},t.prototype.remove=function(){var t=this.parent;t&&t.removeChild(this)},t.prototype.insertChild=function(e,n,r){if(!e)throw new Error("insertChild error: child is required.");if(!(e instanceof t)){if(!r){var i=this.getChildren(!0);-1===i.indexOf(e.data)&&("undefined"===typeof n||n<0?i.push(e.data):i.splice(n,0,e.data))}ke()(e,{parent:this,store:this.store}),e=new t(e)}e.level=this.level+1,"undefined"===typeof n||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()},t.prototype.insertBefore=function(t,e){var n=void 0;e&&(n=this.childNodes.indexOf(e)),this.insertChild(t,n)},t.prototype.insertAfter=function(t,e){var n=void 0;e&&(n=this.childNodes.indexOf(e),-1!==n&&(n+=1)),this.insertChild(t,n)},t.prototype.removeChild=function(t){var e=this.getChildren()||[],n=e.indexOf(t.data);n>-1&&e.splice(n,1);var r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},t.prototype.removeChildByData=function(t){for(var e=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){e=this.childNodes[n];break}e&&this.removeChild(e)},t.prototype.expand=function(t,e){var n=this,r=function(){if(e){var r=n.parent;while(r.level>0)r.expanded=!0,r=r.parent}n.expanded=!0,t&&t()};this.shouldLoadData()?this.loadData((function(t){t instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||cc(n),r())})):r()},t.prototype.doCreateChildren=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t){e.insertChild(ke()({data:t},n),void 0,!0)}))},t.prototype.collapse=function(){this.expanded=!1},t.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},t.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var t=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!t||0===t.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},t.prototype.setChecked=function(t,e,n,r){var i=this;if(this.indeterminate="half"===t,this.checked=!0===t,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=uc(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,t=!1);var u=function(){if(e){for(var n=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==t;var u=s.disabled?s.checked:r;s.setChecked(u,e,!0,r)}var c=uc(n),l=c.half,f=c.all;f||(i.checked=f,i.indeterminate=l)}};if(this.shouldLoadData())return void this.loadData((function(){u(),cc(i)}),{checked:!1!==t});u()}var c=this.parent;c&&0!==c.level&&(n||cc(c))}},t.prototype.getChildren=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var e=this.data;if(!e)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===e[r]&&(e[r]=null),t&&!e[r]&&(e[r]=[]),e[r]},t.prototype.updateChildren=function(){var t=this,e=this.getChildren()||[],n=this.childNodes.map((function(t){return t.data})),r={},i=[];e.forEach((function(t,e){var o=t[nc],a=!!o&&Object(b["arrayFindIndex"])(n,(function(t){return t[nc]===o}))>=0;a?r[o]={index:e,data:t}:i.push({index:e,data:t})})),this.store.lazy||n.forEach((function(e){r[e[nc]]||t.removeChildByData(e)})),i.forEach((function(e){var n=e.index,r=e.data;t.insertChild({data:r},n)})),this.updateLeafState()},t.prototype.loadData=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)t&&t.call(this);else{this.loading=!0;var r=function(r){e.loaded=!0,e.loading=!1,e.childNodes=[],e.doCreateChildren(r,n),e.updateLeafState(),t&&t.call(e,r)};this.store.load(this,r)}},ac(t,[{key:"label",get:function(){return lc(this,"label")}},{key:"key",get:function(){var t=this.store.key;return this.data?this.data[t]:null}},{key:"disabled",get:function(){return lc(this,"disabled")}},{key:"nextSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return t.childNodes[e+1]}return null}},{key:"previousSibling",get:function(){var t=this.parent;if(t){var e=t.childNodes.indexOf(this);if(e>-1)return e>0?t.childNodes[e-1]:null}return null}}]),t}(),hc=dc,pc="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};function mc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gc=function(){function t(e){var n=this;for(var r in mc(this,t),this.currentNode=null,this.currentNodeKey=null,e)e.hasOwnProperty(r)&&(this[r]=e[r]);if(this.nodesMap={},this.root=new hc({data:this.data,store:this}),this.lazy&&this.load){var i=this.load;i(this.root,(function(t){n.root.doCreateChildren(t),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return t.prototype.filter=function(t){var e=this.filterNodeMethod,n=this.lazy,r=function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach((function(n){n.visible=e.call(n,t,n.data,n),r(n)})),!i.visible&&o.length){var a=!0;a=!o.some((function(t){return t.visible})),i.root?i.root.visible=!1===a:i.visible=!1===a}t&&(!i.visible||i.isLeaf||n||i.expand())};r(this)},t.prototype.setData=function(t){var e=t!==this.root.data;e?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()},t.prototype.getNode=function(t){if(t instanceof hc)return t;var e="object"!==("undefined"===typeof t?"undefined":pc(t))?t:ic(this.key,t);return this.nodesMap[e]||null},t.prototype.insertBefore=function(t,e){var n=this.getNode(e);n.parent.insertBefore({data:t},n)},t.prototype.insertAfter=function(t,e){var n=this.getNode(e);n.parent.insertAfter({data:t},n)},t.prototype.remove=function(t){var e=this.getNode(t);e&&e.parent&&(e===this.currentNode&&(this.currentNode=null),e.parent.removeChild(e))},t.prototype.append=function(t,e){var n=e?this.getNode(e):this.root;n&&n.insertChild({data:t})},t.prototype._initDefaultCheckedNodes=function(){var t=this,e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach((function(e){var r=n[e];r&&r.setChecked(!0,!t.checkStrictly)}))},t.prototype._initDefaultCheckedNode=function(t){var e=this.defaultCheckedKeys||[];-1!==e.indexOf(t.key)&&t.setChecked(!0,!this.checkStrictly)},t.prototype.setDefaultCheckedKey=function(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())},t.prototype.registerNode=function(t){var e=this.key;if(e&&t&&t.data){var n=t.key;void 0!==n&&(this.nodesMap[t.key]=t)}},t.prototype.deregisterNode=function(t){var e=this,n=this.key;n&&t&&t.data&&(t.childNodes.forEach((function(t){e.deregisterNode(t)})),delete this.nodesMap[t.key])},t.prototype.getCheckedNodes=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=function r(i){var o=i.root?i.root.childNodes:i.childNodes;o.forEach((function(i){(i.checked||e&&i.indeterminate)&&(!t||t&&i.isLeaf)&&n.push(i.data),r(i)}))};return r(this),n},t.prototype.getCheckedKeys=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(e).map((function(e){return(e||{})[t.key]}))},t.prototype.getHalfCheckedNodes=function(){var t=[],e=function e(n){var r=n.root?n.root.childNodes:n.childNodes;r.forEach((function(n){n.indeterminate&&t.push(n.data),e(n)}))};return e(this),t},t.prototype.getHalfCheckedKeys=function(){var t=this;return this.getHalfCheckedNodes().map((function(e){return(e||{})[t.key]}))},t.prototype._getAllNodes=function(){var t=[],e=this.nodesMap;for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},t.prototype.updateChildren=function(t,e){var n=this.nodesMap[t];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];this.remove(o.data)}for(var a=0,s=e.length;a<s;a++){var u=e[a];this.append(u,n.data)}}},t.prototype._setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort((function(t,e){return e.level-t.level})),i=Object.create(null),o=Object.keys(n);r.forEach((function(t){return t.setChecked(!1,!1)}));for(var a=0,s=r.length;a<s;a++){var u=r[a],c=u.data[t].toString(),l=o.indexOf(c)>-1;if(l){var f=u.parent;while(f&&f.level>0)i[f.data[t]]=!0,f=f.parent;u.isLeaf||this.checkStrictly?u.setChecked(!0,!1):(u.setChecked(!0,!0),e&&function(){u.setChecked(!1,!1);var t=function t(e){var n=e.childNodes;n.forEach((function(e){e.isLeaf||e.setChecked(!1,!1),t(e)}))};t(u)}())}else u.checked&&!i[c]&&u.setChecked(!1,!1)}},t.prototype.setCheckedNodes=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};t.forEach((function(t){r[(t||{})[n]]=!0})),this._setCheckedKeys(n,e,r)},t.prototype.setCheckedKeys=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=t;var n=this.key,r={};t.forEach((function(t){r[t]=!0})),this._setCheckedKeys(n,e,r)},t.prototype.setDefaultExpandedKeys=function(t){var e=this;t=t||[],this.defaultExpandedKeys=t,t.forEach((function(t){var n=e.getNode(t);n&&n.expand(null,e.autoExpandParent)}))},t.prototype.setChecked=function(t,e,n){var r=this.getNode(t);r&&r.setChecked(!!e,n)},t.prototype.getCurrentNode=function(){return this.currentNode},t.prototype.setCurrentNode=function(t){var e=this.currentNode;e&&(e.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0},t.prototype.setUserCurrentNode=function(t){var e=t[this.key],n=this.nodesMap[e];this.setCurrentNode(n)},t.prototype.setCurrentNodeKey=function(t){if(null===t||void 0===t)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var e=this.getNode(t);e&&this.setCurrentNode(e)},t}(),vc=gc,bc=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":e.expanded,"is-current":e.node.isCurrent,"is-hidden":!e.node.visible,"is-focusable":!e.node.disabled,"is-checked":!e.node.disabled&&e.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.draggable},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)},contextmenu:function(e){return t.handleContextMenu(e)},dragstart:function(t){return t.stopPropagation(),e.handleDragStart(t)},dragover:function(t){return t.stopPropagation(),e.handleDragOver(t)},dragend:function(t){return t.stopPropagation(),e.handleDragEnd(t)},drop:function(t){return t.stopPropagation(),e.handleDrop(t)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(e.node.level-1)*e.tree.indent+"px"}},[r("span",{class:[{"is-leaf":e.node.isLeaf,expanded:!e.node.isLeaf&&e.expanded},"el-tree-node__expand-icon",e.tree.iconClass?e.tree.iconClass:"el-icon-caret-right"],on:{click:function(t){return t.stopPropagation(),e.handleExpandIconClick(t)}}}),e.showCheckbox?r("el-checkbox",{attrs:{indeterminate:e.node.indeterminate,disabled:!!e.node.disabled},on:{change:e.handleCheckChange},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:e.node.checked,callback:function(t){e.$set(e.node,"checked",t)},expression:"node.checked"}}):e._e(),e.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),r("node-content",{attrs:{node:e.node}})],1),r("el-collapse-transition",[!e.renderAfterExpand||e.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:e.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":e.expanded}},e._l(e.node.childNodes,(function(t){return r("el-tree-node",{key:e.getNodeKey(t),attrs:{"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t},on:{"node-expand":e.handleChildNodeExpand}})})),1):e._e()])],1)},yc=[];bc._withStripped=!0;var wc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[O.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Kt.a,ElCheckbox:Br.a,NodeContent:{props:{node:{required:!0}},render:function(t){var e=this.$parent,n=e.tree,r=this.node,i=r.data,o=r.store;return e.renderContent?e.renderContent.call(e._renderProxy,t,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):t("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(t){this.handleSelectChange(this.node.checked,t)},"node.checked":function(t){this.handleSelectChange(t,this.node.indeterminate)},"node.expanded":function(t){var e=this;this.$nextTick((function(){return e.expanded=t})),t&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(t){return ic(this.tree.nodeKey,t.data)},handleSelectChange:function(t,e){this.oldChecked!==t&&this.oldIndeterminate!==e&&this.tree.$emit("check-change",this.node.data,t,e),this.oldChecked=t,this.indeterminate=e},handleClick:function(){var t=this.tree.store;t.setCurrentNode(this.node),this.tree.$emit("current-change",t.currentNode?t.currentNode.data:null,t.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(t){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(t.stopPropagation(),t.preventDefault()),this.tree.$emit("node-contextmenu",t,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(t,e){var n=this;this.node.setChecked(e.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var t=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.tree.$emit("node-expand",t,e,n)},handleDragStart:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",t,this)},handleDragOver:function(t){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",t,this),t.preventDefault())},handleDrop:function(t){t.preventDefault()},handleDragEnd:function(t){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",t,this)}},created:function(){var t=this,e=this.$parent;e.isTree?this.tree=e:this.tree=e.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=n.props||{},i=r["children"]||"children";this.$watch("node.data."+i,(function(){t.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(e){t.node!==e&&t.node.collapse()}))}},_c=wc,xc=s(_c,bc,yc,!1,null,null,null);xc.options.__file="packages/tree/src/tree-node.vue";var Cc=xc.exports,Sc={name:"ElTree",mixins:[O.a],components:{ElTreeNode:Cc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(er["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(t){this.data=t},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var t=this.root.childNodes;return!t||0===t.length||t.every((function(t){var e=t.visible;return!e}))}},watch:{defaultCheckedKeys:function(t){this.store.setDefaultCheckedKey(t)},defaultExpandedKeys:function(t){this.store.defaultExpandedKeys=t,this.store.setDefaultExpandedKeys(t)},data:function(t){this.store.setData(t)},checkboxItems:function(t){Array.prototype.forEach.call(t,(function(t){t.setAttribute("tabindex",-1)}))},checkStrictly:function(t){this.store.checkStrictly=t}},methods:{filter:function(t){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(t)},getNodeKey:function(t){return ic(this.nodeKey,t.data)},getNodePath:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var e=this.store.getNode(t);if(!e)return[];var n=[e.data],r=e.parent;while(r&&r!==this.root)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(t,e){return this.store.getCheckedNodes(t,e)},getCheckedKeys:function(t){return this.store.getCheckedKeys(t)},getCurrentNode:function(){var t=this.store.getCurrentNode();return t?t.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var t=this.getCurrentNode();return t?t[this.nodeKey]:null},setCheckedNodes:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(t,e)},setCheckedKeys:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(t,e)},setChecked:function(t,e,n){this.store.setChecked(t,e,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(t)},setCurrentKey:function(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(t)},getNode:function(t){return this.store.getNode(t)},remove:function(t){this.store.remove(t)},append:function(t,e){this.store.append(t,e)},insertBefore:function(t,e){this.store.insertBefore(t,e)},insertAfter:function(t,e){this.store.insertAfter(t,e)},handleNodeExpand:function(t,e,n){this.broadcast("ElTreeNode","tree-node-expand",e),this.$emit("node-expand",t,e,n)},updateKeyChildren:function(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(t,e)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var t=this.$el.querySelectorAll(".is-checked[role=treeitem]");t.length?t[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(t){var e=t.target;if(-1!==e.className.indexOf("el-tree-node")){var n=t.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(e),i=void 0;[38,40].indexOf(n)>-1&&(t.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(t.preventDefault(),e.click());var o=e.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(t.preventDefault(),o.click())}}},created:function(){var t=this;this.isTree=!0,this.store=new vc({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var e=this.dragState;this.$on("tree-node-drag-start",(function(n,r){if("function"===typeof t.allowDrag&&!t.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(i){}e.draggingNode=r,t.$emit("node-drag-start",r.node,n)})),this.$on("tree-node-drag-over",(function(n,r){var i=oc(n.target,"ElTreeNode"),o=e.dropNode;o&&o!==i&&Object(zt["removeClass"])(o.$el,"is-drop-inner");var a=e.draggingNode;if(a&&i){var s=!0,u=!0,c=!0,l=!0;"function"===typeof t.allowDrop&&(s=t.allowDrop(a.node,i.node,"prev"),l=u=t.allowDrop(a.node,i.node,"inner"),c=t.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=u?"move":"none",(s||u||c)&&o!==i&&(o&&t.$emit("node-drag-leave",a.node,o.node,n),t.$emit("node-drag-enter",a.node,i.node,n)),(s||u||c)&&(e.dropNode=i),i.node.nextSibling===a.node&&(c=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(u=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,u=!1,c=!1);var f=i.$el.getBoundingClientRect(),d=t.$el.getBoundingClientRect(),h=void 0,p=s?u?.25:c?.45:1:-1,m=c?u?.75:s?.55:0:1,g=-9999,v=n.clientY-f.top;h=v<f.height*p?"before":v>f.height*m?"after":u?"inner":"none";var b=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=t.$refs.dropIndicator;"before"===h?g=b.top-d.top:"after"===h&&(g=b.bottom-d.top),y.style.top=g+"px",y.style.left=b.right-d.left+"px","inner"===h?Object(zt["addClass"])(i.$el,"is-drop-inner"):Object(zt["removeClass"])(i.$el,"is-drop-inner"),e.showDropIndicator="before"===h||"after"===h,e.allowDrop=e.showDropIndicator||l,e.dropType=h,t.$emit("node-drag-over",a.node,i.node,n)}})),this.$on("tree-node-drag-end",(function(n){var r=e.draggingNode,i=e.dropType,o=e.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&o){var a={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?o.node.parent.insertBefore(a,o.node):"after"===i?o.node.parent.insertAfter(a,o.node):"inner"===i&&o.node.insertChild(a),"none"!==i&&t.store.registerNode(a),Object(zt["removeClass"])(o.$el,"is-drop-inner"),t.$emit("node-drag-end",r.node,o.node,i,n),"none"!==i&&t.$emit("node-drop",r.node,o.node,i,n)}r&&!o&&t.$emit("node-drag-end",r.node,null,i,n),e.showDropIndicator=!1,e.draggingNode=null,e.dropNode=null,e.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},kc=Sc,Mc=s(kc,tc,ec,!1,null,null,null);Mc.options.__file="packages/tree/src/tree.vue";var Ec=Mc.exports;Ec.install=function(t){t.component(Ec.name,Ec)};var Oc=Ec,Tc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?n("i",{staticClass:"el-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),n("div",{staticClass:"el-alert__content"},[t.title||t.$slots.title?n("span",{staticClass:"el-alert__title",class:[t.isBoldTitle]},[t._t("title",[t._v(t._s(t.title))])],2):t._e(),t.$slots.default&&!t.description?n("p",{staticClass:"el-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?n("p",{staticClass:"el-alert__description"},[t._v(t._s(t.description))]):t._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==t.closeText,"el-icon-close":""===t.closeText},on:{click:function(e){t.close()}}},[t._v(t._s(t.closeText))])])])])},Ac=[];Tc._withStripped=!0;var Dc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Nc={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Dc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Rc=Nc,Pc=s(Rc,Tc,Ac,!1,null,null,null);Pc.options.__file="packages/alert/src/main.vue";var Ic=Pc.exports;Ic.install=function(t){t.component(Ic.name,Ic)};var Bc=Ic,Lc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-notification",t.customClass,t.horizontalClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(e){t.clearTimer()},mouseleave:function(e){t.startTimer()},click:t.click}},[t.type||t.iconClass?n("i",{staticClass:"el-notification__icon",class:[t.typeClass,t.iconClass]}):t._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":t.typeClass||t.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:t._s(t.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}],staticClass:"el-notification__content"},[t._t("default",[t.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:t._s(t.message)}}):n("p",[t._v(t._s(t.message))])])],2),t.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(e){return e.stopPropagation(),t.close(e)}}}):t._e()])])])},zc=[];Lc._withStripped=!0;var jc={success:"success",info:"info",warning:"warning",error:"error"},Fc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&jc[this.type]?"el-icon-"+jc[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var t;return t={},t[this.verticalProperty]=this.verticalOffset+"px",t}},watch:{closed:function(t){t&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){46===t.keyCode||8===t.keyCode?this.clearTimer():27===t.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},$c=Fc,Hc=s($c,Lc,zc,!1,null,null,null);Hc.options.__file="packages/notification/src/main.vue";var Vc=Hc.exports,Uc=Ur.a.extend(Vc),qc=void 0,Wc=[],Kc=1,Gc=function t(e){if(!Ur.a.prototype.$isServer){e=ke()({},e);var n=e.onClose,r="notification_"+Kc++,i=e.position||"top-right";e.onClose=function(){t.close(r,n)},qc=new Uc({data:e}),Object(Ss["isVNode"])(e.message)&&(qc.$slots.default=[e.message],e.message="REPLACED_BY_VNODE"),qc.id=r,qc.$mount(),document.body.appendChild(qc.$el),qc.visible=!0,qc.dom=qc.$el,qc.dom.style.zIndex=C["PopupManager"].nextZIndex();var o=e.offset||0;return Wc.filter((function(t){return t.position===i})).forEach((function(t){o+=t.$el.offsetHeight+16})),o+=16,qc.verticalOffset=o,Wc.push(qc),qc}};["success","warning","info","error"].forEach((function(t){Gc[t]=function(e){return("string"===typeof e||Object(Ss["isVNode"])(e))&&(e={message:e}),e.type=t,Gc(e)}})),Gc.close=function(t,e){var n=-1,r=Wc.length,i=Wc.filter((function(e,r){return e.id===t&&(n=r,!0)}))[0];if(i&&("function"===typeof e&&e(i),Wc.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)Wc[s].position===o&&(Wc[s].dom.style[i.verticalProperty]=parseInt(Wc[s].dom.style[i.verticalProperty],10)-a-16+"px")},Gc.closeAll=function(){for(var t=Wc.length-1;t>=0;t--)Wc[t].close()};var Yc=Gc,Xc=Yc,Zc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-slider",class:{"is-vertical":t.vertical,"el-slider--with-input":t.showInput},attrs:{role:"slider","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.vertical?"vertical":"horizontal","aria-disabled":t.sliderDisabled}},[t.showInput&&!t.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:t.step,disabled:t.sliderDisabled,controls:t.showInputControls,min:t.min,max:t.max,debounce:t.debounce,size:t.inputSize},on:{change:t.emitChange},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}):t._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":t.showInput,disabled:t.sliderDisabled},style:t.runwayStyle,on:{click:t.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:t.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.firstValue,callback:function(e){t.firstValue=e},expression:"firstValue"}}),t.range?n("slider-button",{ref:"button2",attrs:{vertical:t.vertical,"tooltip-class":t.tooltipClass},model:{value:t.secondValue,callback:function(e){t.secondValue=e},expression:"secondValue"}}):t._e(),t._l(t.stops,(function(e,r){return t.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:t.getStopStyle(e)}):t._e()})),t.markList.length>0?[n("div",t._l(t.markList,(function(e,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:t.getStopStyle(e.position)})})),0),n("div",{staticClass:"el-slider__marks"},t._l(t.markList,(function(e,r){return n("slider-marker",{key:r,style:t.getStopStyle(e.position),attrs:{mark:e.mark}})})),1)]:t._e()],2)],1)},Jc=[];Zc._withStripped=!0;var Qc=n(41),tl=n.n(Qc),el=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:t.hovering,dragging:t.dragging},style:t.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.handleMouseEnter,blur:t.handleMouseLeave,keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLeftKeyDown(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.onRightKeyDown(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":t.tooltipClass,disabled:!t.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:t.hovering,dragging:t.dragging}})])],1)},nl=[];el._withStripped=!0;var rl={name:"ElSliderButton",components:{ElTooltip:ie.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(t){this.$parent.dragging=t}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(t){this.dragging=!0,this.isClick=!0,"touchstart"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?this.startY=t.clientY:this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var e=0;"touchmove"===t.type&&(t.clientY=t.touches[0].clientY,t.clientX=t.touches[0].clientX),this.vertical?(this.currentY=t.clientY,e=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=t.clientX,e=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){var t=this;this.dragging&&(setTimeout((function(){t.dragging=!1,t.hideTooltip(),t.isClick||(t.setPosition(t.newPosition),t.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){var e=this;if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var n=100/((this.max-this.min)/this.step),r=Math.round(t/n),i=r*n*(this.max-this.min)*.01+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.$nextTick((function(){e.displayTooltip(),e.$refs.tooltip&&e.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},il=rl,ol=s(il,el,nl,!1,null,null,null);ol.options.__file="packages/slider/src/button.vue";var al=ol.exports,sl={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var t=arguments[0],e="string"===typeof this.mark?this.mark:this.mark.label;return t("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[e])}},ul={name:"ElSlider",mixins:[O.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:tl.a,SliderButton:al,SliderMarker:sl},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(t,e){this.dragging||Array.isArray(t)&&Array.isArray(e)&&t.every((function(t,n){return t===e[n]}))||this.setValues()},dragging:function(t){t||this.setValues()},firstValue:function(t){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",t)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var t=this;return this.range?![this.minValue,this.maxValue].every((function(e,n){return e===t.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var t=this.value;this.range&&Array.isArray(t)?t[1]<this.min?this.$emit("input",[this.min,this.min]):t[0]>this.max?this.$emit("input",[this.max,this.max]):t[0]<this.min?this.$emit("input",[this.min,t[1]]):t[1]>this.max?this.$emit("input",[t[0],this.max]):(this.firstValue=t[0],this.secondValue=t[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=t.slice())):this.range||"number"!==typeof t||isNaN(t)||(t<this.min?this.$emit("input",this.min):t>this.max?this.$emit("input",this.max):(this.firstValue=t,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",t),this.oldValue=t)))}},setPosition:function(t){var e=this.min+t*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-e)<Math.abs(this.maxValue-e)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(t)}else this.$refs.button1.setPosition(t)},onSliderClick:function(t){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var e=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((e-t.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((t.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.range?[t.minValue,t.maxValue]:t.value)}))},getStopStyle:function(t){return this.vertical?{bottom:t+"%"}:{left:t+"%"}}},computed:{stops:function(){var t=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var e=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<e;i++)r.push(i*n);return this.range?r.filter((function(e){return e<100*(t.minValue-t.min)/(t.max-t.min)||e>100*(t.maxValue-t.min)/(t.max-t.min)})):r.filter((function(e){return e>100*(t.firstValue-t.min)/(t.max-t.min)}))},markList:function(){var t=this;if(!this.marks)return[];var e=Object.keys(this.marks);return e.map(parseFloat).sort((function(t,e){return t-e})).filter((function(e){return e<=t.max&&e>=t.min})).map((function(e){return{point:e,position:100*(e-t.min)/(t.max-t.min),mark:t.marks[e]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var t=[this.min,this.max,this.step].map((function(t){var e=(""+t).split(".")[1];return e?e.length:0}));return Math.max.apply(null,t)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var t=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],t=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,t=this.firstValue),this.$el.setAttribute("aria-valuetext",t),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},cl=ul,ll=s(cl,Zc,Jc,!1,null,null,null);ll.options.__file="packages/slider/src/main.vue";var fl=ll.exports;fl.install=function(t){t.component(fl.name,fl)};var dl=fl,hl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])},pl=[];hl._withStripped=!0;var ml={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(t){this.text=t}}},gl=ml,vl=s(gl,hl,pl,!1,null,null,null);vl.options.__file="packages/loading/src/loading.vue";var bl=vl.exports,yl=n(33),wl=n.n(yl),_l=Ur.a.extend(bl),xl={install:function(t){if(!t.prototype.$isServer){var e=function(e,r){r.value?t.nextTick((function(){r.modifiers.fullscreen?(e.originalPosition=Object(zt["getStyle"])(document.body,"position"),e.originalOverflow=Object(zt["getStyle"])(document.body,"overflow"),e.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(zt["addClass"])(e.mask,"is-fullscreen"),n(document.body,e,r)):(Object(zt["removeClass"])(e.mask,"is-fullscreen"),r.modifiers.body?(e.originalPosition=Object(zt["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";e.maskStyle[t]=e.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-parseInt(Object(zt["getStyle"])(document.body,"margin-"+t),10)+"px"})),["height","width"].forEach((function(t){e.maskStyle[t]=e.getBoundingClientRect()[t]+"px"})),n(document.body,e,r)):(e.originalPosition=Object(zt["getStyle"])(e,"position"),n(e,e,r)))})):(wl()(e.instance,(function(t){if(e.instance.hiding){e.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:e;Object(zt["removeClass"])(n,"el-loading-parent--relative"),Object(zt["removeClass"])(n,"el-loading-parent--hidden"),e.instance.hiding=!1}}),300,!0),e.instance.visible=!1,e.instance.hiding=!0)},n=function(e,n,r){n.domVisible||"none"===Object(zt["getStyle"])(n,"display")||"hidden"===Object(zt["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(t){n.mask.style[t]=n.maskStyle[t]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(zt["addClass"])(e,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(zt["addClass"])(e,"el-loading-parent--hidden"),n.domVisible=!0,e.appendChild(n.mask),t.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};t.directive("loading",{bind:function(t,n,r){var i=t.getAttribute("element-loading-text"),o=t.getAttribute("element-loading-spinner"),a=t.getAttribute("element-loading-background"),s=t.getAttribute("element-loading-custom-class"),u=r.context,c=new _l({el:document.createElement("div"),data:{text:u&&u[i]||i,spinner:u&&u[o]||o,background:u&&u[a]||a,customClass:u&&u[s]||s,fullscreen:!!n.modifiers.fullscreen}});t.instance=c,t.mask=c.$el,t.maskStyle={},n.value&&e(t,n)},update:function(t,n){t.instance.setText(t.getAttribute("element-loading-text")),n.oldValue!==n.value&&e(t,n)},unbind:function(t,n){t.domInserted&&(t.mask&&t.mask.parentNode&&t.mask.parentNode.removeChild(t.mask),e(t,{value:!1,modifiers:n.modifiers})),t.instance&&t.instance.$destroy()}})}}},Cl=xl,Sl=Ur.a.extend(bl),kl={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Ml=void 0;Sl.prototype.originalPosition="",Sl.prototype.originalOverflow="",Sl.prototype.close=function(){var t=this;this.fullscreen&&(Ml=void 0),wl()(this,(function(e){var n=t.fullscreen||t.body?document.body:t.target;Object(zt["removeClass"])(n,"el-loading-parent--relative"),Object(zt["removeClass"])(n,"el-loading-parent--hidden"),t.$el&&t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el),t.$destroy()}),300),this.visible=!1};var El=function(t,e,n){var r={};t.fullscreen?(n.originalPosition=Object(zt["getStyle"])(document.body,"position"),n.originalOverflow=Object(zt["getStyle"])(document.body,"overflow"),r.zIndex=C["PopupManager"].nextZIndex()):t.body?(n.originalPosition=Object(zt["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";r[e]=t.target.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(e){r[e]=t.target.getBoundingClientRect()[e]+"px"}))):n.originalPosition=Object(zt["getStyle"])(e,"position"),Object.keys(r).forEach((function(t){n.$el.style[t]=r[t]}))},Ol=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ur.a.prototype.$isServer){if(t=ke()({},kl,t),"string"===typeof t.target&&(t.target=document.querySelector(t.target)),t.target=t.target||document.body,t.target!==document.body?t.fullscreen=!1:t.body=!0,t.fullscreen&&Ml)return Ml;var e=t.body?document.body:t.target,n=new Sl({el:document.createElement("div"),data:t});return El(t,e,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(zt["addClass"])(e,"el-loading-parent--relative"),t.fullscreen&&t.lock&&Object(zt["addClass"])(e,"el-loading-parent--hidden"),e.appendChild(n.$el),Ur.a.nextTick((function(){n.visible=!0})),t.fullscreen&&(Ml=n),n}},Tl=Ol,Al={install:function(t){t.use(Cl),t.prototype.$loading=Tl},directive:Cl,service:Tl},Dl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",{class:"el-icon-"+t.name})},Nl=[];Dl._withStripped=!0;var Rl={name:"ElIcon",props:{name:String}},Pl=Rl,Il=s(Pl,Dl,Nl,!1,null,null,null);Il.options.__file="packages/icon/src/icon.vue";var Bl=Il.exports;Bl.install=function(t){t.component(Bl.name,Bl)};var Ll=Bl,zl={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:{type:String,default:"top"}},computed:{style:function(){var t={};return this.gutter&&(t.marginLeft="-"+this.gutter/2+"px",t.marginRight=t.marginLeft),t}},render:function(t){return t(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"","top"!==this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(t){t.component(zl.name,zl)}},jl=zl,Fl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var t=this.$parent;while(t&&"ElRow"!==t.$options.componentName)t=t.$parent;return t?t.gutter:0}},render:function(t){var e=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach((function(t){(e[t]||0===e[t])&&n.push("span"!==t?"el-col-"+t+"-"+e[t]:"el-col-"+e[t])})),["xs","sm","md","lg","xl"].forEach((function(t){if("number"===typeof e[t])n.push("el-col-"+t+"-"+e[t]);else if("object"===Fl(e[t])){var r=e[t];Object.keys(r).forEach((function(e){n.push("span"!==e?"el-col-"+t+"-"+e+"-"+r[e]:"el-col-"+t+"-"+r[e])}))}})),t(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(t){t.component($l.name,$l)}},Hl=$l,Vl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition-group",{class:["el-upload-list","el-upload-list--"+t.listType,{"is-disabled":t.disabled}],attrs:{tag:"ul",name:"el-list"}},t._l(t.files,(function(e){return n("li",{key:e.uid,class:["el-upload-list__item","is-"+e.status,t.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&t._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!t.disabled&&t.$emit("remove",e)},focus:function(e){t.focusing=!0},blur:function(e){t.focusing=!1},click:function(e){t.focusing=!1}}},[t._t("default",["uploading"!==e.status&&["picture-card","picture"].indexOf(t.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:e.url,alt:""}}):t._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){t.handleClick(e)}}},[n("i",{staticClass:"el-icon-document"}),t._v(t._s(e.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===t.listType,"el-icon-check":["picture-card","picture"].indexOf(t.listType)>-1}})]),t.disabled?t._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){t.$emit("remove",e)}}}),t.disabled?t._e():n("i",{staticClass:"el-icon-close-tip"},[t._v(t._s(t.t("el.upload.deleteTip")))]),"uploading"===e.status?n("el-progress",{attrs:{type:"picture-card"===t.listType?"circle":"line","stroke-width":"picture-card"===t.listType?6:2,percentage:t.parsePercentage(e.percentage)}}):t._e(),"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-actions"},[t.handlePreview&&"picture-card"===t.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){t.handlePreview(e)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):t._e(),t.disabled?t._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){t.$emit("remove",e)}}},[n("i",{staticClass:"el-icon-delete"})])]):t._e()],{file:e})],2)})),0)},Ul=[];Vl._withStripped=!0;var ql=n(34),Wl=n.n(ql),Kl={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Wl.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(t){return parseInt(t,10)},handleClick:function(t){this.handlePreview&&this.handlePreview(t)}}},Gl=Kl,Yl=s(Gl,Vl,Ul,!1,null,null,null);Yl.options.__file="packages/upload/src/upload-list.vue";var Xl=Yl.exports,Zl=n(24),Jl=n.n(Zl);function Ql(t,e,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+t+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=t,i}function tf(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(n){return e}}function ef(t){if("undefined"!==typeof XMLHttpRequest){var e=new XMLHttpRequest,n=t.action;e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var r=new FormData;t.data&&Object.keys(t.data).forEach((function(e){r.append(e,t.data[e])})),r.append(t.filename,t.file,t.file.name),e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=300)return t.onError(Ql(n,t,e));t.onSuccess(tf(e))},e.open("post",n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var i=t.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&e.setRequestHeader(o,i[o]);return e.send(r),e}}var nf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":t.dragover},on:{drop:function(e){return e.preventDefault(),t.onDrop(e)},dragover:function(e){return e.preventDefault(),t.onDragover(e)},dragleave:function(e){e.preventDefault(),t.dragover=!1}}},[t._t("default")],2)},rf=[];nf._withStripped=!0;var of={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(t){if(!this.disabled&&this.uploader){var e=this.uploader.accept;this.dragover=!1,e?this.$emit("file",[].slice.call(t.dataTransfer.files).filter((function(t){var n=t.type,r=t.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",o=n.replace(/\/.*$/,"");return e.split(",").map((function(t){return t.trim()})).filter((function(t){return t})).some((function(t){return/\..+$/.test(t)?i===t:/\/\*$/.test(t)?o===t.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(t)&&n===t}))}))):this.$emit("file",t.dataTransfer.files)}}}},af=of,sf=s(af,nf,rf,!1,null,null,null);sf.options.__file="packages/upload/src/upload-dragger.vue";var uf,cf,lf=sf.exports,ff={inject:["uploader"],components:{UploadDragger:lf},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:ef},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(t){return-1!==t.indexOf("image")},handleChange:function(t){var e=t.target.files;e&&this.uploadFiles(e)},uploadFiles:function(t){var e=this;if(this.limit&&this.fileList.length+t.length>this.limit)this.onExceed&&this.onExceed(t,this.fileList);else{var n=Array.prototype.slice.call(t);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(t){e.onStart(t),e.autoUpload&&e.upload(t)}))}},upload:function(t){var e=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(t);var n=this.beforeUpload(t);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],t.name,{type:t.type})),t)t.hasOwnProperty(i)&&(n[i]=t[i]);e.post(n)}else e.post(t)}),(function(){e.onRemove(null,t)})):!1!==n?this.post(t):this.onRemove(null,t)},abort:function(t){var e=this.reqs;if(t){var n=t;t.uid&&(n=t.uid),e[n]&&e[n].abort()}else Object.keys(e).forEach((function(t){e[t]&&e[t].abort(),delete e[t]}))},post:function(t){var e=this,n=t.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:t,data:this.data,filename:this.name,action:this.action,onProgress:function(n){e.onProgress(n,t)},onSuccess:function(r){e.onSuccess(r,t),delete e.reqs[n]},onError:function(r){e.onError(r,t),delete e.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(t){t.target===t.currentTarget&&(13!==t.keyCode&&32!==t.keyCode||this.handleClick())}},render:function(t){var e=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,u=this.uploadFiles,c=this.disabled,l=this.handleKeydown,f={class:{"el-upload":!0},on:{click:e,keydown:l}};return f.class["el-upload--"+s]=!0,t("div",Jl()([f,{attrs:{tabindex:"0"}}]),[n?t("upload-dragger",{attrs:{disabled:c},on:{file:u}},[this.$slots.default]):this.$slots.default,t("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},df=ff,hf=s(df,uf,cf,!1,null,null,null);hf.options.__file="packages/upload/src/upload.vue";var pf=hf.exports;function mf(){}var gf,vf,bf={name:"ElUpload",mixins:[M.a],components:{ElProgress:Wl.a,UploadList:Xl,Upload:pf},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:mf},onChange:{type:Function,default:mf},onPreview:{type:Function},onSuccess:{type:Function,default:mf},onProgress:{type:Function,default:mf},onError:{type:Function,default:mf},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:mf}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(t){"picture-card"!==t&&"picture"!==t||(this.uploadFiles=this.uploadFiles.map((function(t){if(!t.url&&t.raw)try{t.url=URL.createObjectURL(t.raw)}catch(e){console.error("[Element Error][Upload]",e)}return t})))},fileList:{immediate:!0,handler:function(t){var e=this;this.uploadFiles=t.map((function(t){return t.uid=t.uid||Date.now()+e.tempIndex++,t.status=t.status||"success",t}))}}},methods:{handleStart:function(t){t.uid=Date.now()+this.tempIndex++;var e={status:"ready",name:t.name,size:t.size,percentage:0,uid:t.uid,raw:t};if("picture-card"===this.listType||"picture"===this.listType)try{e.url=URL.createObjectURL(t)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(e),this.onChange(e,this.uploadFiles)},handleProgress:function(t,e){var n=this.getFile(e);this.onProgress(t,n,this.uploadFiles),n.status="uploading",n.percentage=t.percent||0},handleSuccess:function(t,e){var n=this.getFile(e);n&&(n.status="success",n.response=t,this.onSuccess(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(t,e){var n=this.getFile(e),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(t,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(t,e){var n=this;e&&(t=this.getFile(e));var r=function(){n.abort(t);var e=n.uploadFiles;e.splice(e.indexOf(t),1),n.onRemove(t,e)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var i=this.beforeRemove(t,this.uploadFiles);i&&i.then?i.then((function(){r()}),mf):!1!==i&&r()}}else r()},getFile:function(t){var e=this.uploadFiles,n=void 0;return e.every((function(e){return n=t.uid===e.uid?e:null,!n})),n},abort:function(t){this.$refs["upload-inner"].abort(t)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var t=this;this.uploadFiles.filter((function(t){return"ready"===t.status})).forEach((function(e){t.$refs["upload-inner"].upload(e.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(t){t.url&&0===t.url.indexOf("blob:")&&URL.revokeObjectURL(t.url)}))},render:function(t){var e=this,n=void 0;this.showFileList&&(n=t(Xl,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(t){if(e.$scopedSlots.file)return e.$scopedSlots.file({file:t.file})}]));var r={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},i=this.$slots.trigger||this.$slots.default,o=t("upload",r,[i]);return t("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},yf=bf,wf=s(yf,gf,vf,!1,null,null,null);wf.options.__file="packages/upload/src/index.vue";var _f=wf.exports;_f.install=function(t){t.component(_f.name,_f)};var xf=_f,Cf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:"#e5e9f2","stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px"}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])},Sf=[];Cf._withStripped=!0;var kf={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var t=-1*this.perimeter*(1-this.rate)/2;return t+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"===typeof this.color?this.color(t):"string"===typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort((function(t,e){return t.percentage-e.percentage})),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map((function(t,n){return"string"===typeof t?{color:t,percentage:(n+1)*e}:t}))}}},Mf=kf,Ef=s(Mf,Cf,Sf,!1,null,null,null);Ef.options.__file="packages/progress/src/progress.vue";var Of=Ef.exports;Of.install=function(t){t.component(Of.name,Of)};var Tf=Of,Af=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:t.radius/2+"px",height:t.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:t.strokeColor,"stroke-width":t.strokeWidth}})])])},Df=[];Af._withStripped=!0;var Nf={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Rf=Nf,Pf=s(Rf,Af,Df,!1,null,null,null);Pf.options.__file="packages/spinner/src/spinner.vue";var If=Pf.exports;If.install=function(t){t.component(If.name,If)};var Bf=If,Lf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-message",t.type&&!t.iconClass?"el-message--"+t.type:"",t.center?"is-center":"",t.showClose?"is-closable":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?n("i",{class:t.iconClass}):n("i",{class:t.typeClass}),t._t("default",[t.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:t._s(t.message)}}):n("p",{staticClass:"el-message__content"},[t._v(t._s(t.message))])]),t.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:t.close}}):t._e()],2)])},zf=[];Lf._withStripped=!0;var jf={success:"success",info:"info",warning:"warning",error:"error"},Ff={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+jf[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},$f=Ff,Hf=s($f,Lf,zf,!1,null,null,null);Hf.options.__file="packages/message/src/main.vue";var Vf=Hf.exports,Uf=Ur.a.extend(Vf),qf=void 0,Wf=[],Kf=1,Gf=function t(e){if(!Ur.a.prototype.$isServer){e=e||{},"string"===typeof e&&(e={message:e});var n=e.onClose,r="message_"+Kf++;e.onClose=function(){t.close(r,n)},qf=new Uf({data:e}),qf.id=r,Object(Ss["isVNode"])(qf.message)&&(qf.$slots.default=[qf.message],qf.message=null),qf.$mount(),document.body.appendChild(qf.$el);var i=e.offset||20;return Wf.forEach((function(t){i+=t.$el.offsetHeight+16})),qf.verticalOffset=i,qf.visible=!0,qf.$el.style.zIndex=C["PopupManager"].nextZIndex(),Wf.push(qf),qf}};["success","warning","info","error"].forEach((function(t){Gf[t]=function(e){return"string"===typeof e&&(e={message:e}),e.type=t,Gf(e)}})),Gf.close=function(t,e){for(var n=Wf.length,r=-1,i=void 0,o=0;o<n;o++)if(t===Wf[o].id){i=Wf[o].$el.offsetHeight,r=o,"function"===typeof e&&e(Wf[o]),Wf.splice(o,1);break}if(!(n<=1||-1===r||r>Wf.length-1))for(var a=r;a<n-1;a++){var s=Wf[a].$el;s.style["top"]=parseInt(s.style["top"],10)-i-16+"px"}},Gf.closeAll=function(){for(var t=Wf.length-1;t>=0;t--)Wf[t].close()};var Yf=Gf,Xf=Yf,Zf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-badge"},[t._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!t.hidden&&(t.content||0===t.content||t.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+t.type,{"is-fixed":t.$slots.default,"is-dot":t.isDot}],domProps:{textContent:t._s(t.content)}})])],2)},Jf=[];Zf._withStripped=!0;var Qf={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(t){return["primary","success","warning","info","danger"].indexOf(t)>-1}}},computed:{content:function(){if(!this.isDot){var t=this.value,e=this.max;return"number"===typeof t&&"number"===typeof e&&e<t?e+"+":t}}}},td=Qf,ed=s(td,Zf,Jf,!1,null,null,null);ed.options.__file="packages/badge/src/main.vue";var nd=ed.exports;nd.install=function(t){t.component(nd.name,nd)};var rd=nd,id=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-card",class:t.shadow?"is-"+t.shadow+"-shadow":"is-always-shadow"},[t.$slots.header||t.header?n("div",{staticClass:"el-card__header"},[t._t("header",[t._v(t._s(t.header))])],2):t._e(),n("div",{staticClass:"el-card__body",style:t.bodyStyle},[t._t("default")],2)])},od=[];id._withStripped=!0;var ad={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},sd=ad,ud=s(sd,id,od,!1,null,null,null);ud.options.__file="packages/card/src/main.vue";var cd=ud.exports;cd.install=function(t){t.component(cd.name,cd)};var ld=cd,fd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":t.currentValue,"aria-valuetext":t.text,"aria-valuemin":"0","aria-valuemax":t.max,tabindex:"0"},on:{keydown:t.handleKey}},[t._l(t.max,(function(e,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:t.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){t.setCurrentValue(e,n)},mouseleave:t.resetCurrentValue,click:function(n){t.selectValue(e)}}},[n("i",{staticClass:"el-rate__icon",class:[t.classes[e-1],{hover:t.hoverIndex===e}],style:t.getIconStyle(e)},[t.showDecimalIcon(e)?n("i",{staticClass:"el-rate__decimal",class:t.decimalIconClass,style:t.decimalStyle}):t._e()])])})),t.showText||t.showScore?n("span",{staticClass:"el-rate__text",style:{color:t.textColor}},[t._v(t._s(t.text))]):t._e()],2)},dd=[];fd._withStripped=!0;var hd=n(18),pd={name:"ElRate",mixins:[M.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var t="";return this.showScore?t=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(t=this.texts[Math.ceil(this.currentValue)-1]),t},decimalStyle:function(){var t="";return this.rateDisabled?t=this.valueDecimal+"%":this.allowHalf&&(t="50%"),{color:this.activeColor,width:t}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var t;return Array.isArray(this.iconClasses)?(t={},t[this.lowThreshold]=this.iconClasses[0],t[this.highThreshold]={value:this.iconClasses[1],excluded:!0},t[this.max]=this.iconClasses[2],t):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var t;return Array.isArray(this.colors)?(t={},t[this.lowThreshold]=this.colors[0],t[this.highThreshold]={value:this.colors[1],excluded:!0},t[this.max]=this.colors[2],t):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var t=[],e=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;e<n;e++)t.push(this.activeClass);for(;e<this.max;e++)t.push(this.voidClass);return t},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){this.currentValue=t,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(t,e){var n=Object.keys(e).filter((function(n){var r=e[n],i=!!Object(hd["isObject"])(r)&&r.excluded;return i?t<n:t<=n})).sort((function(t,e){return t-e})),r=e[n[0]];return Object(hd["isObject"])(r)?r.value:r||""},showDecimalIcon:function(t){var e=this.rateDisabled&&this.valueDecimal>0&&t-1<this.value&&t>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&t-.5<=this.currentValue&&t>this.currentValue;return e||n},getIconStyle:function(t){var e=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:t<=this.currentValue?this.activeColor:e}},selectValue:function(t){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",t),this.$emit("change",t)))},handleKey:function(t){if(!this.rateDisabled){var e=this.currentValue,n=t.keyCode;38===n||39===n?(this.allowHalf?e+=.5:e+=1,t.stopPropagation(),t.preventDefault()):37!==n&&40!==n||(this.allowHalf?e-=.5:e-=1,t.stopPropagation(),t.preventDefault()),e=e<0?0:e,e=e>this.max?this.max:e,this.$emit("input",e),this.$emit("change",e)}},setCurrentValue:function(t,e){if(!this.rateDisabled){if(this.allowHalf){var n=e.target;Object(zt["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(zt["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*e.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?t-.5:t}else this.currentValue=t;this.hoverIndex=t}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},md=pd,gd=s(md,fd,dd,!1,null,null,null);gd.options.__file="packages/rate/src/main.vue";var vd=gd.exports;vd.install=function(t){t.component(vd.name,vd)};var bd=vd,yd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-steps",class:[!t.simple&&"el-steps--"+t.direction,t.simple&&"el-steps--simple"]},[t._t("default")],2)},wd=[];yd._withStripped=!0;var _d={name:"ElSteps",mixins:[M.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(t,e){this.$emit("change",t,e)},steps:function(t){t.forEach((function(t,e){t.index=e}))}}},xd=_d,Cd=s(xd,yd,wd,!1,null,null,null);Cd.options.__file="packages/steps/src/steps.vue";var Sd=Cd.exports;Sd.install=function(t){t.component(Sd.name,Sd)};var kd=Sd,Md=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},[n("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[n("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",[t.icon?n("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t.icon||t.isSimple?t._e():n("div",{staticClass:"el-step__icon-inner"},[t._v(t._s(t.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",[t._v(t._s(t.title))])],2),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",[t._v(t._s(t.description))])],2)])])},Ed=[];Md._withStripped=!0;var Od={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var t=this.isSimple,e=this.$parent.space;return t?"":e},style:function(){var t={},e=this.$parent,n=e.steps.length,r="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return t.flexBasis=r,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px"),t}},methods:{updateStatus:function(t){var e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",e&&e.calcProgress(this.internalStatus)},calcProgress:function(t){var e=100,n={};n.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=e+"%":n.width=e+"%",this.lineStyle=n}},mounted:function(){var t=this,e=this.$watch("index",(function(n){t.$watch("$parent.active",t.updateStatus,{immediate:!0}),t.$watch("$parent.processStatus",(function(){var e=t.$parent.active;t.updateStatus(e)}),{immediate:!0}),e()}))}},Td=Od,Ad=s(Td,Md,Ed,!1,null,null,null);Ad.options.__file="packages/steps/src/step.vue";var Dd=Ad.exports;Dd.install=function(t){t.component(Dd.name,Dd)};var Nd=Dd,Rd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.carouselClasses,on:{mouseenter:function(e){return e.stopPropagation(),t.handleMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),t.handleMouseLeave(e)}}},[n("div",{staticClass:"el-carousel__container",style:{height:t.height}},[t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("left")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):t._e(),t.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===t.arrow||t.hover)&&(t.loop||t.activeIndex<t.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(e){t.handleButtonEnter("right")},mouseleave:t.handleButtonLeave,click:function(e){e.stopPropagation(),t.throttledArrowClick(t.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):t._e(),t._t("default")],2),"none"!==t.indicatorPosition?n("ul",{class:t.indicatorsClasses},t._l(t.items,(function(e,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+t.direction,{"is-active":r===t.activeIndex}],on:{mouseenter:function(e){t.throttledIndicatorHover(r)},click:function(e){e.stopPropagation(),t.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[t.hasLabel?n("span",[t._v(t._s(e.label))]):t._e()])])})),0):t._e()])},Pd=[];Rd._withStripped=!0;var Id=n(25),Bd=n.n(Id),Ld={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(t){return t.label.toString().length>0}))},carouselClasses:function(){var t=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&t.push("el-carousel--card"),t},indicatorsClasses:function(){var t=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&t.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||t.push("el-carousel__indicators--outside"),t}},watch:{items:function(t){t.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(t,e){this.resetItemPosition(e),e>-1&&this.$emit("change",t,e)},autoplay:function(t){t?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(t,e){var n=this.items.length;return e===n-1&&t.inStage&&this.items[0].active||t.inStage&&this.items[e+1]&&this.items[e+1].active?"left":!!(0===e&&t.inStage&&this.items[n-1].active||t.inStage&&this.items[e-1]&&this.items[e-1].active)&&"right"},handleButtonEnter:function(t){var e=this;"vertical"!==this.direction&&this.items.forEach((function(n,r){t===e.itemInStage(n,r)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(t){t.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(t){return"ElCarouselItem"===t.$options.name}))},resetItemPosition:function(t){var e=this;this.items.forEach((function(n,r){n.translateItem(r,e.activeIndex,t)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},setActiveItem:function(t){if("string"===typeof t){var e=this.items.filter((function(e){return e.name===t}));e.length>0&&(t=this.items.indexOf(e[0]))}if(t=Number(t),isNaN(t)||t!==Math.floor(t))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=t<0?this.loop?n-1:0:t>=n?this.loop?0:n-1:t,r===this.activeIndex&&this.resetItemPosition(r)}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(t){this.activeIndex=t},handleIndicatorHover:function(t){"hover"===this.trigger&&t!==this.activeIndex&&(this.activeIndex=t)}},created:function(){var t=this;this.throttledArrowClick=Bd()(300,!0,(function(e){t.setActiveItem(e)})),this.throttledIndicatorHover=Bd()(300,(function(e){t.handleIndicatorHover(e)}))},mounted:function(){var t=this;this.updateItems(),this.$nextTick((function(){Object(tr["addResizeListener"])(t.$el,t.resetItemPosition),t.initialIndex<t.items.length&&t.initialIndex>=0&&(t.activeIndex=t.initialIndex),t.startTimer()}))},beforeDestroy:function(){this.$el&&Object(tr["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},zd=Ld,jd=s(zd,Rd,Pd,!1,null,null,null);jd.options.__file="packages/carousel/src/main.vue";var Fd=jd.exports;Fd.install=function(t){t.component(Fd.name,Fd)};var $d=Fd,Hd={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Vd(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var Ud={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Hd[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Vd({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(e-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(zt["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(zt["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-e,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(zt["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(zt["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},qd={name:"ElScrollbar",components:{Bar:Ud},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=yi()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(b["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var o=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,t(Ud,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(Ud,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t=void 0,e=void 0,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(tr["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(tr["removeResizeListener"])(this.$refs.resize,this.update)},install:function(t){t.component(qd.name,qd)}},Wd=qd,Kd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":t.active,"el-carousel__item--card":"card"===t.$parent.type,"is-in-stage":t.inStage,"is-hover":t.hover,"is-animating":t.animating},style:t.itemStyle,on:{click:t.handleItemClick}},["card"===t.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.active,expression:"!active"}],staticClass:"el-carousel__mask"}):t._e(),t._t("default")],2)},Gd=[];Kd._withStripped=!0;var Yd=.83,Xd={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(t,e,n){return 0===e&&t===n-1?-1:e===n-1&&0===t?n:t<e-1&&e-t>=n/2?n+1:t>e+1&&t-e>=n/2?-2:t},calcCardTranslate:function(t,e){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-Yd)*(t-e)+1)/4:t<e?-(1+Yd)*n/4:(3+Yd)*n/4},calcTranslate:function(t,e,n){var r=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return r*(t-e)},translateItem:function(t,e,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=t===e||t===n),t!==e&&o>2&&this.$parent.loop&&(t=this.processIndex(t,e,o)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(t-e))<=1,this.active=t===e,this.translate=this.calcCardTranslate(t,e),this.scale=this.active?1:Yd;else{this.active=t===e;var a="vertical"===i;this.translate=this.calcTranslate(t,e,a)}this.ready=!0},handleItemClick:function(){var t=this.$parent;if(t&&"card"===t.type){var e=t.items.indexOf(this);t.setActiveItem(e)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var t="vertical"===this.parentDirection?"translateY":"translateX",e=t+"("+this.translate+"px) scale("+this.scale+")",n={transform:e};return Object(b["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Zd=Xd,Jd=s(Zd,Kd,Gd,!1,null,null,null);Jd.options.__file="packages/carousel/src/item.vue";var Qd=Jd.exports;Qd.install=function(t){t.component(Qd.name,Qd)};var th=Qd,eh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[t._t("default")],2)},nh=[];eh._withStripped=!0;var rh={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(t){this.activeNames=[].concat(t)}},methods:{setActiveNames:function(t){t=[].concat(t);var e=this.accordion?t[0]:t;this.activeNames=t,this.$emit("input",e),this.$emit("change",e)},handleItemClick:function(t){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==t.name?t.name:"");else{var e=this.activeNames.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),this.setActiveNames(e)}}},created:function(){this.$on("item-click",this.handleItemClick)}},ih=rh,oh=s(ih,eh,nh,!1,null,null,null);oh.options.__file="packages/collapse/src/collapse.vue";var ah=oh.exports;ah.install=function(t){t.component(ah.name,ah)};var sh=ah,uh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-collapse-item",class:{"is-active":t.isActive,"is-disabled":t.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":t.isActive,"aria-controls":"el-collapse-content-"+t.id,"aria-describedby":"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:t.focusing,"is-active":t.isActive},attrs:{role:"button",id:"el-collapse-head-"+t.id,tabindex:t.disabled?void 0:0},on:{click:t.handleHeaderClick,keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),t.handleEnterClick(e))},focus:t.handleFocus,blur:function(e){t.focusing=!1}}},[t._t("title",[t._v(t._s(t.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":t.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!t.isActive,"aria-labelledby":"el-collapse-head-"+t.id,id:"el-collapse-content-"+t.id}},[n("div",{staticClass:"el-collapse-item__content"},[t._t("default")],2)])])],1)},ch=[];uh._withStripped=!0;var lh={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[O.a],components:{ElCollapseTransition:Kt.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(b["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var t=this;setTimeout((function(){t.isClick?t.isClick=!1:t.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},fh=lh,dh=s(fh,uh,ch,!1,null,null,null);dh.options.__file="packages/collapse/src/collapse-item.vue";var hh=dh.exports;hh.install=function(t){t.component(hh.name,hh)};var ph=hh,mh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return t.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",t.realSize&&"el-cascader--"+t.realSize,{"is-disabled":t.isDisabled}],on:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1},click:function(){return t.toggleDropDownVisible(!t.readonly||void 0)},keydown:t.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":t.dropDownVisible},attrs:{size:t.realSize,placeholder:t.placeholder,readonly:t.readonly,disabled:t.isDisabled,"validate-event":!1},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.handleInput},model:{value:t.multiple?t.presentText:t.inputValue,callback:function(e){t.multiple?t.presentText:t.inputValue=e},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[t.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(e){return e.stopPropagation(),t.handleClear(e)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",t.dropDownVisible&&"is-reverse"],on:{click:function(e){e.stopPropagation(),t.toggleDropDownVisible()}}})])],2),t.multiple?n("div",{staticClass:"el-cascader__tags"},[t._l(t.presentTags,(function(e,r){return n("el-tag",{key:e.key,attrs:{type:"info",size:t.tagSize,hit:e.hitState,closable:e.closable,"disable-transitions":""},on:{close:function(e){t.deleteTag(r)}}},[n("span",[t._v(t._s(e.text))])])})),t.filterable&&!t.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:t.presentTags.length?"":t.placeholder},domProps:{value:t.inputValue},on:{input:[function(e){e.target.composing||(t.inputValue=e.target.value.trim())},function(e){return t.handleInput(t.inputValue,e)}],click:function(e){e.stopPropagation(),t.toggleDropDownVisible(!0)},keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.handleDelete(e)},blur:function(e){t.$forceUpdate()}}}):t._e()],2):t._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",t.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!t.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:t.options,props:t.config,border:!1,"render-label":t.$scopedSlots.default},on:{"expand-change":t.handleExpandChange,close:function(e){t.toggleDropDownVisible(!1)}},model:{value:t.checkedValue,callback:function(e){t.checkedValue=e},expression:"checkedValue"}}),t.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:t.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(e){return t.handleSuggestionKeyDown(e)}}},[t.suggestions.length?t._l(t.suggestions,(function(e,r){return n("li",{key:e.uid,class:["el-cascader__suggestion-item",e.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(e){t.handleSuggestionClick(r)}}},[n("span",[t._v(t._s(e.text))]),e.checked?n("i",{staticClass:"el-icon-check"}):t._e()])})):t._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[t._v(t._s(t.t("el.cascader.noMatch")))])])],2):t._e()],1)])],1)},gh=[];mh._withStripped=!0;var vh=n(42),bh=n.n(vh),yh=n(28),wh=n.n(yh),_h=wh.a.keys,xh={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Ch={props:{placement:{type:String,default:"bottom-start"},appendToBody:V.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:V.a.props.arrowOffset,offset:V.a.props.offset,boundariesPadding:V.a.props.boundariesPadding,popperOptions:V.a.props.popperOptions},methods:V.a.methods,data:V.a.data,beforeDestroy:V.a.beforeDestroy},Sh={medium:36,small:32,mini:28},kh={name:"ElCascader",directives:{Clickoutside:j.a},mixins:[Ch,O.a,v.a,M.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:m.a,ElTag:Qn.a,ElScrollbar:q.a,ElCascaderPanel:bh.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(er["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value||null,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var t=(this.elFormItem||{}).elFormItemSize;return this.size||t||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var t=this.props||{},e=this.$attrs;return Object.keys(xh).forEach((function(n){var r=xh[n],i=r.newProp,o=r.type,a=e[n]||e[Object(b["kebabCase"])(n)];Object(Me["isDef"])(n)&&!Object(Me["isDef"])(t[i])&&(o===Boolean&&""===a&&(a=!0),t[i]=a)})),t},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(t){return!t.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(t){Object(b["isEqual"])(t,this.checkedValue)||(this.checkedValue=t,this.computePresentContent())},checkedValue:function(t){var e=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(b["isEqual"])(t,e)&&!Object(hd["isUndefined"])(e)||(this.computePresentContent(),o||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",[t]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(t){this.inputValue=t},presentTags:function(t,e){this.multiple&&(t.length||e.length)&&this.$nextTick(this.updateStyle)},filtering:function(t){this.$nextTick(this.updatePopper)}},mounted:function(){var t=this,e=this.$refs.input;e&&e.$el&&(this.inputInitialHeight=e.$el.offsetHeight||Sh[this.realSize]||40),Object(b["isEmpty"])(this.value)||this.computePresentContent(),this.filterHandler=L()(this.debounce,(function(){var e=t.inputValue;if(e){var n=t.beforeFilter(e);n&&n.then?n.then(t.getSuggestions):!1!==n?t.getSuggestions():t.filtering=!1}else t.filtering=!1})),Object(tr["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(tr["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(t){var e=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;t=Object(Me["isDef"])(t)?t:!n,t!==n&&(this.dropDownVisible=t,t&&this.$nextTick((function(){e.updatePopper(),e.panel.scrollIntoView()})),r.$refs.input.setAttribute("aria-expanded",t),this.$emit("visible-change",t))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(t){switch(t.keyCode){case _h.enter:this.toggleDropDownVisible();break;case _h.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),t.preventDefault();break;case _h.esc:case _h.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(t){this.$emit("focus",t)},handleBlur:function(t){this.$emit("blur",t)},handleInput:function(t,e){!this.dropDownVisible&&this.toggleDropDownVisible(!0),e&&e.isComposing||(t?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(t){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",t),this.$emit("active-item-change",t)},focusFirstNode:function(){var t=this;this.$nextTick((function(){var e=t.filtering,n=t.$refs,r=n.popper,i=n.suggestionPanel,o=null;if(e&&i)o=i.$el.querySelector(".el-cascader__suggestion-item");else{var a=r.querySelector(".el-cascader-menu");o=a.querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!e&&o.click())}))},computePresentContent:function(){var t=this;this.$nextTick((function(){t.config.multiple?(t.computePresentTags(),t.presentText=t.presentTags.length?" ":null):t.computePresentText()}))},computePresentText:function(){var t=this.checkedValue,e=this.config;if(!Object(b["isEmpty"])(t)){var n=this.panel.getNodeByValue(t);if(n&&(e.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var t=this.isDisabled,e=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(e),a=[],s=function(e){return{node:e,key:e.uid,text:e.getText(n,r),hitState:!1,closable:!t&&!e.isDisabled}};if(o.length){var u=o[0],c=o.slice(1),l=c.length;a.push(s(u)),l&&(i?a.push({key:-1,text:"+ "+l,closable:!1}):c.forEach((function(t){return a.push(s(t))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var t=this,e=this.filterMethod;Object(hd["isFunction"])(e)||(e=function(t,e){return t.text.includes(e)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(t.showAllLevels,t.separator)||"",e(n,t.inputValue))}));this.multiple?this.presentTags.forEach((function(t){t.hitState=!1})):n.forEach((function(e){e.checked=Object(b["isEqual"])(t.checkedValue,e.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(t){var e=t.keyCode,n=t.target;switch(e){case _h.enter:n.click();break;case _h.up:var r=n.previousElementSibling;r&&r.focus();break;case _h.down:var i=n.nextElementSibling;i&&i.focus();break;case _h.esc:case _h.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var t=this.inputValue,e=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=t?0:e+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(r):i.hitState=!0)},handleSuggestionClick:function(t){var e=this.multiple,n=this.suggestions[t];if(e){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(t){var e=this.checkedValue,n=e[t];this.checkedValue=e.filter((function(e,n){return n!==t})),this.$emit("remove-tag",n)},updateStyle:function(){var t=this.$el,e=this.inputInitialHeight;if(!this.$isServer&&t){var n=this.$refs.suggestionPanel,r=t.querySelector(".el-input__inner");if(r){var i=t.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var a=o.querySelector(".el-cascader__suggestion-list");a.style.minWidth=r.offsetWidth+"px"}if(i){var s=i.offsetHeight,u=Math.max(s+6,e)+"px";r.style.height=u,this.updatePopper()}}}},getCheckedNodes:function(t){return this.panel.getCheckedNodes(t)}}},Mh=kh,Eh=s(Mh,mh,gh,!1,null,null,null);Eh.options.__file="packages/cascader/src/cascader.vue";var Oh=Eh.exports;Oh.install=function(t){t.component(Oh.name,Oh)};var Th=Oh,Ah=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hide,expression:"hide"}],class:["el-color-picker",t.colorDisabled?"is-disabled":"",t.colorSize?"el-color-picker--"+t.colorSize:""]},[t.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):t._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:t.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":t.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:t.displayedColor}}),t.value||t.showPanelColor?t._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.value||t.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",t.popperClass||""],attrs:{color:t.color,"show-alpha":t.showAlpha,predefine:t.predefine},on:{pick:t.confirmValue,clear:t.clearValue},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}})],1)},Dh=[];Ah._withStripped=!0;var Nh="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};function Rh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ph=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},Ih=function(t){return"string"===typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)},Bh=function(t){return"string"===typeof t&&-1!==t.indexOf("%")},Lh=function(t,e){Ih(t)&&(t="100%");var n=Bh(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)},zh={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},jh=function(t){var e=t.r,n=t.g,r=t.b,i=function(t){t=Math.min(Math.round(t),255);var e=Math.floor(t/16),n=t%16;return""+(zh[e]||e)+(zh[n]||n)};return isNaN(e)||isNaN(n)||isNaN(r)?"":"#"+i(e)+i(n)+i(r)},Fh={A:10,B:11,C:12,D:13,E:14,F:15},$h=function(t){return 2===t.length?16*(Fh[t[0].toUpperCase()]||+t[0])+(Fh[t[1].toUpperCase()]||+t[1]):Fh[t[1].toUpperCase()]||+t[1]},Hh=function(t,e,n){e/=100,n/=100;var r=e,i=Math.max(n,.01),o=void 0,a=void 0;return n*=2,e*=n<=1?n:2-n,r*=i<=1?i:2-i,a=(n+e)/2,o=0===n?2*r/(i+r):2*e/(n+e),{h:t,s:100*o,v:100*a}},Vh=function(t,e,n){t=Lh(t,255),e=Lh(e,255),n=Lh(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=void 0,a=void 0,s=r,u=r-i;if(a=0===r?0:u/r,r===i)o=0;else{switch(r){case t:o=(e-n)/u+(e<n?6:0);break;case e:o=(n-t)/u+2;break;case n:o=(t-e)/u+4;break}o/=6}return{h:360*o,s:100*a,v:100*s}},Uh=function(t,e,n){t=6*Lh(t,360),e=Lh(e,100),n=Lh(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,c=[n,a,o,o,s,n][u],l=[s,n,n,a,o,o][u],f=[o,o,s,n,n,a][u];return{r:Math.round(255*c),g:Math.round(255*l),b:Math.round(255*f)}},qh=function(){function t(e){for(var n in Rh(this,t),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",e=e||{},e)e.hasOwnProperty(n)&&(this[n]=e[n]);this.doOnChange()}return t.prototype.set=function(t,e){if(1!==arguments.length||"object"!==("undefined"===typeof t?"undefined":Nh(t)))this["_"+t]=e,this.doOnChange();else for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n])},t.prototype.get=function(t){return this["_"+t]},t.prototype.toRgb=function(){return Uh(this._hue,this._saturation,this._value)},t.prototype.fromString=function(t){var e=this;if(!t)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(t,n,r){e._hue=Math.max(0,Math.min(360,t)),e._saturation=Math.max(0,Math.min(100,n)),e._value=Math.max(0,Math.min(100,r)),e.doOnChange()};if(-1!==t.indexOf("hsl")){var r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(t){return""!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=Hh(r[0],r[1],r[2]),o=i.h,a=i.s,s=i.v;n(o,a,s)}}else if(-1!==t.indexOf("hsv")){var u=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(t){return""!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));4===u.length?this._alpha=Math.floor(100*parseFloat(u[3])):3===u.length&&(this._alpha=100),u.length>=3&&n(u[0],u[1],u[2])}else if(-1!==t.indexOf("rgb")){var c=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(t){return""!==t})).map((function(t,e){return e>2?parseFloat(t):parseInt(t,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var l=Vh(c[0],c[1],c[2]),f=l.h,d=l.s,h=l.v;n(f,d,h)}}else if(-1!==t.indexOf("#")){var p=t.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}$/.test(p))return;var m=void 0,g=void 0,v=void 0;3===p.length?(m=$h(p[0]+p[0]),g=$h(p[1]+p[1]),v=$h(p[2]+p[2])):6!==p.length&&8!==p.length||(m=$h(p.substring(0,2)),g=$h(p.substring(2,4)),v=$h(p.substring(4,6))),8===p.length?this._alpha=Math.floor($h(p.substring(6))/255*100):3!==p.length&&6!==p.length||(this._alpha=100);var b=Vh(m,g,v),y=b.h,w=b.s,_=b.v;n(y,w,_)}},t.prototype.compare=function(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1},t.prototype.doOnChange=function(){var t=this._hue,e=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var o=Ph(t,e/100,n/100);this.value="hsla("+t+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var a=Uh(t,e,n),s=a.r,u=a.g,c=a.b;this.value="rgba("+s+", "+u+", "+c+", "+r/100+")"}else switch(i){case"hsl":var l=Ph(t,e/100,n/100);this.value="hsl("+t+", "+Math.round(100*l[1])+"%, "+Math.round(100*l[2])+"%)";break;case"hsv":this.value="hsv("+t+", "+Math.round(e)+"%, "+Math.round(n)+"%)";break;case"rgb":var f=Uh(t,e,n),d=f.r,h=f.g,p=f.b;this.value="rgb("+d+", "+h+", "+p+")";break;default:this.value=jh(Uh(t,e,n))}},t}(),Wh=qh,Kh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":t.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:t.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:t.color}})],1),t.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:t.color}}):t._e(),t.predefine?n("predefine",{attrs:{color:t.color,colors:t.predefine}}):t._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:t.handleConfirm},nativeOn:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleConfirm(e)}},model:{value:t.customInput,callback:function(e){t.customInput=e},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(e){t.$emit("clear")}}},[t._v("\n "+t._s(t.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:t.confirmValue}},[t._v("\n "+t._s(t.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Gh=[];Kh._withStripped=!0;var Yh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:t.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:t.cursorTop+"px",left:t.cursorLeft+"px"}},[n("div")])])},Xh=[];Yh._withStripped=!0;var Zh=!1,Jh=function(t,e){if(!Ur.a.prototype.$isServer){var n=function(t){e.drag&&e.drag(t)},r=function t(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t),document.onselectstart=null,document.ondragstart=null,Zh=!1,e.end&&e.end(r)};t.addEventListener("mousedown",(function(t){Zh||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),Zh=!0,e.start&&e.start(t))}))}},Qh={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var t=this.color.get("hue"),e=this.color.get("value");return{hue:t,value:e}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var t=this.color.get("saturation"),e=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=t*r/100,this.cursorTop=(100-e)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(t){var e=this.$el,n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top;r=Math.max(0,r),r=Math.min(r,n.width),i=Math.max(0,i),i=Math.min(i,n.height),this.cursorLeft=r,this.cursorTop=i,this.color.set({saturation:r/n.width*100,value:100-i/n.height*100})}},mounted:function(){var t=this;Jh(this.$el,{drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},tp=Qh,ep=s(tp,Yh,Xh,!1,null,null,null);ep.options.__file="packages/color-picker/src/components/sv-panel.vue";var np=ep.exports,rp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":t.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:t.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:t.thumbLeft+"px",top:t.thumbTop+"px"}})])},ip=[];rp._withStripped=!0;var op={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var t=this.color.get("hue");return t}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb,n=t.target;n!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=t.clientY-e.top;i=Math.min(i,e.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(e.height-n.offsetHeight)*360)}else{var o=t.clientX-e.left;o=Math.min(o,e.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),r=Math.round((o-n.offsetWidth/2)/(e.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color.get("hue");if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Jh(n,i),Jh(r,i),this.update()}},ap=op,sp=s(ap,rp,ip,!1,null,null,null);sp.options.__file="packages/color-picker/src/components/hue-slider.vue";var up=sp.exports,cp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":t.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:t.background},on:{click:t.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:t.thumbLeft+"px",top:t.thumbTop+"px"}})])},lp=[];cp._withStripped=!0;var fp={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(t){var e=this.$refs.thumb,n=t.target;n!==e&&this.handleDrag(t)},handleDrag:function(t){var e=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=t.clientY-e.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,e.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(e.height-n.offsetHeight)*100))}else{var i=t.clientX-e.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,e.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(e.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var t=this.$el,e=this.color._alpha;if(!t)return 0;var n=this.$refs.thumb;return Math.round(e*(t.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var t=this.color.toRgb(),e=t.r,n=t.g,r=t.b;return"linear-gradient(to right, rgba("+e+", "+n+", "+r+", 0) 0%, rgba("+e+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var t=this,e=this.$refs,n=e.bar,r=e.thumb,i={drag:function(e){t.handleDrag(e)},end:function(e){t.handleDrag(e)}};Jh(n,i),Jh(r,i),this.update()}},dp=fp,hp=s(dp,cp,lp,!1,null,null,null);hp.options.__file="packages/color-picker/src/components/alpha-slider.vue";var pp=hp.exports,mp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},t._l(t.rgbaColors,(function(e,r){return n("div",{key:t.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:e.selected,"is-alpha":e._alpha<100},on:{click:function(e){t.handleSelect(r)}}},[n("div",{style:{"background-color":e.value}})])})),0)])},gp=[];mp._withStripped=!0;var vp={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(t){this.color.fromString(this.colors[t])},parseColors:function(t,e){return t.map((function(t){var n=new Wh;return n.enableAlpha=!0,n.format="rgba",n.fromString(t),n.selected=n.value===e.value,n}))}},watch:{"$parent.currentColor":function(t){var e=new Wh;e.fromString(t),this.rgbaColors.forEach((function(t){t.selected=e.compare(t)}))},colors:function(t){this.rgbaColors=this.parseColors(t,this.color)},color:function(t){this.rgbaColors=this.parseColors(this.colors,t)}}},bp=vp,yp=s(bp,mp,gp,!1,null,null,null);yp.options.__file="packages/color-picker/src/components/predefine.vue";var wp=yp.exports,_p={name:"el-color-picker-dropdown",mixins:[V.a,v.a],components:{SvPanel:np,HueSlider:up,AlphaSlider:pp,ElInput:m.a,ElButton:at.a,Predefine:wp},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var t=this.$parent;return t.value||t.showPanelColor?t.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(t){var e=this;!0===t&&this.$nextTick((function(){var t=e.$refs,n=t.sl,r=t.hue,i=t.alpha;n&&n.update(),r&&r.update(),i&&i.update()}))},currentColor:{immediate:!0,handler:function(t){this.customInput=t}}}},xp=_p,Cp=s(xp,Kh,Gh,!1,null,null,null);Cp.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Sp=Cp.exports,kp={name:"ElColorPicker",mixins:[O.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:j.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(t){t?t&&t!==this.color.value&&this.color.fromString(t):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(t){if(this.showPicker){var e=new Wh({enableAlpha:this.showAlpha,format:this.colorFormat});e.fromString(this.value);var n=this.displayedRgb(e,this.showAlpha);t!==n&&this.$emit("active-change",t)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var t=this.color.value;this.$emit("input",t),this.$emit("change",t),this.dispatch("ElFormItem","el.form.change",t),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var t=this;this.$nextTick((function(e){t.value?t.color.fromString(t.value):t.showPanelColor=!1}))},displayedRgb:function(t,e){if(!(t instanceof Wh))throw Error("color should be instance of Color Class");var n=t.toRgb(),r=n.r,i=n.g,o=n.b;return e?"rgba("+r+", "+i+", "+o+", "+t.get("alpha")/100+")":"rgb("+r+", "+i+", "+o+")"}},mounted:function(){var t=this.value;t&&this.color.fromString(t),this.popperElm=this.$refs.dropdown.$el},data:function(){var t=new Wh({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:t,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Sp}},Mp=kp,Ep=s(Mp,Ah,Dh,!1,null,null,null);Ep.options.__file="packages/color-picker/src/main.vue";var Op=Ep.exports;Op.install=function(t){t.component(Op.name,Op)};var Tp=Op,Ap=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",t._b({ref:"leftPanel",attrs:{data:t.sourceData,title:t.titles[0]||t.t("el.transfer.titles.0"),"default-checked":t.leftDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onSourceCheckedChange}},"transfer-panel",t.$props,!1),[t._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.rightChecked.length},nativeOn:{click:function(e){return t.addToLeft(e)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==t.buttonTexts[0]?n("span",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),n("el-button",{class:["el-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.leftChecked.length},nativeOn:{click:function(e){return t.addToRight(e)}}},[void 0!==t.buttonTexts[1]?n("span",[t._v(t._s(t.buttonTexts[1]))]):t._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",t._b({ref:"rightPanel",attrs:{data:t.targetData,title:t.titles[1]||t.t("el.transfer.titles.1"),"default-checked":t.rightDefaultChecked,placeholder:t.filterPlaceholder||t.t("el.transfer.filterPlaceholder")},on:{"checked-change":t.onTargetCheckedChange}},"transfer-panel",t.$props,!1),[t._t("right-footer")],2)],1)},Dp=[];Ap._withStripped=!0;var Np=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("\n "+t._s(t.title)+"\n "),n("span",[t._v(t._s(t.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",t.hasFooter?"is-with-footer":""]},[t.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:t.placeholder},nativeOn:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+t.inputIcon],attrs:{slot:"prefix"},on:{click:t.clearQuery},slot:"prefix"})]):t._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoMatch&&t.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},t._l(t.filteredData,(function(e){return n("el-checkbox",{key:e[t.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:e[t.keyProp],disabled:e[t.disabledProp]}},[n("option-content",{attrs:{option:e}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===t.data.length&&!t.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[t._v(t._s(t.t("el.transfer.noData")))])],1),t.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[t._t("default")],2):t._e()])},Rp=[];Np._withStripped=!0;var Pp={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Ni.a,ElCheckbox:Br.a,ElInput:m.a,OptionContent:{props:{option:Object},render:function(t){var e=function t(e){return"ElTransferPanel"===e.$options.componentName?e:e.$parent?t(e.$parent):e},n=e(this),r=n.$parent||n;return n.renderContent?n.renderContent(t,this.option):r.$scopedSlots.default?r.$scopedSlots.default({option:this.option}):t("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(t,e){if(this.updateAllChecked(),this.checkChangeByUser){var n=t.concat(e).filter((function(n){return-1===t.indexOf(n)||-1===e.indexOf(n)}));this.$emit("checked-change",t,n)}else this.$emit("checked-change",t),this.checkChangeByUser=!0},data:function(){var t=this,e=[],n=this.filteredData.map((function(e){return e[t.keyProp]}));this.checked.forEach((function(t){n.indexOf(t)>-1&&e.push(t)})),this.checkChangeByUser=!1,this.checked=e},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(t,e){var n=this;if(!e||t.length!==e.length||!t.every((function(t){return e.indexOf(t)>-1}))){var r=[],i=this.checkableData.map((function(t){return t[n.keyProp]}));t.forEach((function(t){i.indexOf(t)>-1&&r.push(t)})),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var t=this;return this.data.filter((function(e){if("function"===typeof t.filterMethod)return t.filterMethod(t.query,e);var n=e[t.labelProp]||e[t.keyProp].toString();return n.toLowerCase().indexOf(t.query.toLowerCase())>-1}))},checkableData:function(){var t=this;return this.filteredData.filter((function(e){return!e[t.disabledProp]}))},checkedSummary:function(){var t=this.checked.length,e=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?t>0?i.replace(/\${checked}/g,t).replace(/\${total}/g,e):r.replace(/\${total}/g,e):t+"/"+e},isIndeterminate:function(){var t=this.checked.length;return t>0&&t<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var t=this,e=this.checkableData.map((function(e){return e[t.keyProp]}));this.allChecked=e.length>0&&e.every((function(e){return t.checked.indexOf(e)>-1}))},handleAllCheckedChange:function(t){var e=this;this.checked=t?this.checkableData.map((function(t){return t[e.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Ip=Pp,Bp=s(Ip,Np,Rp,!1,null,null,null);Bp.options.__file="packages/transfer/src/transfer-panel.vue";var Lp=Bp.exports,zp={name:"ElTransfer",mixins:[O.a,v.a,M.a],components:{TransferPanel:Lp,ElButton:at.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var t=this.props.key;return this.data.reduce((function(e,n){return(e[n[t]]=n)&&e}),{})},sourceData:function(){var t=this;return this.data.filter((function(e){return-1===t.value.indexOf(e[t.props.key])}))},targetData:function(){var t=this;return"original"===this.targetOrder?this.data.filter((function(e){return t.value.indexOf(e[t.props.key])>-1})):this.value.reduce((function(e,n){var r=t.dataObj[n];return r&&e.push(r),e}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(t,e){this.leftChecked=t,void 0!==e&&this.$emit("left-check-change",t,e)},onTargetCheckedChange:function(t,e){this.rightChecked=t,void 0!==e&&this.$emit("right-check-change",t,e)},addToLeft:function(){var t=this.value.slice();this.rightChecked.forEach((function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)})),this.$emit("input",t),this.$emit("change",t,"left",this.rightChecked)},addToRight:function(){var t=this,e=this.value.slice(),n=[],r=this.props.key;this.data.forEach((function(e){var i=e[r];t.leftChecked.indexOf(i)>-1&&-1===t.value.indexOf(i)&&n.push(i)})),e="unshift"===this.targetOrder?n.concat(e):e.concat(n),this.$emit("input",e),this.$emit("change",e,"right",this.leftChecked)},clearQuery:function(t){"left"===t?this.$refs.leftPanel.query="":"right"===t&&(this.$refs.rightPanel.query="")}}},jp=zp,Fp=s(jp,Ap,Dp,!1,null,null,null);Fp.options.__file="packages/transfer/src/main.vue";var $p=Fp.exports;$p.install=function(t){t.component($p.name,$p)};var Hp=$p,Vp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"el-container",class:{"is-vertical":t.isVertical}},[t._t("default")],2)},Up=[];Vp._withStripped=!0;var qp={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(t){var e=t.componentOptions&&t.componentOptions.tag;return"el-header"===e||"el-footer"===e})))}}},Wp=qp,Kp=s(Wp,Vp,Up,!1,null,null,null);Kp.options.__file="packages/container/src/main.vue";var Gp=Kp.exports;Gp.install=function(t){t.component(Gp.name,Gp)};var Yp=Gp,Xp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"el-header",style:{height:t.height}},[t._t("default")],2)},Zp=[];Xp._withStripped=!0;var Jp={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},Qp=Jp,tm=s(Qp,Xp,Zp,!1,null,null,null);tm.options.__file="packages/header/src/main.vue";var em=tm.exports;em.install=function(t){t.component(em.name,em)};var nm=em,rm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("aside",{staticClass:"el-aside",style:{width:t.width}},[t._t("default")],2)},im=[];rm._withStripped=!0;var om={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},am=om,sm=s(am,rm,im,!1,null,null,null);sm.options.__file="packages/aside/src/main.vue";var um=sm.exports;um.install=function(t){t.component(um.name,um)};var cm=um,lm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{staticClass:"el-main"},[t._t("default")],2)},fm=[];lm._withStripped=!0;var dm={name:"ElMain",componentName:"ElMain"},hm=dm,pm=s(hm,lm,fm,!1,null,null,null);pm.options.__file="packages/main/src/main.vue";var mm=pm.exports;mm.install=function(t){t.component(mm.name,mm)};var gm=mm,vm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"el-footer",style:{height:t.height}},[t._t("default")],2)},bm=[];vm._withStripped=!0;var ym={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},wm=ym,_m=s(wm,vm,bm,!1,null,null,null);_m.options.__file="packages/footer/src/main.vue";var xm=_m.exports;xm.install=function(t){t.component(xm.name,xm)};var Cm,Sm,km=xm,Mm={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var t=arguments[0],e=this.reverse,n={"el-timeline":!0,"is-reverse":e},r=this.$slots.default||[];return e&&(r=r.reverse()),t("ul",{class:n},[r])}},Em=Mm,Om=s(Em,Cm,Sm,!1,null,null,null);Om.options.__file="packages/timeline/src/main.vue";var Tm=Om.exports;Tm.install=function(t){t.component(Tm.name,Tm)};var Am=Tm,Dm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),t.$slots.dot?t._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(t.size||""),"el-timeline-item__node--"+(t.type||"")],style:{backgroundColor:t.color}},[t.icon?n("i",{staticClass:"el-timeline-item__icon",class:t.icon}):t._e()]),t.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[t._t("dot")],2):t._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[t.hideTimestamp||"top"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[t._v("\n "+t._s(t.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[t._t("default")],2),t.hideTimestamp||"bottom"!==t.placement?t._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[t._v("\n "+t._s(t.timestamp)+"\n ")])])])},Nm=[];Dm._withStripped=!0;var Rm={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Pm=Rm,Im=s(Pm,Dm,Nm,!1,null,null,null);Im.options.__file="packages/timeline/src/item.vue";var Bm=Im.exports;Bm.install=function(t){t.component(Bm.name,Bm)};var Lm=Bm,zm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._b({class:["el-link",t.type?"el-link--"+t.type:"",t.disabled&&"is-disabled",t.underline&&!t.disabled&&"is-underline"],attrs:{href:t.disabled?null:t.href},on:{click:t.handleClick}},"a",t.$attrs,!1),[t.icon?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",{staticClass:"el-link--inner"},[t._t("default")],2):t._e(),t.$slots.icon?[t.$slots.icon?t._t("icon"):t._e()]:t._e()],2)},jm=[];zm._withStripped=!0;var Fm={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(t){this.disabled||this.href||this.$emit("click",t)}}},$m=Fm,Hm=s($m,zm,jm,!1,null,null,null);Hm.options.__file="packages/link/src/main.vue";var Vm=Hm.exports;Vm.install=function(t){t.component(Vm.name,Vm)};var Um=Vm,qm=function(t,e){var n=e._c;return n("div",e._g(e._b({class:[e.data.staticClass,"el-divider","el-divider--"+e.props.direction]},"div",e.data.attrs,!1),e.listeners),[e.slots().default&&"vertical"!==e.props.direction?n("div",{class:["el-divider__text","is-"+e.props.contentPosition]},[e._t("default")],2):e._e()])},Wm=[];qm._withStripped=!0;var Km={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(t){return-1!==["horizontal","vertical"].indexOf(t)}},contentPosition:{type:String,default:"center",validator:function(t){return-1!==["left","center","right"].indexOf(t)}}}},Gm=Km,Ym=s(Gm,qm,Wm,!0,null,null,null);Ym.options.__file="packages/divider/src/main.vue";var Xm=Ym.exports;Xm.install=function(t){t.component(Xm.name,Xm)};var Zm=Xm,Jm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-image"},[t.loading?t._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):t.error?t._t("error",[n("div",{staticClass:"el-image__error"},[t._v(t._s(t.t("el.image.error")))])]):n("img",t._g(t._b({staticClass:"el-image__inner",class:{"el-image__inner--center":t.alignCenter,"el-image__preview":t.preview},style:t.imageStyle,attrs:{src:t.src},on:{click:t.clickHandler}},"img",t.$attrs,!1),t.$listeners)),t.preview?[t.showViewer?n("image-viewer",{attrs:{"z-index":t.zIndex,"initial-index":t.imageIndex,"on-close":t.closeViewer,"url-list":t.previewSrcList}}):t._e()]:t._e()],2)},Qm=[];Jm._withStripped=!0;var tg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":t.zIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask"}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:t.hide}},[n("i",{staticClass:"el-icon-circle-close"})]),t.isSingle?t._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){t.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){t.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:t.mode.icon,on:{click:t.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){t.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){t.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},t._l(t.urlList,(function(e,r){return r===t.index?n("img",{key:e,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()})),0)],2)])},eg=[];tg._withStripped=!0;var ng=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rg={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},ig=Object(b["isFirefox"])()?"DOMMouseScroll":"mousewheel",og={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:rg.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var t=this.transform,e=t.scale,n=t.deg,r=t.offsetX,i=t.offsetY,o=t.enableTransition,a={transform:"scale("+e+") rotate("+n+"deg)",transition:o?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===rg.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg:function(t){var e=this;this.$nextTick((function(t){var n=e.$refs.img[0];n.complete||(e.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var t=this;this._keyDownHandler=Object(b["rafThrottle"])((function(e){var n=e.keyCode;switch(n){case 27:t.hide();break;case 32:t.toggleMode();break;case 37:t.prev();break;case 38:t.handleActions("zoomIn");break;case 39:t.next();break;case 40:t.handleActions("zoomOut");break}})),this._mouseWheelHandler=Object(b["rafThrottle"])((function(e){var n=e.wheelDelta?e.wheelDelta:-e.detail;n>0?t.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):t.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(zt["on"])(document,"keydown",this._keyDownHandler),Object(zt["on"])(document,ig,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(zt["off"])(document,"keydown",this._keyDownHandler),Object(zt["off"])(document,ig,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(t){this.loading=!1},handleImgError:function(t){this.loading=!1,t.target.alt="加载失败"},handleMouseDown:function(t){var e=this;if(!this.loading&&0===t.button){var n=this.transform,r=n.offsetX,i=n.offsetY,o=t.pageX,a=t.pageY;this._dragHandler=Object(b["rafThrottle"])((function(t){e.transform.offsetX=r+t.pageX-o,e.transform.offsetY=i+t.pageY-a})),Object(zt["on"])(document,"mousemove",this._dragHandler),Object(zt["on"])(document,"mouseup",(function(t){Object(zt["off"])(document,"mousemove",e._dragHandler)})),t.preventDefault()}},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var t=Object.keys(rg),e=Object.values(rg),n=e.indexOf(this.mode),r=(n+1)%t.length;this.mode=rg[t[r]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var t=this.urlList.length;this.index=(this.index-1+t)%t}},next:function(){if(!this.isLast||this.infinite){var t=this.urlList.length;this.index=(this.index+1)%t}},handleActions:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=ng({zoomRate:.2,rotateDeg:90,enableTransition:!0},e),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(t){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+r).toFixed(3));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i;break}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.$refs["el-image-viewer__wrapper"].focus()}},ag=og,sg=s(ag,tg,eg,!1,null,null,null);sg.options.__file="packages/image/src/image-viewer.vue";var ug=sg.exports,cg=function(){return void 0!==document.documentElement.style.objectFit},lg={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},fg="",dg={name:"ElImage",mixins:[v.a],inheritAttrs:!1,components:{ImageViewer:ug},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var t=this.fit;return!this.$isServer&&t?cg()?{"object-fit":t}:this.getImageStyle(t):{}},alignCenter:function(){return!this.$isServer&&!cg()&&this.fit!==lg.FILL},preview:function(){var t=this.previewSrcList;return Array.isArray(t)&&t.length>0},imageIndex:function(){var t=0,e=this.previewSrcList.indexOf(this.src);return e>=0&&(t=e),t}},watch:{src:function(t){this.show&&this.loadImage()},show:function(t){t&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var t=this;if(!this.$isServer){this.loading=!0,this.error=!1;var e=new Image;e.onload=function(n){return t.handleLoad(n,e)},e.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var r=t.$attrs[n];e.setAttribute(n,r)})),e.src=this.src}},handleLoad:function(t,e){this.imageWidth=e.width,this.imageHeight=e.height,this.loading=!1,this.error=!1},handleError:function(t){this.loading=!1,this.error=!0,this.$emit("error",t)},handleLazyLoad:function(){Object(zt["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var t=this.scrollContainer,e=null;e=Object(hd["isHtmlElement"])(t)?t:Object(hd["isString"])(t)?document.querySelector(t):Object(zt["getScrollContainer"])(this.$el),e&&(this._scrollContainer=e,this._lazyLoadHandler=Bd()(200,this.handleLazyLoad),Object(zt["on"])(e,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var t=this._scrollContainer,e=this._lazyLoadHandler;!this.$isServer&&t&&e&&(Object(zt["off"])(t,"scroll",e),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(t){var e=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!e||!n||!i||!o)return{};var a=e/n<1;if(t===lg.SCALE_DOWN){var s=e<i&&n<o;t=s?lg.NONE:lg.CONTAIN}switch(t){case lg.NONE:return{width:"auto",height:"auto"};case lg.CONTAIN:return a?{width:"auto"}:{height:"auto"};case lg.COVER:return a?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(fg=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=fg,this.showViewer=!1}}},hg=dg,pg=s(hg,Jm,Qm,!1,null,null,null);pg.options.__file="packages/image/src/main.vue";var mg=pg.exports;mg.install=function(t){t.component(mg.name,mg)};var gg=mg,vg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[t._v("\n "+t._s(t.i18nDate)+"\n ")]),0===t.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("prev-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("today")}}},[t._v("\n "+t._s(t.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(e){t.selectDate("next-month")}}},[t._v("\n "+t._s(t.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):t._e()]),0===t.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:t.date,"selected-day":t.realSelectedDay,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},t._l(t.validatedRange,(function(e,r){return n("date-table",{key:r,attrs:{date:e[0],"selected-day":t.realSelectedDay,range:e,"hide-header":0!==r,"first-day-of-week":t.realFirstDayOfWeek},on:{pick:t.pickDay}})})),1)])},bg=[];vg._withStripped=!0;var yg,wg,_g=n(20),xg=n.n(_g),Cg={props:{selectedDay:String,range:{type:Array,validator:function(t){if(!t||!t.length)return!0;var e=t[0],n=t[1];return Object(ao["validateRangeInOneMonth"])(e,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],data:function(){return{WEEK_DAYS:Object(ao["getI18nSettings"])().dayNames}},methods:{toNestedArr:function(t){return Object(ao["range"])(t.length/7).map((function(e,n){var r=7*n;return t.slice(r,r+7)}))},getFormateDate:function(t,e){if(!t||-1===["prev","current","next"].indexOf(e))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===e?n=this.prevMonthDatePrefix:"next"===e&&(n=this.nextMonthDatePrefix),t=("00"+t).slice(-2),n+"-"+t},getCellClass:function(t){var e=t.text,n=t.type,r=[n];if("current"===n){var i=this.getFormateDate(e,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(t){var e=t.text,n=t.type,r=this.getFormateDate(e,n);this.$emit("pick",r)},cellRenderProxy:function(t){var e=t.text,n=t.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[e]);var o=this.getFormateDate(e,n),a=new Date(o),s={isSelected:this.selectedDay===o,type:n+"-month",day:o};return i({date:a,data:s})}},computed:{prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),xg.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return xg.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return xg.a.format(t,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var t=[];if(this.isInRange){var e=this.range,n=e[0],r=e[1],i=Object(ao["range"])(r.getDate()-n.getDate()+1).map((function(t,e){return{text:n.getDate()+e,type:"current"}})),o=i.length%7;o=0===o?0:7-o;var a=Object(ao["range"])(o).map((function(t,e){return{text:e+1,type:"next"}}));t=i.concat(a)}else{var s=this.date,u=Object(ao["getFirstDayOfMonth"])(s);u=0===u?7:u;var c="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,l=Object(ao["getPrevMonthLastDays"])(s,u-c).map((function(t){return{text:t,type:"prev"}})),f=Object(ao["getMonthDays"])(s).map((function(t){return{text:t,type:"current"}}));t=[].concat(l,f);var d=Object(ao["range"])(42-t.length).map((function(t,e){return{text:e+1,type:"next"}}));t=t.concat(d)}return this.toNestedArr(t)},weekDays:function(){var t=this.firstDayOfWeek,e=this.WEEK_DAYS;return"number"!==typeof t||0===t?e.slice():e.slice(t).concat(e.slice(0,t))}},render:function(){var t=this,e=arguments[0],n=this.hideHeader?null:e("thead",[this.weekDays.map((function(t){return e("th",{key:t},[t])}))]);return e("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,e("tbody",[this.rows.map((function(n,r){return e("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&t.hideHeader},key:r},[n.map((function(n,r){return e("td",{key:r,class:t.getCellClass(n),on:{click:t.pickDay.bind(t,n)}},[e("div",{class:"el-calendar-day"},[t.cellRenderProxy(n)])])}))])}))])])}},Sg=Cg,kg=s(Sg,yg,wg,!1,null,null,null);kg.options.__file="packages/calendar/src/date-table.vue";var Mg=kg.exports,Eg=["prev-month","today","next-month"],Og=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tg=864e5,Ag={name:"ElCalendar",mixins:[v.a],components:{DateTable:Mg,ElButton:at.a,ElButtonGroup:ut.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(t){return!Array.isArray(t)||2===t.length&&t.every((function(t){return"string"===typeof t||"number"===typeof t||t instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(t){this.realSelectedDay=t},selectDate:function(t){if(-1===Eg.indexOf(t))throw new Error("invalid type "+t);var e="";e="prev-month"===t?this.prevMonthDatePrefix+"-01":"next-month"===t?this.nextMonthDatePrefix+"-01":this.formatedToday,e!==this.formatedDate&&this.pickDay(e)},toDate:function(t){if(!t)throw new Error("invalid val");return t instanceof Date?t:new Date(t)},rangeValidator:function(t,e){var n=this.realFirstDayOfWeek,r=e?n:0===n?6:n-1,i=(e?"start":"end")+" of range should be "+Og[r]+".";return t.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var t=new Date(this.date.getTime());return t.setDate(0),xg.a.format(t,"yyyy-MM")},curMonthDatePrefix:function(){return xg.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var t=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return xg.a.format(t,"yyyy-MM")},formatedDate:function(){return xg.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var t=this.date.getFullYear(),e=this.date.getMonth()+1;return t+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+e)},formatedToday:function(){return xg.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(t){this.selectedDay=t;var e=new Date(t);this.$emit("input",e)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var t=this.selectedDay.split("-");return new Date(t[0],t[1]-1,t[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var t=this,e=this.range;if(!e)return[];if(e=e.reduce((function(e,n,r){var i=t.toDate(n);return t.rangeValidator(i,0===r)&&(e=e.concat(i)),e}),[]),2===e.length){var n=e,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(ao["validateRangeInOneMonth"])(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-Tg);if(!Object(ao["validateRangeInOneMonth"])(a,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([r,s]);var u=this.realFirstDayOfWeek,c=a.getDay(),l=0;return c!==u&&(0===u?l=7-c:(l=u-c,l=l>0?l:7+l)),a=this.toDate(a.getTime()+l*Tg),a.getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Dg=Ag,Ng=s(Dg,vg,bg,!1,null,null,null);Ng.options.__file="packages/calendar/src/main.vue";var Rg=Ng.exports;Rg.install=function(t){t.component(Rg.name,Rg)};var Pg=Rg,Ig=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-fade-in"}},[t.visible?n("div",{staticClass:"el-backtop",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):t._e()])},Bg=[];Ig._withStripped=!0;var Lg=function(t){return Math.pow(t,3)},zg=function(t){return t<.5?Lg(2*t)/2:1-Lg(2*(1-t))/2},jg={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Bd()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick:function(t){this.scrollToTop(),this.$emit("click",t)},scrollToTop:function(){var t=this.el,e=Date.now(),n=t.scrollTop,r=window.requestAnimationFrame||function(t){return setTimeout(t,16)},i=function i(){var o=(Date.now()-e)/500;o<1?(t.scrollTop=n*(1-zg(o)),r(i)):t.scrollTop=0};r(i)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Fg=jg,$g=s(Fg,Ig,Bg,!1,null,null,null);$g.options.__file="packages/backtop/src/main.vue";var Hg=$g.exports;Hg.install=function(t){t.component(Hg.name,Hg)};var Vg=Hg,Ug=function(t,e){if(t===window&&(t=document.documentElement),1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n},qg=function(t){return Object.keys(t||{}).map((function(e){return[e,t[e]]}))},Wg=function(t,e){return t===window||t===document?document.documentElement[e]:t[e]},Kg=function(t){return Wg(t,"offsetHeight")},Gg=function(t){return Wg(t,"clientHeight")},Yg="ElInfiniteScroll",Xg={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Zg=function(t,e){return Object(hd["isHtmlElement"])(t)?qg(Xg).reduce((function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,u=t.getAttribute("infinite-scroll-"+i);switch(u=Object(hd["isUndefined"])(e[u])?u:e[u],a){case Number:u=Number(u),u=Number.isNaN(u)?s:u;break;case Boolean:u=Object(hd["isDefined"])(u)?"false"!==u&&Boolean(u):s;break;default:u=a(u)}return n[i]=u,n}),{}):{}},Jg=function(t){return t.getBoundingClientRect().top},Qg=function(t){var e=this[Yg],n=e.el,r=e.vm,i=e.container,o=e.observer,a=Zg(n,r),s=a.distance,u=a.disabled;if(!u){var c=i.getBoundingClientRect();if(c.width||c.height){var l=!1;if(i===n){var f=i.scrollTop+Gg(i);l=i.scrollHeight-f<=s}else{var d=Kg(n)+Jg(n)-Jg(i),h=Kg(i),p=Number.parseFloat(Ug(i,"borderBottomWidth"));l=d-h+p<=s}l&&Object(hd["isFunction"])(t)?t.call(r):o&&(o.disconnect(),this[Yg].observer=null)}}},tv={name:"InfiniteScroll",inserted:function(t,e,n){var r=e.value,i=n.context,o=Object(zt["getScrollContainer"])(t,!0),a=Zg(t,i),s=a.delay,u=a.immediate,c=L()(s,Qg.bind(t,r));if(t[Yg]={el:t,vm:i,container:o,onScroll:c},o&&(o.addEventListener("scroll",c),u)){var l=t[Yg].observer=new MutationObserver(c);l.observe(o,{childList:!0,subtree:!0}),c()}},unbind:function(t){var e=t[Yg],n=e.container,r=e.onScroll;n&&n.removeEventListener("scroll",r)},install:function(t){t.directive(tv.name,tv)}},ev=tv,nv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(e){t.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[t._t("title",[t._v(t._s(t.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[t._t("content",[t._v(t._s(t.content))])],2)])},rv=[];nv._withStripped=!0;var iv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(er["t"])("el.pageHeader.title")}},content:String}},ov=iv,av=s(ov,nv,rv,!1,null,null,null);av.options.__file="packages/page-header/src/main.vue";var sv=av.exports;sv.install=function(t){t.component(sv.name,sv)};var uv=sv,cv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-cascader-panel",t.border&&"is-bordered"],on:{keydown:t.handleKeyDown}},t._l(t.menus,(function(t,e){return n("cascader-menu",{key:e,ref:"menu",refInFor:!0,attrs:{index:e,nodes:t}})})),1)},lv=[];cv._withStripped=!0;var fv,dv,hv=n(43),pv=n.n(hv),mv=function(t){return t.stopPropagation()},gv={inject:["panel"],components:{ElCheckbox:Br.a,ElRadio:pv.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var t=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(e){return t.isInPath(e)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var t=this,e=this.panel,n=this.node,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?e.lazyLoad(n,(function(){var e=t.isLeaf;if(e||t.handleExpand(),o){var r=!!e&&n.checked;t.handleMultiCheckChange(r)}})):e.handleExpand(n))},handleCheckChange:function(){var t=this.panel,e=this.value,n=this.node;t.handleCheckChange(e),t.handleExpand(n)},handleMultiCheckChange:function(t){this.node.doCheck(t),this.panel.calculateMultiCheckedValue()},isInPath:function(t){var e=this.node,n=t[e.level-1]||{};return n.uid===e.uid},renderPrefix:function(t){var e=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(t):i?this.renderRadio(t):e&&n?this.renderCheckIcon(t):null},renderPostfix:function(t){var e=this.node,n=this.isLeaf;return e.loading?this.renderLoadingIcon(t):n?null:this.renderExpandIcon(t)},renderCheckbox:function(t){var e=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=mv),t("el-checkbox",Jl()([{attrs:{value:e.checked,indeterminate:e.indeterminate,disabled:r}},i]))},renderRadio:function(t){var e=this.checkedValue,n=this.value,r=this.isDisabled;return Object(b["isEqual"])(n,e)&&(n=e),t("el-radio",{attrs:{value:e,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:mv}},[t("span")])},renderCheckIcon:function(t){return t("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(t){return t("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(t){return t("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(t){var e=this.panel,n=this.node,r=e.renderLabelFn,i=r?r({node:n,data:n.data}):null;return t("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(t){var e=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,c=s.expandTrigger,l=s.checkStrictly,f=s.multiple,d=!l&&a,h={on:{}};return"click"===c?h.on.click=this.handleExpand:(h.on.mouseenter=function(t){e.handleExpand(),e.$emit("expand",t)},h.on.focus=function(t){e.handleExpand(),e.$emit("expand",t)}),!o||a||l||f||(h.on.click=this.handleCheckChange),t("li",Jl()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":l,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},h]),[this.renderPrefix(t),this.renderContent(t),this.renderPostfix(t)])}},vv=gv,bv=s(vv,fv,dv,!1,null,null,null);bv.options.__file="packages/cascader-panel/src/cascader-node.vue";var yv,wv,_v=bv.exports,xv={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:q.a,CascaderNode:_v},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(b["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(t){this.activeNode=t.target},handleMouseMove:function(t){var e=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(e&&r)if(e.contains(t.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=t.clientX-o,s=this.$el,u=s.offsetWidth,c=s.offsetHeight,l=e.offsetTop,f=l+e.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+l+" L"+u+" 0 V"+l+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+u+" "+c+" V"+f+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var t=this.$refs.hoverZone;t&&(t.innerHTML="")},renderEmptyText:function(t){return t("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(t){var e=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return t("cascader-node",Jl()([{key:n.uid,attrs:{node:n,"node-id":e+"-"+i,"aria-haspopup":o,"aria-owns":o?e:null}},r]))}));return[].concat(i,[n?t("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(t){var e=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),t("el-scrollbar",Jl()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":e}},class:"el-cascader-menu"},r]),[e?this.renderEmptyText(t):this.renderNodeList(t)])}},Cv=xv,Sv=s(Cv,yv,wv,!1,null,null,null);Sv.options.__file="packages/cascader-panel/src/cascader-menu.vue";var kv=Sv.exports,Mv=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function Ev(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ov=0,Tv=function(){function t(e,n,r){Ev(this,t),this.data=e,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Ov++,this.initState(),this.initChildren()}return t.prototype.initState=function(){var t=this.config,e=t.value,n=t.label;this.value=this.data[e],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(t){return t.value})),this.pathLabels=this.pathNodes.map((function(t){return t.label})),this.loading=!1,this.loaded=!1},t.prototype.initChildren=function(){var e=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new t(r,n,e)}))},t.prototype.calculatePathNodes=function(){var t=[this],e=this.parent;while(e)t.unshift(e),e=e.parent;return t},t.prototype.getPath=function(){return this.path},t.prototype.getValue=function(){return this.value},t.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},t.prototype.getText=function(t,e){return t?this.pathLabels.join(e):this.label},t.prototype.isSameNode=function(t){var e=this.getValueByOption();return this.config.multiple&&Array.isArray(t)?t.some((function(t){return Object(b["isEqual"])(t,e)})):Object(b["isEqual"])(t,e)},t.prototype.broadcast=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="onParent"+Object(b["capitalize"])(t);this.children.forEach((function(e){e&&(e.broadcast.apply(e,[t].concat(n)),e[i]&&e[i].apply(e,n))}))},t.prototype.emit=function(t){var e=this.parent,n="onChild"+Object(b["capitalize"])(t);if(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e[n]&&e[n].apply(e,i),e.emit.apply(e,[t].concat(i))}},t.prototype.onParentCheck=function(t){this.isDisabled||this.setCheckState(t)},t.prototype.onChildCheck=function(){var t=this.children,e=t.filter((function(t){return!t.isDisabled})),n=!!e.length&&e.every((function(t){return t.checked}));this.setCheckState(n)},t.prototype.setCheckState=function(t){var e=this.children.length,n=this.children.reduce((function(t,e){var n=e.checked?1:e.indeterminate?.5:0;return t+n}),0);this.checked=t,this.indeterminate=n!==e&&n>0},t.prototype.syncCheckState=function(t){var e=this.getValueByOption(),n=this.isSameNode(t,e);this.doCheck(n)},t.prototype.doCheck=function(t){this.checked!==t&&(this.config.checkStrictly?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check")))},Mv(t,[{key:"isDisabled",get:function(){var t=this.data,e=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return t[r]||!i&&e&&e.isDisabled}},{key:"isLeaf",get:function(){var t=this.data,e=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(Me["isDef"])(t[a])?t[a]:!!e&&!r.length;return this.hasChildren=!s,s}return!n}}]),t}(),Av=Tv;function Dv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Nv=function t(e,n){return e.reduce((function(e,r){return r.isLeaf?e.push(r):(!n&&e.push(r),e=e.concat(t(r.children,n))),e}),[])},Rv=function(){function t(e,n){Dv(this,t),this.config=n,this.initNodes(e)}return t.prototype.initNodes=function(t){var e=this;t=Object(b["coerceTruthyValueToArray"])(t),this.nodes=t.map((function(t){return new Av(t,e.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},t.prototype.appendNode=function(t,e){var n=new Av(t,this.config,e),r=e?e.children:this.nodes;r.push(n)},t.prototype.appendNodes=function(t,e){var n=this;t=Object(b["coerceTruthyValueToArray"])(t),t.forEach((function(t){return n.appendNode(t,e)}))},t.prototype.getNodes=function(){return this.nodes},t.prototype.getFlattedNodes=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?this.leafNodes:this.flattedNodes;return e?n:Nv(this.nodes,t)},t.prototype.getNodeByValue=function(t){if(t){var e=this.getFlattedNodes(!1,!this.config.lazy).filter((function(e){return Object(b["valueEquals"])(e.path,t)||e.value===t}));return e&&e.length?e[0]:null}return null},t}(),Pv=Rv,Iv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Bv=wh.a.keys,Lv={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:b["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},zv=function(t){return!t.getAttribute("aria-owns")},jv=function(t,e){var n=t.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,t);return r[i+e]||null}return null},Fv=function(t,e){if(t){var n=t.id.split("-");return Number(n[n.length-2])}},$v=function(t){t&&(t.focus(),!zv(t)&&t.click())},Hv=function(t){if(t){var e=t.querySelector("input");e?e.click():zv(t)&&t.click()}},Vv={name:"ElCascaderPanel",components:{CascaderMenu:kv},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return ke()(Iv({},Lv),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(t){Object(b["isEqual"])(t,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",t),this.$emit("change",t))}},mounted:function(){Object(b["isEmpty"])(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var t=this.config,e=this.options;t.lazy&&Object(b["isEmpty"])(e)?this.lazyLoad():(this.store=new Pv(e,t),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var t=this.value,e=this.checkedValue;Object(b["isEqual"])(t,e)||(this.checkedValue=t,this.syncMenuState())},syncMenuState:function(){var t=this.multiple,e=this.checkStrictly;this.syncActivePath(),t&&this.syncMultiCheckState(),e&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var t=this,e=this.getFlattedNodes(this.leafOnly);e.forEach((function(e){e.syncCheckState(t.checkedValue)}))},syncActivePath:function(){var t=this,e=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(b["isEmpty"])(r))if(Object(b["isEmpty"])(i))this.activePath=[],this.menus=[e.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var u=r.map((function(e){return t.getNodeByValue(e.getValue())}));this.expandNodes(u)}},expandNodes:function(t){var e=this;t.forEach((function(t){return e.handleExpand(t,!0)}))},calculateCheckedNodePaths:function(){var t=this,e=this.checkedValue,n=this.multiple,r=n?Object(b["coerceTruthyValueToArray"])(e):[e];this.checkedNodePaths=r.map((function(e){var n=t.getNodeByValue(e);return n?n.pathNodes:[]}))},handleKeyDown:function(t){var e=t.target,n=t.keyCode;switch(n){case Bv.up:var r=jv(e,-1);$v(r);break;case Bv.down:var i=jv(e,1);$v(i);break;case Bv.left:var o=this.$refs.menu[Fv(e)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');$v(a)}break;case Bv.right:var s=this.$refs.menu[Fv(e)+1];if(s){var u=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');$v(u)}break;case Bv.enter:Hv(e);break;case Bv.esc:case Bv.tab:this.$emit("close");break;default:return}},handleExpand:function(t,e){var n=this.activePath,r=t.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(t.isLeaf||(i.push(t),o.push(t.children)),this.activePath=i,this.menus=o,!e){var a=i.map((function(t){return t.getValue()})),s=n.map((function(t){return t.getValue()}));Object(b["valueEquals"])(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(t){this.checkedValue=t},lazyLoad:function(t,e){var n=this,r=this.config;t||(t=t||{root:!0,level:0},this.store=new Pv([],r),this.menus=[this.store.getNodes()]),t.loading=!0;var i=function(r){var i=t.root?null:t;if(r&&r.length&&n.store.appendNodes(r,i),t.loading=!1,t.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(t){return t[a]===o})).length>0){var u=n.store.getNodeByValue(o);u.data[s]||n.lazyLoad(u,(function(){n.handleExpand(u)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}e&&e(r)};r.lazyLoad(t,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(t){return t.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var t=this.$refs.menu||[];t.forEach((function(t){var e=t.$el;if(e){var n=e.querySelector(".el-scrollbar__wrap"),r=e.querySelector(".el-cascader-node.is-active")||e.querySelector(".el-cascader-node.in-active-path");ir()(n,r)}}))}},getNodeByValue:function(t){return this.store.getNodeByValue(t)},getFlattedNodes:function(t){var e=!this.config.lazy;return this.store.getFlattedNodes(t,e)},getCheckedNodes:function(t){var e=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(t);return r.filter((function(t){return t.checked}))}return Object(b["isEmpty"])(e)?[]:[this.getNodeByValue(e)]},clearCheckedNodes:function(){var t=this.config,e=this.leafOnly,n=t.multiple,r=t.emitPath;n?(this.getCheckedNodes(e).filter((function(t){return!t.isDisabled})).forEach((function(t){return t.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Uv=Vv,qv=s(Uv,cv,lv,!1,null,null,null);qv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Wv=qv.exports;Wv.install=function(t){t.component(Wv.name,Wv)};var Kv,Gv,Yv=Wv,Xv={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(t){return"string"===typeof t?["large","medium","small"].includes(t):"number"===typeof t}},shape:{type:String,default:"circle",validator:function(t){return["circle","square"].includes(t)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var t=this.size,e=this.icon,n=this.shape,r=["el-avatar"];return t&&"string"===typeof t&&r.push("el-avatar--"+t),e&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var t=this.error,e=t?t():void 0;!1!==e&&(this.isImageExist=!1)},renderAvatar:function(){var t=this.$createElement,e=this.icon,n=this.src,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?t("img",{attrs:{src:n,alt:r,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):e?t("i",{class:e}):this.$slots.default}},render:function(){var t=arguments[0],e=this.avatarClass,n=this.size,r="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return t("span",{class:e,style:r},[this.renderAvatar()])}},Zv=Xv,Jv=s(Zv,Kv,Gv,!1,null,null,null);Jv.options.__file="packages/avatar/src/main.vue";var Qv=Jv.exports;Qv.install=function(t){t.component(Qv.name,Qv)};var tb=Qv,eb=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:t.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick(e)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[t.direction,t.customClass],style:t.isHorizontal?"width: "+t.size:"height: "+t.size,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":t.title,role:"dialog",tabindex:"-1"}},[t.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[t._t("title",[n("span",{attrs:{role:"heading",tabindex:"0",title:t.title}},[t._v(t._s(t.title))])]),t.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(t.title||"drawer"),type:"button"},on:{click:t.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):t._e()],2):t._e(),t.rendered?n("section",{staticClass:"el-drawer__body"},[t._t("default")],2):t._e()])])])])},nb=[];eb._withStripped=!0;var rb={name:"ElDrawer",mixins:[S.a,O.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(t){return-1!==["ltr","rtl","ttb","btt"].indexOf(t)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:String,default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(t){var e=this;t?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement,this.$nextTick((function(){wh.a.focusFirstDescendant(e.$refs.drawer)}))):(this.closed||this.$emit("close"),this.$nextTick((function(){e.prevActiveElement&&e.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(t){!1!==t&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open())},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},ib=rb,ob=s(ib,eb,nb,!1,null,null,null);ob.options.__file="packages/drawer/src/main.vue";var ab=ob.exports;ab.install=function(t){t.component(ab.name,ab)};var sb=ab,ub=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",t._b({attrs:{trigger:"click"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"el-popover",t.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[t.hideIcon?t._e():n("i",{staticClass:"el-popconfirm__icon",class:t.icon,style:{color:t.iconColor}}),t._v("\n "+t._s(t.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:t.cancelButtonType},on:{click:t.cancel}},[t._v("\n "+t._s(t.cancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:t.confirmButtonType},on:{click:t.confirm}},[t._v("\n "+t._s(t.confirmButtonText)+"\n ")])],1)]),t._t("reference",null,{slot:"reference"})],2)},cb=[];ub._withStripped=!0;var lb=n(44),fb=n.n(lb),db={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String,default:Object(er["t"])("el.popconfirm.confirmButtonText")},cancelButtonText:{type:String,default:Object(er["t"])("el.popconfirm.cancelButtonText")},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:fb.a,ElButton:at.a},data:function(){return{visible:!1}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},hb=db,pb=s(hb,ub,cb,!1,null,null,null);pb.options.__file="packages/popconfirm/src/main.vue";var mb=pb.exports;mb.install=function(t){t.component(mb.name,mb)};var gb=mb,vb=[w,R,it,ht,wt,Et,qt,te,ce,ge,De,je,We,tn,un,mn,xn,Tn,Bn,lr,fr,br,kr,Nr,Yi,ro,Da,Va,ns,fs,hs,Vs,Xs,ru,bu,ju,Gu,Qu,Oc,Bc,dl,Ll,jl,Hl,xf,Tf,Bf,rd,ld,bd,kd,Nd,$d,Wd,th,sh,ph,Th,Tp,Hp,Yp,nm,cm,gm,km,Am,Lm,Um,Zm,gg,Pg,Vg,uv,Yv,tb,sb,gb,Kt.a],bb=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nr.a.use(e.locale),nr.a.i18n(e.i18n),vb.forEach((function(e){t.component(e.name,e)})),t.use(ev),t.use(Al.directive),t.prototype.$ELEMENT={size:e.size||"",zIndex:e.zIndex||2e3},t.prototype.$loading=Al.service,t.prototype.$msgbox=Bs,t.prototype.$alert=Bs.alert,t.prototype.$confirm=Bs.confirm,t.prototype.$prompt=Bs.prompt,t.prototype.$notify=Xc,t.prototype.$message=Xf};"undefined"!==typeof window&&window.Vue&&bb(window.Vue);e["default"]={version:"2.14.1",locale:nr.a.use,i18n:nr.a.i18n,install:bb,CollapseTransition:Kt.a,Loading:Al,Pagination:w,Dialog:R,Autocomplete:it,Dropdown:ht,DropdownMenu:wt,DropdownItem:Et,Menu:qt,Submenu:te,MenuItem:ce,MenuItemGroup:ge,Input:De,InputNumber:je,Radio:We,RadioGroup:tn,RadioButton:un,Checkbox:mn,CheckboxButton:xn,CheckboxGroup:Tn,Switch:Bn,Select:lr,Option:fr,OptionGroup:br,Button:kr,ButtonGroup:Nr,Table:Yi,TableColumn:ro,DatePicker:Da,TimeSelect:Va,TimePicker:ns,Popover:fs,Tooltip:hs,MessageBox:Bs,Breadcrumb:Vs,BreadcrumbItem:Xs,Form:ru,FormItem:bu,Tabs:ju,TabPane:Gu,Tag:Qu,Tree:Oc,Alert:Bc,Notification:Xc,Slider:dl,Icon:Ll,Row:jl,Col:Hl,Upload:xf,Progress:Tf,Spinner:Bf,Message:Xf,Badge:rd,Card:ld,Rate:bd,Steps:kd,Step:Nd,Carousel:$d,Scrollbar:Wd,CarouselItem:th,Collapse:sh,CollapseItem:ph,Cascader:Th,ColorPicker:Tp,Transfer:Hp,Container:Yp,Header:nm,Aside:cm,Main:gm,Footer:km,Timeline:Am,TimelineItem:Lm,Link:Um,Divider:Zm,Image:gg,Calendar:Pg,Backtop:Vg,InfiniteScroll:ev,PageHeader:uv,CascaderPanel:Yv,Avatar:tb,Drawer:sb,Popconfirm:gb}}])["default"]},"5e1a":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n("8707").Buffer,o=n(4);function a(t,e,n){t.copy(e,n)}t.exports=function(){function t(){r(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,n=""+e.data;while(e=e.next)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var e=i.allocUnsafe(t>>>0),n=this.head,r=0;while(n)a(n.data,e,r),r+=n.data.length,n=n.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})},"5e4c":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");function e(){t.add("contextmenu",(function(){console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")}))}e()})()},"5e7d":function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var i=n("cf35"),o=n("49ce");n("3fb5")(c,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||e.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n("4362"))},"5ee7":function(t,e,n){"use strict";e.readUInt32BE=function(t,e){var n=t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e];return n>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[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,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=t>>>r[u]&1;for(u=s;u<r.length;u++)a<<=1,a|=e>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,r=0;r<4;r++){var o=t>>>18-6*r&63,a=i[64*r+o];n<<=4,n|=a}for(r=0;r<4;r++){o=e>>>18-6*r&63,a=i[256+64*r+o];n<<=4,n|=a}return n>>>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,n=0;n<o.length;n++)e<<=1,e|=t>>>o[n]&1;return e>>>0},e.padSplit=function(t,e,n){var r=t.toString(2);while(r.length<e)r="0"+r;for(var i=[],o=0;o<e;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},"605d":function(t,e,n){var r=n("c6b6"),i=n("da84");t.exports="process"==r(i.process)},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),u=n("7b0b"),c=n("44ad"),l=Object.assign,f=Object.defineProperty;t.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||o(l({},e)).join("")!=i}))?function(t,e){var n=u(t),i=arguments.length,l=1,f=a.f,d=s.f;while(i>l){var h,p=c(arguments[l++]),m=f?o(p).concat(f(p)):o(p),g=m.length,v=0;while(g>v)h=m[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:l},6167:function(t,e,n){"use strict";var r,i;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t=window,e={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(t,n,r){this._reference=t.jquery?t[0]:t,this.state={};var i="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},e,r),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return"applyStyle"===t&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),f(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(e){var n=e.style.display,r=e.style.visibility;e.style.display="block",e.style.visibility="hidden";e.offsetWidth;var i=t.getComputedStyle(e),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:e.offsetWidth+a,height:e.offsetHeight+o};return e.style.display=n,e.style.visibility=r,s}function i(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function o(t){var e=Object.assign({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function a(t,e){var n,r=0;for(n in t){if(t[n]===e)return r;r++}return null}function s(e,n){var r=t.getComputedStyle(e,null);return r[n]}function u(e){var n=e.offsetParent;return n!==t.document.body&&n?n:t.document.documentElement}function c(e){var n=e.parentNode;return n?n===t.document?t.document.body.scrollTop||t.document.body.scrollLeft?t.document.body:t.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(e.parentNode):e}function l(e){return e!==t.document.body&&("fixed"===s(e,"position")||(e.parentNode?l(e.parentNode):e))}function f(t,e){function n(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}Object.keys(e).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(e[r])&&(i="px"),t.style[r]=e[r]+i}))}function d(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function h(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function p(t){var e=t.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:r,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-r}}function m(t,e,n){var r=p(t),i=p(e);if(n){var o=c(e);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}var a={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return a}function g(e){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+e.charAt(0).toUpperCase()+e.slice(1):e;if("undefined"!==typeof t.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[g("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(t)},n.prototype.onCreate=function(t){return t(this),this},n.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},n.prototype.parse=function(e){var n={tagName:"div",classNames:["popper"],attributes:[],parent:t.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};e=Object.assign({},n,e);var r=t.document,i=r.createElement(e.tagName);if(s(i,e.classNames),u(i,e.attributes),"node"===e.contentType?i.appendChild(e.content.jquery?e.content[0]:e.content):"html"===e.contentType?i.innerHTML=e.content:i.textContent=e.content,e.arrowTagName){var o=r.createElement(e.arrowTagName);s(o,e.arrowClassNames),u(o,e.arrowAttributes),i.appendChild(o)}var a=e.parent.jquery?e.parent[0]:e.parent;if("string"===typeof a){if(a=r.querySelectorAll(e.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+e.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(t,e){e.forEach((function(e){t.classList.add(e)}))}function u(t,e){e.forEach((function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},n.prototype._getPosition=function(t,e){var n=u(e);if(this._options.forceAbsolute)return"absolute";var r=l(e,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(t,e,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=m(e,u(t),o),s=r(t);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=c(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=e}},n.prototype._removeEventListeners=function(){t.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(e,n,r){var i,o,a={};if("window"===r){var s=t.document.body,l=t.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var f=u(this._popper),d=c(this._popper),p=h(f),m=function(t){return t==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):t.scrollTop},g=function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft},v="fixed"===e.offsets.popper.position?0:m(d),b="fixed"===e.offsets.popper.position?0:g(d);a={top:0-(p.top-v),right:t.document.documentElement.clientWidth-(p.left-b),bottom:t.document.documentElement.clientHeight-(p.top-v),left:0-(p.left-b)}}else a=u(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:h(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(t,e,n){var r=e.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(e){d(e)&&(t=e.call(this,t))}.bind(this)),t},n.prototype.isModifierRequired=function(t,e){var n=a(this._options.modifiers,t);return!!this._options.modifiers.slice(0,n).filter((function(t){return t===e})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(t){var e,n={position:t.offsets.popper.position},r=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=g("transform"))?(n[e]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,t.styles),f(this._popper,n),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&f(t.arrowElement,t.offsets.arrow),t},n.prototype.modifiers.shift=function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets.reference,a=o(t.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},u=-1!==["bottom","top"].indexOf(n)?"x":"y";t.offsets.popper=Object.assign(a,s[u][r])}return t},n.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,n=o(t.offsets.popper),r={left:function(){var e=n.left;return n.left<t.boundaries.left&&(e=Math.max(n.left,t.boundaries.left)),{left:e}},right:function(){var e=n.left;return n.right>t.boundaries.right&&(e=Math.min(n.left,t.boundaries.right-n.width)),{left:e}},top:function(){var e=n.top;return n.top<t.boundaries.top&&(e=Math.max(n.top,t.boundaries.top)),{top:e}},bottom:function(){var e=n.top;return n.bottom>t.boundaries.bottom&&(e=Math.min(n.top,t.boundaries.bottom-n.height)),{top:e}}};return e.forEach((function(e){t.offsets.popper=Object.assign(n,r[e]())})),t},n.prototype.modifiers.keepTogether=function(t){var e=o(t.offsets.popper),n=t.offsets.reference,r=Math.floor;return e.right<r(n.left)&&(t.offsets.popper.left=r(n.left)-e.width),e.left>r(n.right)&&(t.offsets.popper.left=r(n.right)),e.bottom<r(n.top)&&(t.offsets.popper.top=r(n.top)-e.height),e.top>r(n.bottom)&&(t.offsets.popper.top=r(n.bottom)),t},n.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],n=i(e),r=t.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[e,n]:this._options.flipBehavior,a.forEach(function(s,u){if(e===s&&a.length!==u+1){e=t.placement.split("-")[0],n=i(e);var c=o(t.offsets.popper),l=-1!==["right","bottom"].indexOf(e);(l&&Math.floor(t.offsets.reference[e])>Math.floor(c[n])||!l&&Math.floor(t.offsets.reference[e])<Math.floor(c[n]))&&(t.flipped=!0,t.placement=a[u+1],r&&(t.placement+="-"+r),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},n.prototype.modifiers.offset=function(t){var e=this._options.offset,n=t.offsets.popper;return-1!==t.placement.indexOf("left")?n.top-=e:-1!==t.placement.indexOf("right")?n.top+=e:-1!==t.placement.indexOf("top")?n.left-=e:-1!==t.placement.indexOf("bottom")&&(n.left+=e),t},n.prototype.modifiers.arrow=function(t){var e=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof e&&(e=this._popper.querySelector(e)),!e)return t;if(!this._popper.contains(e))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),t;var i={},a=t.placement.split("-")[0],s=o(t.offsets.popper),u=t.offsets.reference,c=-1!==["left","right"].indexOf(a),l=c?"height":"width",f=c?"top":"left",d=c?"left":"top",h=c?"bottom":"right",p=r(e)[l];u[h]-p<s[f]&&(t.offsets.popper[f]-=s[f]-(u[h]-p)),u[f]+p>s[h]&&(t.offsets.popper[f]+=u[f]+p-s[h]);var m=u[f]+(n||u[l]/2-p/2),g=m-s[f];return g=Math.max(Math.min(s[l]-p-8,g),8),i[f]=g,i[d]="",t.offsets.arrow=i,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(e[s]=r[s])}}}return e}}),n}))},6283:function(t,e,n){"use strict";const r=n("3fb5"),i=n("d1c8").Reporter,o=n("c591").Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(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}}r(a,i),e.DecoderBuffer=a,a.isDecoderBuffer=function(t){if(t instanceof a)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},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){const e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.isEncoderBuffer=function(t){if(t instanceof s)return!0;const e="object"===typeof t&&"EncoderBuffer"===t.constructor.name&&"number"===typeof t.length&&"function"===typeof t.join;return e},s.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(n){n.join(t,e),e+=n.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,n){var r=n("8707").Buffer;function i(t,e,n){var i=t._cipher.encryptBlock(t._prev),o=i[0]^e;return t._prev=r.concat([t._prev.slice(1),r.from([n?e:o])]),o}e.encrypt=function(t,e,n){var o=e.length,a=r.allocUnsafe(o),s=-1;while(++s<o)a[s]=i(t,e[s],n);return a}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6430:function(t,e,n){var r=n("8707").Buffer,i=n("d485").Transform,o=n("7d72").StringDecoder,a=n("3fb5");function s(t){i.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(s,i),s.prototype.update=function(t,e,n){"string"===typeof t&&(t=r.from(t,e));var i=this._update(t);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){r=i}finally{n(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t&&(e=this._toString(e,t,!0)),e},s.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},t.exports=s},6438:function(t,e,n){var r=n("03d6"),i=n("9742").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},6442:function(t,e,n){e.publicEncrypt=n("ad25"),e.privateDecrypt=n("0f2c"),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},"64d8":function(t,e,n){n("ef1f")},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"658f":function(t,e,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"676f":function(t,e,n){"use strict";var r=n("80af"),i=n("3fb5"),o=n("ea53"),a=n("f3a3");function s(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e),i=r.redSqrt();return 0===i.redSqr().cmp(r)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),n=this.x.redSub(this.z),r=n.redSqr(),i=e.redSub(r),o=e.redMul(r),a=i.redMul(r.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z),a=o.redMul(n),s=i.redMul(r),u=e.z.redMul(a.redAdd(s).redSqr()),c=e.x.redMul(a.redISub(s).redSqr());return this.curve.point(u,c)},u.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6858:function(t,e,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");t.exports=n("393a")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"693d":function(t,e,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),u=n("e34a").KEY,c=n("4b8b"),l=n("b367"),f=n("92f0"),d=n("8b1a"),h=n("cc15"),p=n("fcd4"),m=n("e198"),g=n("0ae2"),v=n("4ebc"),b=n("77e9"),y=n("7a41"),w=n("0983"),_=n("6ca1"),x=n("3397"),C=n("10db"),S=n("6f4f"),k=n("1836"),M=n("4d20"),E=n("fed5"),O=n("1a14"),T=n("9876"),A=M.f,D=O.f,N=k.f,R=r.Symbol,P=r.JSON,I=P&&P.stringify,B="prototype",L=h("_hidden"),z=h("toPrimitive"),j={}.propertyIsEnumerable,F=l("symbol-registry"),$=l("symbols"),H=l("op-symbols"),V=Object[B],U="function"==typeof R&&!!E.f,q=r.QObject,W=!q||!q[B]||!q[B].findChild,K=o&&c((function(){return 7!=S(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=A(V,e);r&&delete V[e],D(t,e,n),r&&t!==V&&D(V,e,r)}:D,G=function(t){var e=$[t]=S(R[B]);return e._k=t,e},Y=U&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},X=function(t,e,n){return t===V&&X(H,e,n),b(t),e=x(e,!0),b(n),i($,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=S(n,{enumerable:C(0,!1)})):(i(t,L)||D(t,L,C(1,{})),t[L][e]=!0),K(t,e,n)):D(t,e,n)},Z=function(t,e){b(t);var n,r=g(e=_(e)),i=0,o=r.length;while(o>i)X(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?S(t):Z(S(t),e)},Q=function(t){var e=j.call(this,t=x(t,!0));return!(this===V&&i($,t)&&!i(H,t))&&(!(e||!i(this,t)||!i($,t)||i(this,L)&&this[L][t])||e)},tt=function(t,e){if(t=_(t),e=x(e,!0),t!==V||!i($,e)||i(H,e)){var n=A(t,e);return!n||!i($,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},et=function(t){var e,n=N(_(t)),r=[],o=0;while(n.length>o)i($,e=n[o++])||e==L||e==u||r.push(e);return r},nt=function(t){var e,n=t===V,r=N(n?H:_(t)),o=[],a=0;while(r.length>a)!i($,e=r[a++])||n&&!i(V,e)||o.push($[e]);return o};U||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(H,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),K(this,t,C(1,n))};return o&&W&&K(V,t,{configurable:!0,set:e}),G(t)},s(R[B],"toString",(function(){return this._k})),M.f=tt,O.f=X,n("6438").f=k.f=et,n("1917").f=Q,E.f=nt,o&&!n("e444")&&s(V,"propertyIsEnumerable",Q,!0),p.f=function(t){return G(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:R});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)h(rt[it++]);for(var ot=T(h.store),at=0;ot.length>at;)m(ot[at++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=R(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!U,"Object",{create:J,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=c((function(){E.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return E.f(w(t))}}),P&&a(a.S+a.F*(!U||c((function(){var t=R();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(y(e)||void 0!==t)&&!Y(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,I.apply(P,r)}}),R[B][z]||n("051b")(R[B],z,R[B].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"69f2":function(t,e,n){e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};e.sha=n("087f"),e.sha1=n("7e78"),e.sha224=n("72aa"),e.sha256=n("a255"),e.sha384=n("b837"),e.sha512=n("4fd1")},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),s=n("da84"),u=n("861d"),c=n("9112"),l=n("5135"),f=n("c6cd"),d=n("f772"),h=n("d012"),p=s.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},g=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var v=f.state||(f.state=new p),b=v.get,y=v.has,w=v.set;r=function(t,e){return e.facade=t,w.call(v,t,e),e},i=function(t){return b.call(v,t)||{}},o=function(t){return y.call(v,t)}}else{var _=d("state");h[_]=!0,r=function(t,e){return e.facade=t,c(t,_,e),e},i=function(t){return l(t,_)?t[_]:{}},o=function(t){return l(t,_)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:g}},"6aa2":function(t,e,n){"use strict";var r=n("7d92"),i=n("7658"),o=n("da3e");function a(t){if(!(this instanceof a))return new a(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=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=a,a.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,n,r){"string"!==typeof e&&(r=n,n=e,e=null),t=i.toArray(t,e),n=i.toArray(n,r),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));var o=[];while(o.length<t)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(n),this._reseed++,i.encode(a,e)}},"6ac9":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=74)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},2:function(t,e){t.exports=n("5924")},3:function(t,e){t.exports=n("8122")},5:function(t,e){t.exports=n("e974")},7:function(t,e){t.exports=n("2b0e")},74:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[t.popperClass,t.content&&"el-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",[t._v(t._s(t.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[t._t("reference")],2)],1)},i=[];r._withStripped=!0;var o=n(5),a=n.n(o),s=n(2),u=n(3),c={name:"ElPopover",mixins:[a.a],props:{trigger:{type:String,default:"click",validator:function(t){return["click","focus","hover","manual"].indexOf(t)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(u["generateId"])()}},watch:{showPopper:function(t){this.disabled||(t?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var t=this,e=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),e&&(Object(s["addClass"])(e,"el-popover__reference"),e.setAttribute("aria-describedby",this.tooltipId),e.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s["on"])(e,"focusin",(function(){t.handleFocus();var n=e.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(s["on"])(n,"focusin",this.handleFocus),Object(s["on"])(e,"focusout",this.handleBlur),Object(s["on"])(n,"focusout",this.handleBlur)),Object(s["on"])(e,"keydown",this.handleKeydown),Object(s["on"])(e,"click",this.handleClick)),"click"===this.trigger?(Object(s["on"])(e,"click",this.doToggle),Object(s["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(s["on"])(e,"mouseenter",this.handleMouseEnter),Object(s["on"])(n,"mouseenter",this.handleMouseEnter),Object(s["on"])(e,"mouseleave",this.handleMouseLeave),Object(s["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),e.querySelector("input, textarea")?(Object(s["on"])(e,"focusin",this.doShow),Object(s["on"])(e,"focusout",this.doClose)):(Object(s["on"])(e,"mousedown",this.doShow),Object(s["on"])(e,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(s["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var t=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(t){27===t.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var t=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(t){var e=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&n&&!n.contains(t.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var t=this.reference;Object(s["off"])(t,"click",this.doToggle),Object(s["off"])(t,"mouseup",this.doClose),Object(s["off"])(t,"mousedown",this.doShow),Object(s["off"])(t,"focusin",this.doShow),Object(s["off"])(t,"focusout",this.doClose),Object(s["off"])(t,"mousedown",this.doShow),Object(s["off"])(t,"mouseup",this.doClose),Object(s["off"])(t,"mouseleave",this.handleMouseLeave),Object(s["off"])(t,"mouseenter",this.handleMouseEnter),Object(s["off"])(document,"click",this.handleDocumentClick)}},l=c,f=n(0),d=Object(f["a"])(l,r,i,!1,null,null,null);d.options.__file="packages/popover/src/main.vue";var h=d.exports,p=function(t,e,n){var r=e.expression?e.value:e.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=t:i.$refs.reference=t)},m={bind:function(t,e,n){p(t,e,n)},inserted:function(t,e,n){p(t,e,n)}},g=n(7),v=n.n(g);v.a.directive("popover",m),h.install=function(t){t.directive("popover",m),t.component(h.name,h)},h.directive=m;e["default"]=h}})},"6ade":function(t,e,n){var r=n("8c8a"),i=n("8707").Buffer,o=n("bd9d");function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}var s=16;e.encrypt=function(t,e){var n=Math.ceil(e.length/s),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(n*s)]);for(var u=0;u<n;u++){var c=a(t),l=o+u*s;t._cache.writeUInt32BE(c[0],l+0),t._cache.writeUInt32BE(c[1],l+4),t._cache.writeUInt32BE(c[2],l+8),t._cache.writeUInt32BE(c[3],l+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),r(e,f)}},"6b7c":function(t,e,n){"use strict";e.__esModule=!0;var r=n("4897");e.default={methods:{t:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.t.apply(this,e)}}}},"6ca1":function(t,e,n){var r=n("9fbb"),i=n("c901");t.exports=function(t){return r(i(t))}},"6d08":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return i.create({ciphertext:e})}}}(),t.format.Hex}))},"6dd8":function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}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 n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,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 n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2;function s(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c}var u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,f=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&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,n=void 0===e?"":e,r=c.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},p=S(0,0,0,0);function m(t){return parseFloat(t)||0}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+m(r)}),0)}function v(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=m(a)}return n}function b(t){var e=t.getBBox();return S(0,0,e.width,e.height)}function y(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=h(t).getComputedStyle(t),i=v(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),u=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!_(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return S(i.left,i.top,s,u)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"===typeof t.getBBox}}();function _(t){return t===h(t).document.documentElement}function x(t){return r?w(t)?b(t):y(t):p}function C(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function S(t,e,n,r){return{x:t,y:e,width:n,height:r}}var k=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=x(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),M=function(){function t(t,e){var n=C(e);d(this,{target:t,contentRect:n})}return t}(),E=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new k(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new M(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),O="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){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 n=f.getInstance(),r=new E(e,n,this);O.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){T.prototype[t]=function(){var e;return(e=O.get(this))[t].apply(e,arguments)}}));var A=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:T}();e["default"]=A}.call(this,n("c8ba"))},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),u=n("69f3"),c=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,s){var u,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),u=l(n),u.source||(u.source=f.join("string"==typeof e?e:""))),t!==r?(c?!h&&t[e]&&(d=!0):delete t[e],d?t[e]=n:i(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6eed":function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=n("aa56"),a=n("da3e"),s=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var x=c(_,h(b),l(b,y,w),this.k[r],n[r]),C=s(d(i),f(i,o,g));_=w,w=y,y=b,b=s(v,x),v=g,g=o,o=i,i=s(x,C)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},b.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},"6f4f":function(t,e,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("05f5")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("9141").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},"6f53":function(t,e,n){var r=n("83ab"),i=n("df75"),o=n("fc6a"),a=n("d1e7").f,s=function(t){return function(e){var n,s=o(e),u=i(s),c=u.length,l=0,f=[];while(c>l)n=u[l++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}};t.exports={entries:s(!0),values:s(!1)}},"6fe7":function(t,e,n){var r=n("39a9").Buffer,i=n("1a2a"),o=n("a958"),a=n("3337").ec,s=n("399f"),u=n("2aee"),c=n("cd91");function l(t,e,n,i,a){var s=u(e);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return f(t,s)}if("dsa"===s.type){if("dsa"!==i)throw new Error("wrong private key type");return d(t,s,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");t=r.concat([a,t]);var c=s.modulus.byteLength(),l=[0,1];while(t.length+l.length+1<c)l.push(255);l.push(0);var h=-1;while(++h<t.length)l.push(t[h]);var p=o(l,s);return p}function f(t,e){var n=c[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var i=new a(n),o=i.keyFromPrivate(e.privateKey),s=o.sign(t);return r.from(s.toDER())}function d(t,e,n){var r,i=e.params.priv_key,o=e.params.p,a=e.params.q,u=e.params.g,c=new s(0),l=m(t,a).mod(a),f=!1,d=p(i,a,t,n);while(!1===f)r=v(a,d,n),c=b(u,r,o,a),f=r.invm(a).imul(l.add(i.mul(c))).mod(a),0===f.cmpn(0)&&(f=!1,c=new s(0));return h(c,f)}function h(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var n=t.length+e.length+4,i=[48,n,2,t.length];return i=i.concat(t,[2,e.length],e),r.from(i)}function p(t,e,n,o){if(t=r.from(t.toArray()),t.length<e.byteLength()){var a=r.alloc(e.byteLength()-t.length);t=r.concat([a,t])}var s=n.length,u=g(n,e),c=r.alloc(s);c.fill(1);var l=r.alloc(s);return l=i(o,l).update(c).update(r.from([0])).update(t).update(u).digest(),c=i(o,l).update(c).digest(),l=i(o,l).update(c).update(r.from([1])).update(t).update(u).digest(),c=i(o,l).update(c).digest(),{k:l,v:c}}function m(t,e){var n=new s(t),r=(t.length<<3)-e.bitLength();return r>0&&n.ishrn(r),n}function g(t,e){t=m(t,e),t=t.mod(e);var n=r.from(t.toArray());if(n.length<e.byteLength()){var i=r.alloc(e.byteLength()-n.length);n=r.concat([i,n])}return n}function v(t,e,n){var o,a;do{o=r.alloc(0);while(8*o.length<t.bitLength())e.v=i(n,e.k).update(e.v).digest(),o=r.concat([o,e.v]);a=m(o,t),e.k=i(n,e.k).update(e.v).update(r.from([0])).digest(),e.v=i(n,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function b(t,e,n,r){return t.toRed(s.mont(n)).redPow(e).fromRed().mod(r)}t.exports=l,t.exports.getKey=p,t.exports.makeKey=v},7193:function(t,e,n){n("ae68")},"722f":function(t,e,n){"use strict";e.__esModule=!0;var r="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},i=n("e452"),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}var s,u=u||{};u.Dialog=function(t,e,n){var i=this;if(this.dialogNode=t,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof e?this.focusAfterClosed=document.getElementById(e):"object"===("undefined"===typeof e?"undefined":r(e))?this.focusAfterClosed=e:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(t){i.trapFocus(t)},this.addListeners()},u.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},u.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},u.Dialog.prototype.closeDialog=function(){var t=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){t.focusAfterClosed.focus()}))},u.Dialog.prototype.trapFocus=function(t){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(t.target)?this.lastFocus=t.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},e.default=u.Dialog},"72aa":function(t,e,n){var r=n("3fb5"),i=n("a255"),o=n("b672"),a=n("8707").Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.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=u},"72fe":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],h=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],b=t[e+7],y=t[e+8],w=t[e+9],_=t[e+10],x=t[e+11],C=t[e+12],S=t[e+13],k=t[e+14],M=t[e+15],E=o[0],O=o[1],T=o[2],A=o[3];E=c(E,O,T,A,a,7,s[0]),A=c(A,E,O,T,u,12,s[1]),T=c(T,A,E,O,h,17,s[2]),O=c(O,T,A,E,p,22,s[3]),E=c(E,O,T,A,m,7,s[4]),A=c(A,E,O,T,g,12,s[5]),T=c(T,A,E,O,v,17,s[6]),O=c(O,T,A,E,b,22,s[7]),E=c(E,O,T,A,y,7,s[8]),A=c(A,E,O,T,w,12,s[9]),T=c(T,A,E,O,_,17,s[10]),O=c(O,T,A,E,x,22,s[11]),E=c(E,O,T,A,C,7,s[12]),A=c(A,E,O,T,S,12,s[13]),T=c(T,A,E,O,k,17,s[14]),O=c(O,T,A,E,M,22,s[15]),E=l(E,O,T,A,u,5,s[16]),A=l(A,E,O,T,v,9,s[17]),T=l(T,A,E,O,x,14,s[18]),O=l(O,T,A,E,a,20,s[19]),E=l(E,O,T,A,g,5,s[20]),A=l(A,E,O,T,_,9,s[21]),T=l(T,A,E,O,M,14,s[22]),O=l(O,T,A,E,m,20,s[23]),E=l(E,O,T,A,w,5,s[24]),A=l(A,E,O,T,k,9,s[25]),T=l(T,A,E,O,p,14,s[26]),O=l(O,T,A,E,y,20,s[27]),E=l(E,O,T,A,S,5,s[28]),A=l(A,E,O,T,h,9,s[29]),T=l(T,A,E,O,b,14,s[30]),O=l(O,T,A,E,C,20,s[31]),E=f(E,O,T,A,g,4,s[32]),A=f(A,E,O,T,y,11,s[33]),T=f(T,A,E,O,x,16,s[34]),O=f(O,T,A,E,k,23,s[35]),E=f(E,O,T,A,u,4,s[36]),A=f(A,E,O,T,m,11,s[37]),T=f(T,A,E,O,b,16,s[38]),O=f(O,T,A,E,_,23,s[39]),E=f(E,O,T,A,S,4,s[40]),A=f(A,E,O,T,a,11,s[41]),T=f(T,A,E,O,p,16,s[42]),O=f(O,T,A,E,v,23,s[43]),E=f(E,O,T,A,w,4,s[44]),A=f(A,E,O,T,C,11,s[45]),T=f(T,A,E,O,M,16,s[46]),O=f(O,T,A,E,h,23,s[47]),E=d(E,O,T,A,a,6,s[48]),A=d(A,E,O,T,b,10,s[49]),T=d(T,A,E,O,k,15,s[50]),O=d(O,T,A,E,g,21,s[51]),E=d(E,O,T,A,C,6,s[52]),A=d(A,E,O,T,p,10,s[53]),T=d(T,A,E,O,_,15,s[54]),O=d(O,T,A,E,u,21,s[55]),E=d(E,O,T,A,y,6,s[56]),A=d(A,E,O,T,M,10,s[57]),T=d(T,A,E,O,v,15,s[58]),O=d(O,T,A,E,S,21,s[59]),E=d(E,O,T,A,m,6,s[60]),A=d(A,E,O,T,x,10,s[61]),T=d(T,A,E,O,h,15,s[62]),O=d(O,T,A,E,w,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+O|0,o[2]=o[2]+T|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<<o|s>>>32-o)+e}function l(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<<o|s>>>32-o)+e}n.MD5=o._createHelper(u),n.HmacMD5=o._createHmacHelper(u)}(Math),t.MD5}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"75cc":function(t,e,n){"use strict";(function(t,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=n("8707"),a=n("11dc"),s=o.Buffer,u=o.kMaxLength,c=t.crypto||t.msCrypto,l=Math.pow(2,32)-1;function f(t,e){if("number"!==typeof t||t!==t)throw new TypeError("offset must be a number");if(t>l||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function d(t,e,n){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>u)throw new RangeError("buffer too small")}function h(e,n,r,i){if(!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof n)i=n,n=0,r=e.length;else if("function"===typeof r)i=r,r=e.length-n;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return f(n,e.length),d(r,n,e.length),p(e,n,r,i)}function p(t,e,n,i){if(r.browser){var o=t.buffer,s=new Uint8Array(o,e,n);return c.getRandomValues(s),i?void r.nextTick((function(){i(null,t)})):t}if(!i){var u=a(n);return u.copy(t,e),t}a(n,(function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)}))}function m(e,n,r){if("undefined"===typeof n&&(n=0),!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(n,e.length),void 0===r&&(r=e.length-n),d(r,n,e.length),p(e,n,r)}c&&c.getRandomValues||!r.browser?(e.randomFill=h,e.randomFillSync=m):(e.randomFill=i,e.randomFillSync=i)}).call(this,n("c8ba"),n("4362"))},7658:function(t,e,n){"use strict";var r=e;function i(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!==typeof t){for(var r=0;r<t.length;r++)n[r]=0|t[r];return n}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t);for(r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n}function o(t){return 1===t.length?"0"+t:t}function a(t){for(var e="",n=0;n<t.length;n++)e+=o(t[n].toString(16));return e}r.toArray=i,r.zero2=o,r.toHex=a,r.encode=function(t,e){return"hex"===e?a(t):t}},"77e9":function(t,e,n){var r=n("7a41");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"780f":function(t,e,n){"use strict";t.exports=o;var r=n("27bf"),i=Object.create(n("3a7c"));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a10":function(t,e,n){var r=n("d0eb"),i=n("fdac");function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),l=s.toRed(o),f=!0;e>0;e--){var d=this._randrange(new r(2),s);n&&n(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var p=1;p<u;p++){if(h=h.redSqr(),0===h.cmp(a))return!1;if(0===h.cmp(l))break}if(p===u)return!1}}return f},o.prototype.getDivisor=function(t,e){var n=t.bitLength(),i=r.mont(t),o=new r(1).toRed(i);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),c=a.toRed(i);e>0;e--){var l=this._randrange(new r(2),a),f=t.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(d=d.redSqr(),0===d.cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(c))break}if(h===s)return d=d.redSqr(),d.fromRed().subn(1).gcd(t)}}return!1}},"7a41":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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(){}}}()},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7b3e":function(t,e,n){"use strict";var r,i=n("a3de");
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
- function o(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},"7bbc":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,i=n.WordArray,o=e.algo,a=o.SHA1,s=o.HMAC,u=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,r=s.create(n.hasher,t),o=i.create(),a=i.create([1]),u=o.words,c=a.words,l=n.keySize,f=n.iterations;while(u.length<l){var d=r.update(e).finalize(a);r.reset();for(var h=d.words,p=h.length,m=d,g=1;g<f;g++){m=r.finalize(m),r.reset();for(var v=m.words,b=0;b<p;b++)h[b]^=v[b]}o.concat(d),c[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)}}(),t.PBKDF2}))},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),f=">",d="<",h="prototype",p="script",m=l("IE_PROTO"),g=function(){},v=function(t){return d+p+f+t+d+"/"+p+f},b=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}w=r?b(r):y();var t=a.length;while(t--)delete w[h][a[t]];return w()};s[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[h]=i(t),n=new g,g[h]=null,n[m]=t):n=w(),void 0===e?n:o(n,e)}},"7d2a":function(t,e){var n=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>n||e!==e)throw new TypeError("Bad key length")}},"7d72":function(t,e,n){"use strict";var r=n("8707").Buffer,i=r.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 a(t){var e=o(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=m,e=4;break;case"utf8":this.fillLast=f,e=4;break;case"base64":this.text=g,this.end=v,e=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function u(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function c(t,e,n){var r=e.length-1;if(r<n)return 0;var i=u(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=u(e[r]),i>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=u(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function l(t,e,n){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 f(t){var e=this.lastTotal-this.lastNeed,n=l(this,t,e);return void 0!==n?n: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 n=c(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function h(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 n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}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 n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function g(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function b(t){return t.toString(this.encoding)}function y(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},"7d92":function(t,e,n){var r=e;r.utils=n("c3c0"),r.common=n("edc9"),r.sha=n("5919"),r.ripemd=n("bb44"),r.hmac=n("2137"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),u=n("9112"),c=n("6eeb"),l=n("b622"),f=n("c430"),d=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),v="keys",b="values",y="entries",w=function(){return this};t.exports=function(t,e,n,l,h,_,x){i(n,e,l);var C,S,k,M=function(t){if(t===h&&D)return D;if(!m&&t in T)return T[t];switch(t){case v:return function(){return new n(this,t)};case b:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",O=!1,T=t.prototype,A=T[g]||T["@@iterator"]||h&&T[h],D=!m&&A||M(h),N="Array"==e&&T.entries||A;if(N&&(C=o(N.call(new t)),p!==Object.prototype&&C.next&&(f||o(C)===p||(a?a(C,p):"function"!=typeof C[g]&&u(C,g,w)),s(C,E,!0,!0),f&&(d[E]=w))),h==b&&A&&A.name!==b&&(O=!0,D=function(){return A.call(this)}),f&&!x||T[g]===D||u(T,g,D),d[e]=D,h)if(S={values:M(b),keys:_?D:M(v),entries:M(y)},x)for(k in S)(m||O||!(k in T))&&c(T,k,S[k]);else r({target:e,proto:!0,forced:m||O},S);return S}},"7e78":function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<1|t>>>31}function l(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function d(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=c(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=l(n)+d(p,r,i,o)+s+e[h]+a[p]|0;s=o,o=i,i=f(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.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=u},"7f4d":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},"7f7a":function(t,e,n){"use strict";const r=e;r.bignum=n("bc12"),r.define=n("ef3a").define,r.base=n("41df"),r.constants=n("0211"),r.decoders=n("20f6"),r.encoders=n("343e")},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"7fc1":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=86)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},4:function(t,e){t.exports=n("d010")},86:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[t._t("default")],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[a.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",[t])}}},u=s,c=n(0),l=Object(c["a"])(u,r,i,!1,null,null,null);l.options.__file="packages/checkbox/src/checkbox-group.vue";var f=l.exports;f.install=function(t){t.component(f.name,f)};e["default"]=f}})},"80af":function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(11).Buffer}catch(M){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],h=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(t);p=p.idivn(h),n=p.isZero()?m+n:c[d-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new v;return r.mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):g(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,y),i(x,y),i(C,y),C.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}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 _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},8119:function(t,e,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),t.exports=n("5524").Symbol},8122:function(t,e,n){"use strict";e.__esModule=!0,e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var r="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};e.noop=c,e.hasOwn=l,e.toObject=d,e.getPropByPath=h,e.rafThrottle=b,e.objToArray=y;var i=n("2b0e"),o=s(i),a=n("a742");function s(t){return t&&t.__esModule?t:{default:t}}var u=Object.prototype.hasOwnProperty;function c(){}function l(t,e){return u.call(t,e)}function f(t,e){for(var n in e)t[n]=e[n];return t}function d(t){for(var e={},n=0;n<t.length;n++)t[n]&&f(e,t[n]);return e}e.getValueByPath=function(t,e){e=e||"";for(var n=e.split("."),r=t,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};function h(t,e,n){var r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");for(var i=e.split("."),o=0,a=i.length;o<a-1;++o){if(!r&&!n)break;var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}}e.generateId=function(){return Math.floor(1e4*Math.random())},e.valueEquals=function(t,e){if(t===e)return!0;if(!(t instanceof Array))return!1;if(!(e instanceof Array))return!1;if(t.length!==e.length)return!1;for(var n=0;n!==t.length;++n)if(t[n]!==e[n])return!1;return!0},e.escapeRegexpString=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},m=(e.arrayFind=function(t,e){var n=p(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==("undefined"===typeof t?"undefined":r(t)))return t;var e=["transform","transition","animation"],n=["ms-","webkit-"];return e.forEach((function(e){var r=t[e];e&&r&&n.forEach((function(n){t[n+e]=r}))})),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,a.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,a.isObject)(t),r=(0,a.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),g=e.arrayEquals=function(t,e){if(t=t||[],e=e||[],t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!m(t[n],e[n]))return!1;return!0},v=(e.isEqual=function(t,e){return Array.isArray(t)&&Array.isArray(e)?g(t,e):m(t,e)},e.isEmpty=function(t){if(null==t)return!0;if("boolean"===typeof t)return!1;if("number"===typeof t)return!t;if(t instanceof Error)return""===t.message;switch(Object.prototype.toString.call(t)){case"[object String]":case"[object Array]":return!t.length;case"[object File]":case"[object Map]":case"[object Set]":return!t.size;case"[object Object]":return!Object.keys(t).length}return!1});function b(t){var e=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];e||(e=!0,window.requestAnimationFrame((function(r){t.apply(n,i),e=!1})))}}function y(t){return Array.isArray(t)?t:v(t)?[]:[t]}},"81bf":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"82f0":function(t,e,n){var r=n("39f5"),i=n("8707").Buffer,o=n("6430"),a=n("3fb5"),s=n("3f62"),u=n("8c8a"),c=n("bd9d");function l(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i<r;++i)n+=t[i]^e[i];return n}function f(t,e,n){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var r=new s(n),o=e.length,a=o%16;r.update(e),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var u=8*o,l=i.alloc(8);l.writeUIntBE(u,0,8),r.update(l),t._finID=r.state;var f=i.from(t._finID);return c(f),f}function d(t,e,n,a){o.call(this);var u=i.alloc(4,0);this._cipher=new r.AES(e);var c=this._cipher.encryptBlock(u);this._ghash=new s(c),n=f(this,n,c),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(d,o),d.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},d.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=d},8360:function(t,e,n){"use strict";const r=n("d1c8").Reporter,i=n("6283").EncoderBuffer,o=n("6283").DecoderBuffer,a=n("da3e"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),c=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(t,e,n){const r={};this._baseState=r,r.name=n,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r["default"]=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const t=this._baseState,e={};f.forEach((function(n){e[n]=t[n]}));const n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){const t=this._baseState;u.forEach((function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},l.prototype._init=function(t){const e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){const e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(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(n){n==(0|n)&&(n|=0);const r=t[n];e[r]=n})),e})))},c.forEach((function(t){l.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){l.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}})),l.prototype.use=function(t){a(t);const e=this._baseState;return a(null===e.use),e.use=t,this},l.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this},l.prototype.def=function(t){const e=this._baseState;return a(null===e["default"]),e["default"]=t,e.optional=!0,this},l.prototype.explicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){const e=this._baseState;return a(null===e.key),e.key=t,this},l.prototype.any=function(){const t=this._baseState;return t.any=!0,this},l.prototype.choice=function(t){const e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},l.prototype.contains=function(t){const e=this._baseState;return a(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let r,i=n["default"],a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(a=this._peekTag(t,r,n.any),t.isError(a))return a}else{const r=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(u){a=!1}t.restore(r)}}if(n.obj&&a&&(r=t.enterObject()),a){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const r=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const r=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(r))return r;n.any?i=t.raw(e):t=r}if(e&&e.track&&null!==n.tag&&e.track(t.path(),r,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(r,e)}}return n.obj&&a&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(t,e,n){const r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){const n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=t.save(),s=n.choice[o];try{const n=s._decode(t,e);if(t.isError(n))return!1;r={type:o,value:n},i=!0}catch(u){return t.restore(a),!1}return!0}),this),i?r:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},l.prototype._encode=function(t,e,n){const r=this._baseState;if(null!==r["default"]&&r["default"]===t)return;const i=this._encodeValue(t,e,n);return void 0===i||this._skipDefault(i,e,n)?void 0:i},l.prototype._encodeValue=function(t,e,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);let o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i["default"])return;t=i["default"]}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,n)._encode(t,e),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");const r=e.enterKey(n._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");const i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(n){const r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)}),n))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){const t=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===t?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(t,s,n,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(t,e){const n=this._baseState,r=n.choice[t.type];return r||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.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,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("d925"),i=n("e683");t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},"83d5":function(t,e){t.exports=function(t,e){var n=t.length,r=-1;while(++r<n)t[r]^=e[r];return t}},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"841c":function(t,e,n){"use strict";var r=n("d784"),i=n("825a"),o=n("1d80"),a=n("129f"),s=n("14c3");r("search",1,(function(t,e,n){return[function(e){var n=o(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=i(t),u=String(this),c=o.lastIndex;a(c,0)||(o.lastIndex=0);var l=s(o,u);return a(o.lastIndex,c)||(o.lastIndex=c),null===l?-1:l.index}]}))},"845f":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=99)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},99:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-button-group"},[t._t("default")],2)},i=[];r._withStripped=!0;var o={name:"ElButtonGroup"},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/button/src/button-group.vue";var c=u.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}})},"84ec":function(t,e,n){n("2401")},"85b3":function(t,e,n){"use strict";const r=n("3fb5"),i=n("3768");function o(t){i.call(this,t),this.enc="pem"}r(o,i),t.exports=o,o.prototype.encode=function(t,e){const n=i.prototype.encode.call(this,t),r=n.toString("base64"),o=["-----BEGIN "+e.label+"-----"];for(let i=0;i<r.length;i+=64)o.push(r.slice(i,i+64));return o.push("-----END "+e.label+"-----"),o.join("\n")}},"85e7":function(t,e,n){var r=n("1a14"),i=n("77e9"),o=n("9876");t.exports=n("0bad")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8707:function(t,e,n){var r=n("b639"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},8947:function(t,e,n){var r=n("bac2"),i=n("82f0"),o=n("8707").Buffer,a=n("09f5"),s=n("6430"),u=n("39f5"),c=n("ae84"),l=n("3fb5");function f(t,e,n){s.call(this),this._cache=new h,this._cipher=new u.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}l(f,s),f.prototype._update=function(t){var e,n;this._cache.add(t);var r=[];while(e=this._cache.get())n=this._mode.encrypt(this,e),r.push(n);return o.concat(r)};var d=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function p(t,e,n){var s=r[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,e,n):"auth"===s.type?new i(s.module,e,n):new f(s.module,e,n)}function m(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=c(e,!1,n.key,n.iv);return p(t,i.key,i.iv)}f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=o.concat([this.cache,t])},h.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},h.prototype.flush=function(){var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;while(++n<t)e.writeUInt8(t,n);return o.concat([this.cache,e])},e.createCipheriv=p,e.createCipher=m},"8a0d":function(t,e){t.exports={}},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8b1a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"8b71":function(t,e,n){"use strict";function r(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const r=t[n];e[r]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r(e.tag)},"8b95":function(t,e,n){"use strict";var r=n("c3c0"),i=n("b525");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},"8bbc":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=124)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},124:function(t,e,n){"use strict";n.r(e);var r,i,o={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=t("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:t("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/tag/src/tag.vue";var c=u.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}})},"8be6":function(t,e,n){var r=n("8707").Buffer;t.exports=function(t,e,n){if(r.isBuffer(t))return t;if("string"===typeof t)return r.from(t,e);if(ArrayBuffer.isView(t))return r.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},"8c4f":function(t,e,n){"use strict";
- /*!
- * vue-router v3.4.9
- * (c) 2020 Evan You
- * @license MIT
- */function r(t,e){0}function i(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,u=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function c(t){try{return decodeURIComponent(t)}catch(e){0}return t}function l(t,e,n){void 0===e&&(e={});var r,i=n||d;try{r=i(t||"")}catch(s){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(f):f(a)}return r}var f=function(t){return null==t||"object"===typeof t?t:String(t)};function d(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return u(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(u(e)):r.push(u(e)+"="+u(t)))})),r.join("&")}return u(e)+"="+u(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function m(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=g(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:y(e,i),matched:t?b(t):[]};return n&&(a.redirectedFrom=y(n,i)),Object.freeze(a)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var v=m(null,{path:"/"});function b(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||h;return(n||"/")+o(r)+i}function w(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&_(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params)))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n],a=r[i];if(a!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?_(o,s):String(o)===String(s)}))}function x(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&C(t.query,e.query)}function C(t,e){for(var n in e)if(!(n in t))return!1;return!0}function S(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var k={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,a=e.data;a.routerView=!0;var s=o.$createElement,u=n.name,c=o.$route,l=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;while(o&&o._routerRoot!==o){var h=o.$vnode?o.$vnode.data:{};h.routerView&&f++,h.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=f,d){var p=l[u],m=p&&p.component;return m?(p.configProps&&M(m,a,p.route,p.configProps),s(m,a,r)):s()}var g=c.matched[f],v=g&&g.components[u];if(!g||!v)return l[u]=null,s();l[u]={component:v},a.registerRouteInstance=function(t,e){var n=g.instances[u];(e&&n!==t||!e&&n===t)&&(g.instances[u]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){g.instances[u]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[u]&&(g.instances[u]=t.componentInstance),S(c)};var b=g.props&&g.props[u];return b&&(i(l[u],{route:c,configProps:b}),M(v,a,c,b)),s(v,a,r)}};function M(t,e,n,r){var o=e.props=E(n,r);if(o){o=e.props=i({},o);var a=e.attrs=e.attrs||{};for(var s in o)t.props&&s in t.props||(a[s]=o[s],delete o[s])}}function E(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function O(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function T(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function A(t){return t.replace(/\/\//g,"/")}var D=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},N=Z,R=z,P=j,I=H,B=X,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function z(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=L.exec(t))){var u=n[0],c=n[1],l=n.index;if(a+=t.slice(o,l),o=l+u.length,c)a+=c[1];else{var f=t[o],d=n[2],h=n[3],p=n[4],m=n[5],g=n[6],v=n[7];a&&(r.push(a),a="");var b=null!=d&&null!=f&&f!==d,y="+"===g||"*"===g,w="?"===g||"*"===g,_=n[2]||s,x=p||m;r.push({name:h||i++,prefix:d||"",delimiter:_,optional:w,repeat:y,partial:b,asterisk:!!v,pattern:x?U(x):v?".*":"[^"+V(_)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function j(t,e){return H(z(t,e),e)}function F(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function $(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function H(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"===typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",W(e)));return function(e,r){for(var i="",o=e||{},a=r||{},s=a.pretty?F:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!==typeof c){var l,f=o[c.name];if(null==f){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(D(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(l=s(f[d]),!n[u].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===d?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?$(f):s(f),!n[u].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function V(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function U(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function q(t,e){return t.keys=e,t}function W(t){return t&&t.sensitive?"":"i"}function K(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(t,e)}function G(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(Z(t[i],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",W(n));return q(o,e)}function Y(t,e,n){return X(z(t,n),e,n)}function X(t,e,n){D(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"===typeof s)o+=V(s);else{var u=V(s.prefix),c="(?:"+s.pattern+")";e.push(s),s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",o+=c}}var l=V(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",q(new RegExp("^"+o,W(n)),e)}function Z(t,e,n){return D(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?K(t,e):D(t)?G(t,e,n):Y(t,e,n)}N.parse=R,N.compile=P,N.tokensToFunction=I,N.tokensToRegExp=B;var J=Object.create(null);function Q(t,e,n){e=e||{};try{var r=J[t]||(J[t]=N.compile(t));return"string"===typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(i){return""}finally{delete e[0]}}function tt(t,e,n,r){var o="string"===typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){o=i({},t);var a=o.params;return a&&"object"===typeof a&&(o.params=i({},a)),o}if(!o.path&&o.params&&e){o=i({},o),o._normalized=!0;var s=i(i({},e.params),o.params);if(e.name)o.name=e.name,o.params=s;else if(e.matched.length){var u=e.matched[e.matched.length-1].path;o.path=Q(u,s,"path "+e.path)}else 0;return o}var c=T(o.path||""),f=e&&e.path||"/",d=c.path?O(c.path,f,n||o.append):f,h=l(c.query,o.query,r&&r.options.parseQuery),p=o.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:h,hash:p}}var et,nt=[String,Object],rt=[String,Array],it=function(){},ot={name:"RouterLink",props:{to:{type:nt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:rt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,u=o.href,c={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,p=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,v=s.redirectedFrom?m(null,tt(s.redirectedFrom),null,n):s;c[g]=w(r,v),c[p]=this.exact?c[g]:x(r,v);var b=c[g]?this.ariaCurrentValue:null,y=function(t){at(t)&&(e.replace?n.replace(a,it):n.push(a,it))},_={click:at};Array.isArray(this.event)?this.event.forEach((function(t){_[t]=y})):_[this.event]=y;var C={class:c},S=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:y,isActive:c[p],isExactActive:c[g]});if(S){if(1===S.length)return S[0];if(S.length>1||!S.length)return 0===S.length?t():t("span",{},S)}if("a"===this.tag)C.on=_,C.attrs={href:u,"aria-current":b};else{var k=st(this.$slots.default);if(k){k.isStatic=!1;var M=k.data=i({},k.data);for(var E in M.on=M.on||{},M.on){var O=M.on[E];E in _&&(M.on[E]=Array.isArray(O)?O:[O])}for(var T in _)T in M.on?M.on[T].push(_[T]):M.on[T]=y;var A=k.data.attrs=i({},k.data.attrs);A.href=u,A["aria-current"]=b}else C.on=_}return t(this.tag,C,this.$slots.default)}};function at(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function st(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=st(e.children)))return e}}function ut(t){if(!ut.installed||et!==t){ut.installed=!0,et=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",k),t.component("RouterLink",ot);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ct="undefined"!==typeof window;function lt(t,e,n,r){var i=e||[],o=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){ft(i,o,a,t)}));for(var s=0,u=i.length;s<u;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),u--,s--);return{pathList:i,pathMap:o,nameMap:a}}function ft(t,e,n,r,i,o){var a=r.path,s=r.name;var u=r.pathToRegexpOptions||{},c=ht(a,i,u.strict);"boolean"===typeof r.caseSensitive&&(u.sensitive=r.caseSensitive);var l={path:c,regex:dt(c,u),components:r.components||{default:r.component},instances:{},enteredCbs:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?A(o+"/"+r.path):void 0;ft(t,e,n,r,l,i)})),e[l.path]||(t.push(l.path),e[l.path]=l),void 0!==r.alias)for(var f=Array.isArray(r.alias)?r.alias:[r.alias],d=0;d<f.length;++d){var h=f[d];0;var p={path:h,children:r.children};ft(t,e,n,p,i,l.path||"/")}s&&(n[s]||(n[s]=l))}function dt(t,e){var n=N(t,[],e);return n}function ht(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:A(e.path+"/"+t)}function pt(t,e){var n=lt(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t){lt(t,r,i,o)}function s(t,n,a){var s=tt(t,n,!1,e),u=s.name;if(u){var c=o[u];if(!c)return l(null,s);var f=c.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in s.params)&&f.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=Q(c.path,s.params,'named route "'+u+'"'),l(c,s,a)}if(s.path){s.params={};for(var h=0;h<r.length;h++){var p=r[h],m=i[p];if(mt(m.regex,s.path,s.params))return l(m,s,a)}}return l(null,s)}function u(t,n){var r=t.redirect,i="function"===typeof r?r(m(t,n,null,e)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return l(null,n);var a=i,u=a.name,c=a.path,f=n.query,d=n.hash,h=n.params;if(f=a.hasOwnProperty("query")?a.query:f,d=a.hasOwnProperty("hash")?a.hash:d,h=a.hasOwnProperty("params")?a.params:h,u){o[u];return s({_normalized:!0,name:u,query:f,hash:d,params:h},void 0,n)}if(c){var p=gt(c,t),g=Q(p,h,'redirect route with path "'+p+'"');return s({_normalized:!0,path:g,query:f,hash:d},void 0,n)}return l(null,n)}function c(t,e,n){var r=Q(n,e.params,'aliased route with path "'+n+'"'),i=s({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return e.params=i.params,l(a,e)}return l(null,e)}function l(t,n,r){return t&&t.redirect?u(t,r||n):t&&t.matchAs?c(t,n,t.matchAs):m(t,n,r,e)}return{match:s,addRoutes:a}}function mt(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?c(r[i]):r[i])}return!0}function gt(t,e){return O(t,e.parent?e.parent.path:"/",!0)}var vt=ct&&window.performance&&window.performance.now?window.performance:Date;function bt(){return vt.now().toFixed(3)}var yt=bt();function wt(){return yt}function _t(t){return yt=t}var xt=Object.create(null);function Ct(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=i({},window.history.state);return n.key=wt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",Mt),function(){window.removeEventListener("popstate",Mt)}}function St(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=Et(),a=i.call(t,e,n,r?o:null);a&&("function"===typeof a.then?a.then((function(t){Pt(t,o)})).catch((function(t){0})):Pt(a,o))}))}}function kt(){var t=wt();t&&(xt[t]={x:window.pageXOffset,y:window.pageYOffset})}function Mt(t){kt(),t.state&&t.state.key&&_t(t.state.key)}function Et(){var t=wt();if(t)return xt[t]}function Ot(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-r.left-e.x,y:i.top-r.top-e.y}}function Tt(t){return Nt(t.x)||Nt(t.y)}function At(t){return{x:Nt(t.x)?t.x:window.pageXOffset,y:Nt(t.y)?t.y:window.pageYOffset}}function Dt(t){return{x:Nt(t.x)?t.x:0,y:Nt(t.y)?t.y:0}}function Nt(t){return"number"===typeof t}var Rt=/^#\d/;function Pt(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var r=Rt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var i=t.offset&&"object"===typeof t.offset?t.offset:{};i=Dt(i),e=Ot(r,i)}else Tt(t)&&(e=At(t))}else n&&Tt(t)&&(e=At(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var It=ct&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Bt(t,e){kt();var n=window.history;try{if(e){var r=i({},n.state);r.key=wt(),n.replaceState(r,"",t)}else n.pushState({key:_t(bt())},"",t)}catch(o){window.location[e?"replace":"assign"](t)}}function Lt(t){Bt(t,!0)}function zt(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var jt={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ft(t,e){return Ut(t,e,jt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+Wt(e)+'" via a navigation guard.')}function $t(t,e){var n=Ut(t,e,jt.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return n.name="NavigationDuplicated",n}function Ht(t,e){return Ut(t,e,jt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Vt(t,e){return Ut(t,e,jt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Ut(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var qt=["params","query","hash"];function Wt(t){if("string"===typeof t)return t;if("path"in t)return t.path;var e={};return qt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}function Kt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Gt(t,e){return Kt(t)&&t._isRouter&&(null==e||t.type===e)}function Yt(t){return function(e,n,r){var i=!1,o=0,a=null;Xt(t,(function(t,e,n,s){if("function"===typeof t&&void 0===t.cid){i=!0,o++;var u,c=te((function(e){Qt(e)&&(e=e.default),t.resolved="function"===typeof e?e:et.extend(e),n.components[s]=e,o--,o<=0&&r()})),l=te((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Kt(t)?t:new Error(e),r(a))}));try{u=t(c,l)}catch(d){l(d)}if(u)if("function"===typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"===typeof f.then&&f.then(c,l)}}})),i||r()}}function Xt(t,e){return Zt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Zt(t){return Array.prototype.concat.apply([],t)}var Jt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Qt(t){return t.__esModule||Jt&&"Module"===t[Symbol.toStringTag]}function te(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var ee=function(t,e){this.router=t,this.base=ne(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function ne(t){if(!t)if(ct){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function re(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function ie(t,e,n,r){var i=Xt(t,(function(t,r,i,o){var a=oe(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Zt(r?i.reverse():i)}function oe(t,e){return"function"!==typeof t&&(t=et.extend(t)),t.options[e]}function ae(t){return ie(t,"beforeRouteLeave",ue,!0)}function se(t){return ie(t,"beforeRouteUpdate",ue)}function ue(t,e){if(e)return function(){return t.apply(e,arguments)}}function ce(t){return ie(t,"beforeRouteEnter",(function(t,e,n,r){return le(t,n,r)}))}function le(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"===typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}ee.prototype.listen=function(t){this.cb=t},ee.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ee.prototype.onError=function(t){this.errorCbs.push(t)},ee.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(a){throw this.errorCbs.forEach((function(t){t(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Gt(t,jt.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},ee.prototype.confirmTransition=function(t,e,n){var i=this,o=this.current;this.pending=t;var a=function(t){!Gt(t)&&Kt(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)},s=t.matched.length-1,u=o.matched.length-1;if(w(t,o)&&s===u&&t.matched[s]===o.matched[u])return this.ensureURL(),a($t(o,t));var c=re(this.current.matched,t.matched),l=c.updated,f=c.deactivated,d=c.activated,h=[].concat(ae(f),this.router.beforeHooks,se(l),d.map((function(t){return t.beforeEnter})),Yt(d)),p=function(e,n){if(i.pending!==t)return a(Ht(o,t));try{e(t,o,(function(e){!1===e?(i.ensureURL(!0),a(Vt(o,t))):Kt(e)?(i.ensureURL(!0),a(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(a(Ft(o,t)),"object"===typeof e&&e.replace?i.replace(e):i.push(e)):n(e)}))}catch(r){a(r)}};zt(h,p,(function(){var n=ce(d),r=n.concat(i.router.resolveHooks);zt(r,p,(function(){if(i.pending!==t)return a(Ht(o,t));i.pending=null,e(t),i.router.app&&i.router.app.$nextTick((function(){S(t)}))}))}))},ee.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},ee.prototype.setupListeners=function(){},ee.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=v,this.pending=null};var fe=function(t){function e(e,n){t.call(this,e,n),this._startLocation=de(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=It&&n;r&&this.listeners.push(Ct());var i=function(){var n=t.current,i=de(t.base);t.current===v&&i===t._startLocation||t.transitionTo(i,(function(t){r&&St(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Bt(A(r.base+t.fullPath)),St(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Lt(A(r.base+t.fullPath)),St(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(de(this.base)!==this.current.fullPath){var e=A(this.base+this.current.fullPath);t?Bt(e):Lt(e)}},e.prototype.getCurrentLocation=function(){return de(this.base)},e}(ee);function de(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var he=function(t){function e(e,n,r){t.call(this,e,n),r&&pe(this.base)||me()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=It&&n;r&&this.listeners.push(Ct());var i=function(){var e=t.current;me()&&t.transitionTo(ge(),(function(n){r&&St(t.router,n,e,!0),It||ye(n.fullPath)}))},o=It?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){be(t.fullPath),St(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){ye(t.fullPath),St(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ge()!==e&&(t?be(e):ye(e))},e.prototype.getCurrentLocation=function(){return ge()},e}(ee);function pe(t){var e=de(t);if(!/^\/#/.test(e))return window.location.replace(A(t+"/#"+e)),!0}function me(){var t=ge();return"/"===t.charAt(0)||(ye("/"+t),!1)}function ge(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function ve(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function be(t){It?Bt(ve(t)):window.location.hash=t}function ye(t){It?Lt(ve(t)):window.location.replace(ve(t))}var we=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Gt(t,jt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ee),_e=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!It&&!1!==t.fallback,this.fallback&&(e="hash"),ct||(e="abstract"),this.mode=e,e){case"history":this.history=new fe(this,t.base);break;case"hash":this.history=new he(this,t.base,this.fallback);break;case"abstract":this.history=new we(this,t.base);break;default:0}},xe={currentRoute:{configurable:!0}};function Ce(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Se(t,e,n){var r="hash"===n?"#"+e:e;return t?A(t+"/"+r):r}_e.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},xe.currentRoute.get=function(){return this.history&&this.history.current},_e.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof fe||n instanceof he){var r=function(t){var r=n.current,i=e.options.scrollBehavior,o=It&&i;o&&"fullPath"in t&&St(e,t,r,!1)},i=function(t){n.setupListeners(),r(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},_e.prototype.beforeEach=function(t){return Ce(this.beforeHooks,t)},_e.prototype.beforeResolve=function(t){return Ce(this.resolveHooks,t)},_e.prototype.afterEach=function(t){return Ce(this.afterHooks,t)},_e.prototype.onReady=function(t,e){this.history.onReady(t,e)},_e.prototype.onError=function(t){this.history.onError(t)},_e.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},_e.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},_e.prototype.go=function(t){this.history.go(t)},_e.prototype.back=function(){this.go(-1)},_e.prototype.forward=function(){this.go(1)},_e.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},_e.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=tt(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=Se(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},_e.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(_e.prototype,xe),_e.install=ut,_e.version="3.4.9",_e.isNavigationFailure=Gt,_e.NavigationFailureType=jt,ct&&window.Vue&&window.Vue.use(_e),e["a"]=_e},"8c8a":function(t,e,n){(function(e){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;o<r;++o)i[o]=t[o]^n[o];return i}}).call(this,n("b639").Buffer)},"8cef":function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8df7":function(t,e,n){"use strict";const r=n("3fb5"),i=n("c591").Buffer,o=n("cfbd");function a(t){o.call(this,t),this.enc="pem"}r(a,o),t.exports=a,a.prototype.decode=function(t,e){const n=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,u=-1;for(let i=0;i<n.length;i++){const t=n[i].match(a);if(null!==t&&t[2]===r){if(-1!==s){if("END"!==t[1])break;u=i;break}if("BEGIN"!==t[1])break;s=i}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+r);const c=n.slice(s+1,u).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const l=i.from(c,"base64");return o.prototype.decode.call(this,l,e)}},"8eb7":function(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,g,v=!1;function b(){if(!v){v=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),b=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(h=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),f=/Android/i.exec(t),m=/FBAN\/\w+;/i.exec(t),g=/Mobile/i.exec(t),d=!!/Win64/.exec(t),e){n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(t);s=y?parseFloat(y[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,o=e[4]?parseFloat(e[4]):NaN,o?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(b){if(b[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);u=!w||parseFloat(w[1].replace("_","."))}else u=!1;c=!!b[2],l=!!b[3]}else u=c=l=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&d},firefox:function(){return b()||r},opera:function(){return b()||i},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||c},osx:function(){return b()||u},linux:function(){return b()||l},iphone:function(){return b()||h},mobile:function(){return b()||h||p||f||g},nativeApp:function(){return b()||m},android:function(){return b()||f},ipad:function(){return b()||p}};t.exports=y},9019:function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){a(t,e),i(t)}function i(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 a(t,e){t.emit("error",e)}function s(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:s}}).call(this,n("4362"))},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9141:function(t,e,n){var r=n("ef08").document;t.exports=r&&r.documentElement},9152:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-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,n){"use strict";var r=n("ad6d"),i=n("9f7f"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,u=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=i.UNSUPPORTED_Y||i.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],f=u||l||c;f&&(s=function(t){var e,n,i,s,f=this,d=c&&f.sticky,h=r.call(f),p=f.source,m=0,g=t;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),g=String(t).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==t[f.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),n=new RegExp("^(?:"+p+")",h)),l&&(n=new RegExp("^"+p+"$(?!\\s)",h)),u&&(e=f.lastIndex),i=o.call(d?n:f,g),d?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:u&&i&&(f.lastIndex=f.global?i.index+i[0].length:e),l&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),t.exports=s},"92f0":function(t,e,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"92fa":function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,u;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(u=i,t[a]=i={},i[u]=!0),"string"===typeof o&&(u=o,e[a]=o={},o[u]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},"93e6":function(t,e,n){"use strict";var r=n("0632").Buffer,i=n("334a").Transform,o=n("3fb5");function a(t,e){if(!r.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}function s(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(s,i),s.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(i){r=i}n(r)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},s.prototype.update=function(t,e){if(a(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));var n=this._block,i=0;while(this._blockOffset+t.length-i>=this._blockSize){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}while(i<t.length)n[this._blockOffset++]=t[i++];for(var s=0,u=8*t.length;u>0;++s)this._length[s]+=u,u=this._length[s]/4294967296|0,u>0&&(this._length[s]-=4294967296*u);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.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 n=0;n<4;++n)this._length[n]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},9434:function(t,e,n){n("e8b0")},"945d":function(t,e,n){"use strict";var r=n("7d92"),i=n("0cbb"),o=n("f3a3"),a=o.assert,s=o.parseBytes,u=n("380f"),c=n("44a3");function l(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[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=r.sha512}t.exports=l,l.prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),u=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(t,e,n){t=s(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S()),a=e.R().add(r.pub().mul(i));return a.eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){t=o.parseBytes(t);var e=t.length-1,n=t.slice(0,e).concat(-129&t[e]),r=0!==(128&t[e]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return o.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},"94ce":function(t,e){(function(){"use strict";var t=function(){},e=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},n=function(t,e){return function(n){return t(e(n))}},r=function(t){return function(){return t}},i=function(t){return t};function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.concat(n);return t.apply(null,i)}}var a=function(t){return function(e){return!t(e)}},s=function(t){return function(){throw new Error(t)}},u=r(!1),c=r(!0),l=function(){return f},f=function(){var e=function(t){return t.isNone()},n=function(t){return t()},i=function(t){return t},o={fold:function(t,e){return t()},is:u,isSome:u,isNone:c,getOr:i,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:i,orThunk:n,map:l,each:t,bind:l,exists:u,forall:c,filter:l,equals:e,equals_:e,toArray:function(){return[]},toString:r("none()")};return o}(),d=function(t){var e=r(t),n=function(){return o},i=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:c,isNone:u,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return d(e(t))},each:function(e){e(t)},bind:i,exists:i,forall:i,filter:function(e){return e(t)?o:f},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(u,(function(e){return n(t,e)}))}};return o},h=function(t){return null===t||void 0===t?f:d(t)},p={some:d,none:l,from:h},m=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},g=function(t){return function(e){return m(e)===t}},v=function(t){return function(e){return typeof e===t}},b=function(t){return function(e){return t===e}},y=g("string"),w=g("object"),_=g("array"),x=v("boolean"),C=b(void 0),S=function(t){return null===t||void 0===t},k=function(t){return!S(t)},M=v("function"),E=v("number"),O=Array.prototype.slice,T=Array.prototype.indexOf,A=Array.prototype.push,D=function(t,e){return T.call(t,e)},N=function(t,e){return D(t,e)>-1},R=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(e(i,n))return!0}return!1},P=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},I=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},B=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];e(i,n)}},L=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];e(r,n)}},z=function(t,e){for(var n=[],r=[],i=0,o=t.length;i<o;i++){var a=t[i],s=e(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},j=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];e(o,r)&&n.push(o)}return n},F=function(t,e,n){return L(t,(function(t){n=e(n,t)})),n},$=function(t,e,n){return B(t,(function(t){n=e(n,t)})),n},H=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(e(o,r))return p.some(o);if(n(o,r))break}return p.none()},V=function(t,e){return H(t,e,u)},U=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(e(i,n))return p.some(n)}return p.none()},q=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!_(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);A.apply(e,t[n])}return e},W=function(t,e){return q(I(t,e))},K=function(t,e){for(var n=0,r=t.length;n<r;++n){var i=t[n];if(!0!==e(i,n))return!1}return!0},G=function(t){var e=O.call(t,0);return e.reverse(),e},Y=function(t){return[t]},X=function(t,e){return e>=0&&e<t.length?p.some(t[e]):p.none()},Z=function(t){return X(t,0)},J=function(t){return X(t,t.length-1)},Q=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return p.none()},tt=function(){return tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},tt.apply(this,arguments)};function et(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var nt=function(t){var e,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,e=t.apply(null,r)),e}},rt=function(t,e,n,i){var o=t.isiOS()&&!0===/ipad/i.test(n),a=t.isiOS()&&!o,s=t.isiOS()||t.isAndroid(),u=s||i("(pointer:coarse)"),c=o||!a&&s&&i("(min-device-width:768px)"),l=a||s&&!c,f=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!f;return{isiPad:r(o),isiPhone:r(a),isTablet:r(c),isPhone:r(l),isTouch:r(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:r(f),isDesktop:r(d)}},it=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},ot=function(t,e){var n=it(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return ut(r(1),r(2))},at=function(t,e){var n=String(e).toLowerCase();return 0===t.length?st():ot(t,n)},st=function(){return ut(0,0)},ut=function(t,e){return{major:t,minor:e}},ct={nu:ut,detect:at,unknown:st},lt=function(t,e){var n=String(e).toLowerCase();return V(t,(function(t){return t.search(n)}))},ft=function(t,e){return lt(t,e).map((function(t){var n=ct.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},dt=function(t,e){return lt(t,e).map((function(t){var n=ct.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},ht={detectBrowser:ft,detectOs:dt},pt=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},mt=function(t,e){return-1!==t.indexOf(e)},gt=function(t,e){return pt(t,e,0)},vt=function(t,e){return pt(t,e,t.length-e.length)},bt=function(t){return function(e){return e.replace(t,"")}},yt=bt(/^\s+|\s+$/g),wt=function(t){return t.length>0},_t=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,xt=function(t){return function(e){return mt(e,t)}},Ct=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return mt(t,"edge/")&&mt(t,"chrome")&&mt(t,"safari")&&mt(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,_t],search:function(t){return mt(t,"chrome")&&!mt(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return mt(t,"msie")||mt(t,"trident")}},{name:"Opera",versionRegexes:[_t,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:xt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:xt("firefox")},{name:"Safari",versionRegexes:[_t,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(mt(t,"safari")||mt(t,"mobile/"))&&mt(t,"applewebkit")}}],St=[{name:"Windows",search:xt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return mt(t,"iphone")||mt(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:xt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:xt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:xt("linux"),versionRegexes:[]},{name:"Solaris",search:xt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:xt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:xt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],kt={browsers:r(Ct),oses:r(St)},Mt="Edge",Et="Chrome",Ot="IE",Tt="Opera",At="Firefox",Dt="Safari",Nt=function(){return Rt({current:void 0,version:ct.unknown()})},Rt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Mt),isChrome:r(Et),isIE:r(Ot),isOpera:r(Tt),isFirefox:r(At),isSafari:r(Dt)}},Pt={unknown:Nt,nu:Rt,edge:r(Mt),chrome:r(Et),ie:r(Ot),opera:r(Tt),firefox:r(At),safari:r(Dt)},It="Windows",Bt="iOS",Lt="Android",zt="Linux",jt="OSX",Ft="Solaris",$t="FreeBSD",Ht="ChromeOS",Vt=function(){return Ut({current:void 0,version:ct.unknown()})},Ut=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(It),isiOS:r(Bt),isAndroid:r(Lt),isOSX:r(jt),isLinux:r(zt),isSolaris:r(Ft),isFreeBSD:r($t),isChromeOS:r(Ht)}},qt={unknown:Vt,nu:Ut,windows:r(It),ios:r(Bt),android:r(Lt),linux:r(zt),osx:r(jt),solaris:r(Ft),freebsd:r($t),chromeos:r(Ht)},Wt=function(t,e){var n=kt.browsers(),r=kt.oses(),i=ht.detectBrowser(n,t).fold(Pt.unknown,Pt.nu),o=ht.detectOs(r,t).fold(qt.unknown,qt.nu),a=rt(o,i,t,e);return{browser:i,os:o,deviceType:a}},Kt={detect:Wt},Gt=function(t){return window.matchMedia(t).matches},Yt=nt((function(){return Kt.detect(navigator.userAgent,Gt)})),Xt=function(){return Yt()},Zt=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},Jt=function(t,e){return Zt(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Qt=8,te=9,ee=11,ne=1,re=3,ie=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return se(r.childNodes[0])},oe=function(t,e){var n=e||document,r=n.createElement(t);return se(r)},ae=function(t,e){var n=e||document,r=n.createTextNode(t);return se(r)},se=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},ue=function(t,e,n){return p.from(t.dom.elementFromPoint(e,n)).map(se)},ce={fromHtml:ie,fromTag:oe,fromText:ae,fromDom:se,fromPoint:ue},le=function(t,e){var n=t.dom;if(n.nodeType!==ne)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},fe=function(t){return t.nodeType!==ne&&t.nodeType!==te&&t.nodeType!==ee||0===t.childElementCount},de=function(t,e){var n=void 0===e?document:e.dom;return fe(n)?[]:I(n.querySelectorAll(t),ce.fromDom)},he=function(t,e){var n=void 0===e?document:e.dom;return fe(n)?p.none():p.from(n.querySelector(t)).map(ce.fromDom)},pe=function(t,e){return t.dom===e.dom},me=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},ge=function(t,e){return Jt(t.dom,e.dom)},ve=function(t,e){return Xt().browser.isIE()?ge(t,e):me(t,e)},be=le,ye=Object.keys,we=Object.hasOwnProperty,_e=function(t,e){for(var n=ye(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];e(a,o)}},xe=function(t,e){return Ce(t,(function(t,n){return{k:n,v:e(t,n)}}))},Ce=function(t,e){var n={};return _e(t,(function(t,r){var i=e(t,r);n[i.k]=i.v})),n},Se=function(t){return function(e,n){t[n]=e}},ke=function(t,e,n,r){var i={};return _e(t,(function(t,i){(e(t,i)?n:r)(t,i)})),i},Me=function(e,n){var r={};return ke(e,n,Se(r),t),r},Ee=function(t,e){var n=[];return _e(t,(function(t,r){n.push(e(t,r))})),n},Oe=function(t){return Ee(t,(function(t){return t}))},Te=function(t,e){return Ae(t,e)?p.from(t[e]):p.none()},Ae=function(t,e){return we.call(t,e)},De=function(t,e){return Ae(t,e)&&void 0!==t[e]&&null!==t[e]},Ne=function(t){for(var e in t)if(we.call(t,e))return!1;return!0},Re=["tfoot","thead","tbody","colgroup"],Pe=function(t){return N(Re,t)},Ie=function(t,e){return{rows:t,columns:e}},Be=function(t,e){return{row:t,column:e}},Le=function(t,e,n){return{element:t,rowspan:e,colspan:n}},ze=function(t,e,n,r){return{element:t,rowspan:e,colspan:n,isNew:r}},je=function(t,e,n,r,i){return{element:t,rowspan:e,colspan:n,row:r,column:i}},Fe=function(t,e,n){return{element:t,cells:e,section:n}},$e=function(t,e){return{element:t,isNew:e}},He=function(t,e,n,r){return{element:t,cells:e,section:n,isNew:r}},Ve=function(t,e){return{cells:t,section:e}},Ue=function(t,e){return{details:t,section:e}},qe=function(t,e,n,r){return{startRow:t,startCol:e,finishRow:n,finishCol:r}},We=function(t,e,n){return{element:t,colspan:e,column:n}},Ke=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Ge=function(t){return t.dom.nodeType},Ye=function(t){return function(e){return Ge(e)===t}},Xe=function(t){return Ge(t)===Qt||"#comment"===Ke(t)},Ze=Ye(ne),Je=Ye(re),Qe=Ye(te),tn=Ye(ee),en=function(t){return function(e){return Ze(e)&&Ke(e)===t}},nn=function(t){return ce.fromDom(t.dom.ownerDocument)},rn=function(t){return Qe(t)?t:nn(t)},on=function(t){return ce.fromDom(rn(t).dom.defaultView)},an=function(t){return p.from(t.dom.parentNode).map(ce.fromDom)},sn=function(t,e){var n=M(e)?e:u,r=t.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=ce.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},un=function(t){return p.from(t.dom.offsetParent).map(ce.fromDom)},cn=function(t){return p.from(t.dom.previousSibling).map(ce.fromDom)},ln=function(t){return p.from(t.dom.nextSibling).map(ce.fromDom)},fn=function(t){return I(t.dom.childNodes,ce.fromDom)},dn=function(t,e){var n=t.dom.childNodes;return p.from(n[e]).map(ce.fromDom)},hn=function(t){return dn(t,0)},pn=function(t){return tn(t)},mn=M(Element.prototype.attachShadow)&&M(Node.prototype.getRootNode),gn=r(mn),vn=mn?function(t){return ce.fromDom(t.dom.getRootNode())}:rn,bn=function(t){var e=vn(t);return pn(e)?p.some(e):p.none()},yn=function(t){return ce.fromDom(t.dom.host)},wn=function(t){if(gn()&&k(t.target)){var e=ce.fromDom(t.target);if(Ze(e)&&_n(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return Z(n)}}return p.from(t.target)},_n=function(t){return k(t.dom.shadowRoot)},xn=function(t){var e=Je(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var r=e.ownerDocument;return bn(ce.fromDom(e)).fold((function(){return r.body.contains(e)}),n(xn,yn))},Cn=function(){return Sn(ce.fromDom(document))},Sn=function(t){var e=t.dom.body;if(null===e||void 0===e)throw new Error("Body is not available yet");return ce.fromDom(e)},kn=function(t,e,n){return j(sn(t,n),e)},Mn=function(t,e){return j(fn(t),e)},En=function(t,e){var n=[];return B(fn(t),(function(t){e(t)&&(n=n.concat([t])),n=n.concat(En(t,e))})),n},On=function(t,e,n){return kn(t,(function(t){return le(t,e)}),n)},Tn=function(t,e){return Mn(t,(function(t){return le(t,e)}))},An=function(t,e){return de(e,t)};function Dn(t,e,n,r,i){return t(n,r)?p.some(n):M(i)&&i(n)?p.none():e(n,r,i)}var Nn=function(t,e,n){var r=t.dom,i=M(n)?n:u;while(r.parentNode){r=r.parentNode;var o=ce.fromDom(r);if(e(o))return p.some(o);if(i(o))break}return p.none()},Rn=function(t,e,n){var r=function(t,e){return e(t)};return Dn(r,Nn,t,e,n)},Pn=function(t,e){var n=function(t){return e(ce.fromDom(t))},r=V(t.dom.childNodes,n);return r.map(ce.fromDom)},In=function(t,e){var n=function(t){for(var r=0;r<t.childNodes.length;r++){var i=ce.fromDom(t.childNodes[r]);if(e(i))return p.some(i);var o=n(t.childNodes[r]);if(o.isSome())return o}return p.none()};return n(t.dom)},Bn=function(t,e,n){return Nn(t,(function(t){return le(t,e)}),n)},Ln=function(t,e){return Pn(t,(function(t){return le(t,e)}))},zn=function(t,e){return he(e,t)},jn=function(t,e,n){var r=function(t,e){return le(t,e)};return Dn(r,Bn,t,e,n)},Fn=function(t,e,n){if(!(y(n)||x(n)||E(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},$n=function(t,e,n){Fn(t.dom,e,n)},Hn=function(t,e){var n=t.dom;_e(e,(function(t,e){Fn(n,e,t)}))},Vn=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},Un=function(t,e){return p.from(Vn(t,e))},qn=function(t,e){t.dom.removeAttribute(e)},Wn=function(t){return $(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},Kn=function(t){return void 0!==t.style&&M(t.style.getPropertyValue)},Gn=function(t,e,n){if(!y(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);Kn(t)&&t.style.setProperty(e,n)},Yn=function(t,e){Kn(t)&&t.style.removeProperty(e)},Xn=function(t,e,n){var r=t.dom;Gn(r,e,n)},Zn=function(t,e){var n=t.dom;_e(e,(function(t,e){Gn(n,e,t)}))},Jn=function(t,e){var n=t.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(e);return""!==i||xn(t)?i:Qn(n,e)},Qn=function(t,e){return Kn(t)?t.style.getPropertyValue(e):""},tr=function(t,e){var n=t.dom,r=Qn(n,e);return p.from(r).filter((function(t){return t.length>0}))},er=function(t,e){var n=t.dom;Yn(n,e),Un(t,"style").map(yt).is("")&&qn(t,"style")},nr=function(t,e){var n=t.dom,r=e.dom;Kn(n)&&Kn(r)&&(r.style.cssText=n.style.cssText)},rr=function(t,e,n){return void 0===n&&(n=0),Un(t,e).map((function(t){return parseInt(t,10)})).getOr(n)},ir=function(t,e){return rr(t,e,1)},or=function(t){return ir(t,"colspan")>1},ar=function(t){return ir(t,"rowspan")>1},sr=function(t,e){return parseInt(Jn(t,e),10)},ur=r(10),cr=r(10),lr=function(t,e){return fr(t,e,c)},fr=function(t,e,n){return W(fn(t),(function(t){return le(t,e)?n(t)?[t]:[]:fr(t,e,n)}))},dr=function(t,e,n){if(void 0===n&&(n=u),n(e))return p.none();if(N(t,Ke(e)))return p.some(e);var r=function(t){return le(t,"table")||n(t)};return Bn(e,t.join(","),r)},hr=function(t,e){return dr(["td","th"],t,e)},pr=function(t){return lr(t,"th,td")},mr=function(t){return le(t,"colgroup")?Tn(t,"col"):W(br(t),(function(t){return Tn(t,"col")}))},gr=function(t,e){return jn(t,"table",e)},vr=function(t){return lr(t,"tr")},br=function(t){return gr(t).fold(r([]),(function(t){return Tn(t,"colgroup")}))},yr=function(t,e){return I(t,(function(t){if("colgroup"===Ke(t)){var n=I(mr(t),(function(t){var e=rr(t,"span",1);return Le(t,1,e)}));return Fe(t,n,"colgroup")}n=I(pr(t),(function(t){var e=rr(t,"rowspan",1),n=rr(t,"colspan",1);return Le(t,e,n)}));return Fe(t,n,e(t))}))},wr=function(t){return an(t).map((function(t){var e=Ke(t);return Pe(e)?e:"tbody"})).getOr("tbody")},_r=function(t){var e=vr(t),n=br(t),r=et(n,e);return yr(r,wr)},xr=function(t,e){return yr(t,(function(){return e}))},Cr=function(t,e){return t+","+e},Sr=function(t,e,n){var r=t.access[Cr(e,n)];return void 0!==r?p.some(r):p.none()},kr=function(t,e,n){var r=Mr(t,(function(t){return n(e,t.element)}));return r.length>0?p.some(r[0]):p.none()},Mr=function(t,e){var n=W(t.all,(function(t){return t.cells}));return j(n,e)},Er=function(t){var e={},n=0;return B(t.cells,(function(t){var r=t.colspan;P(r,(function(i){var o=n+i;e[o]=We(t.element,r,o)})),n+=r})),e},Or=function(t){var e={},n=[],r={},i=0,o=0,a=0;B(t,(function(t){if("colgroup"===t.section)r=Er(t);else{var s=[];B(t.cells,(function(t){var n=0;while(void 0!==e[Cr(a,n)])n++;for(var r=je(t.element,t.rowspan,t.colspan,a,n),i=0;i<t.colspan;i++)for(var u=0;u<t.rowspan;u++){var c=a+u,l=n+i,f=Cr(c,l);e[f]=r,o=Math.max(o,l+1)}s.push(r)})),i++,n.push(Fe(t.element,s,t.section)),a++}}));var s=Ie(i,o);return{grid:s,access:e,all:n,columns:r}},Tr=function(t){var e=_r(t);return Or(e)},Ar=function(t){return W(t.all,(function(t){return t.cells}))},Dr=function(t){return Oe(t.columns)},Nr=function(t){return ye(t.columns).length>0},Rr=function(t,e){return p.from(t.columns[e])},Pr={fromTable:Tr,generate:Or,getAt:Sr,findItem:kr,filterItems:Mr,justCells:Ar,justColumns:Dr,hasColumns:Nr,getColumnAt:Rr},Ir=function(t,e){var n=e.column,r=e.column+e.colspan-1,i=e.row,o=e.row+e.rowspan-1;return n<=t.finishCol&&r>=t.startCol&&i<=t.finishRow&&o>=t.startRow},Br=function(t,e){return e.column>=t.startCol&&e.column+e.colspan-1<=t.finishCol&&e.row>=t.startRow&&e.row+e.rowspan-1<=t.finishRow},Lr=function(t,e){for(var n=!0,r=o(Br,e),i=e.startRow;i<=e.finishRow;i++)for(var a=e.startCol;a<=e.finishCol;a++)n=n&&Pr.getAt(t,i,a).exists(r);return n?p.some(e):p.none()},zr=function(t,e){return qe(Math.min(t.row,e.row),Math.min(t.column,e.column),Math.max(t.row+t.rowspan-1,e.row+e.rowspan-1),Math.max(t.column+t.colspan-1,e.column+e.colspan-1))},jr=function(t,e,n){var r=Pr.findItem(t,e,pe),i=Pr.findItem(t,n,pe);return r.bind((function(t){return i.map((function(e){return zr(t,e)}))}))},Fr=function(t,e,n){return jr(t,e,n).bind((function(e){return Lr(t,e)}))},$r=function(t,e,n,r){return Pr.findItem(t,e,pe).bind((function(e){var i=n>0?e.row+e.rowspan-1:e.row,o=r>0?e.column+e.colspan-1:e.column,a=Pr.getAt(t,i+n,o+r);return a.map((function(t){return t.element}))}))},Hr=function(t,e,n){return jr(t,e,n).map((function(e){var n=Pr.filterItems(t,o(Ir,e));return I(n,(function(t){return t.element}))}))},Vr=function(t,e){var n=function(t,e){return ve(e,t)};return Pr.findItem(t,e,n).map((function(t){return t.element}))},Ur=function(t,e,n){return gr(t).bind((function(r){var i=Gr(r);return $r(i,t,e,n)}))},qr=function(t,e,n){var r=Gr(t);return Hr(r,e,n)},Wr=function(t,e,n,r,i){var o=Gr(t),a=pe(t,n)?p.some(e):Vr(o,e),s=pe(t,i)?p.some(r):Vr(o,r);return a.bind((function(t){return s.bind((function(e){return Hr(o,t,e)}))}))},Kr=function(t,e,n){var r=Gr(t);return Fr(r,e,n)},Gr=Pr.fromTable,Yr=function(t,e){var n=an(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},Xr=function(t,e){var n=ln(t);n.fold((function(){var n=an(t);n.each((function(t){Jr(t,e)}))}),(function(t){Yr(t,e)}))},Zr=function(t,e){var n=hn(t);n.fold((function(){Jr(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},Jr=function(t,e){t.dom.appendChild(e.dom)},Qr=function(t,e){Yr(t,e),Jr(e,t)},ti=function(t,e){B(e,(function(e){Yr(t,e)}))},ei=function(t,e){B(e,(function(n,r){var i=0===r?t:e[r-1];Xr(i,n)}))},ni=function(t,e){B(e,(function(e){Jr(t,e)}))},ri=function(t){t.dom.textContent="",B(fn(t),(function(t){ii(t)}))},ii=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},oi=function(t){var e=fn(t);e.length>0&&ti(t,e),ii(t)};function ai(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?p.from(e.dom.nodeValue):p.none()},i=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}}var si=ai(Je,"text"),ui=function(t){return si.get(t)},ci=function(t){return si.getOption(t)},li=function(t,e){return si.set(t,e)},fi=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function di(){var t=function(t){return ce.fromDom(t.dom.cloneNode(!1))},e=function(t){return rn(t).dom},n=function(t){return!!Ze(t)&&("body"===Ke(t)||N(fi,Ke(t)))},i=function(t){return!!Ze(t)&&N(["br","img","hr","input"],Ke(t))},o=function(t){return Ze(t)&&"false"===Vn(t,"contenteditable")},a=function(t,e){return t.dom.compareDocumentPosition(e.dom)},s=function(t,e){var n=Wn(t);Hn(e,n)};return{up:r({selector:Bn,closest:jn,predicate:Nn,all:sn}),down:r({selector:An,predicate:En}),styles:r({get:Jn,getRaw:tr,set:Xn,remove:er}),attrs:r({get:Vn,set:$n,remove:qn,copyTo:s}),insert:r({before:Yr,after:Xr,afterAll:ei,append:Jr,appendAll:ni,prepend:Zr,wrap:Qr}),remove:r({unwrap:oi,remove:ii}),create:r({nu:ce.fromTag,clone:t,text:ce.fromText}),query:r({comparePosition:a,prevSibling:cn,nextSibling:ln}),property:r({children:fn,name:Ke,parent:an,document:e,isText:Je,isComment:Xe,isElement:Ze,getText:ui,setText:li,isBoundary:n,isEmptyTag:i,isNonEditable:o}),eq:pe,is:be}}var hi=function(t,e,n,r){var i=n[0],o=n.slice(1);return r(t,e,i,o)},pi=function(t,e,n){return n.length>0?hi(t,e,n,mi):p.none()},mi=function(t,e,n,r){var i=e(t,n);return F(r,(function(n,r){var i=e(t,r);return gi(t,n,i)}),i)},gi=function(t,e,n){return e.bind((function(e){return n.filter(o(t.eq,e))}))},vi=function(t,e){return o(t.eq,e)},bi=function(t,e,n,r){void 0===r&&(r=u);var i=[e].concat(t.up().all(e)),o=[n].concat(t.up().all(n)),a=function(t){var e=U(t,r);return e.fold((function(){return t}),(function(e){return t.slice(0,e+1)}))},s=a(i),c=a(o),l=V(s,(function(e){return R(c,vi(t,e))}));return{firstpath:s,secondpath:c,shared:l}},yi=pi,wi=bi,_i=di(),xi=function(t,e){return yi(_i,(function(e,n){return t(n)}),e)},Ci=function(t,e,n){return wi(_i,t,e,n)},Si=function(t){return Bn(t,"table")},ki=function(t,e,n){var r=function(t){return function(e){return void 0!==n&&n(e)||pe(e,t)}};return pe(t,e)?p.some({boxes:p.some([t]),start:t,finish:e}):Si(t).bind((function(i){return Si(e).bind((function(o){if(pe(i,o))return p.some({boxes:qr(i,t,e),start:t,finish:e});if(ve(i,o)){var a=On(e,"td,th",r(i)),s=a.length>0?a[a.length-1]:e;return p.some({boxes:Wr(i,t,i,e,o),start:t,finish:s})}if(ve(o,i)){a=On(t,"td,th",r(o));var u=a.length>0?a[a.length-1]:t;return p.some({boxes:Wr(o,t,i,e,o),start:t,finish:u})}return Ci(t,e).shared.bind((function(a){return jn(a,"table",n).bind((function(n){var a=On(e,"td,th",r(n)),s=a.length>0?a[a.length-1]:e,u=On(t,"td,th",r(n)),c=u.length>0?u[u.length-1]:t;return p.some({boxes:Wr(n,t,i,e,o),start:c,finish:s})}))}))}))}))},Mi=function(t,e){var n=An(t,e);return n.length>0?p.some(n):p.none()},Ei=function(t,e){return V(t,(function(t){return le(t,e)}))},Oi=function(t,e,n){return zn(t,e).bind((function(e){return zn(t,n).bind((function(t){return xi(Si,[e,t]).map((function(n){return{first:e,last:t,table:n}}))}))}))},Ti=function(t,e){return Bn(t,"table").bind((function(n){return zn(n,e).bind((function(e){return ki(e,t).bind((function(t){return t.boxes.map((function(e){return{boxes:e,start:t.start,finish:t.finish}}))}))}))}))},Ai=function(t,e,n,r,i){return Ei(t,i).bind((function(t){return Ur(t,e,n).bind((function(t){return Ti(t,r)}))}))},Di=function(t,e){return Mi(t,e)},Ni=function(t,e,n){return Oi(t,e,n).bind((function(e){var n=function(e){return pe(t,e)},r="thead,tfoot,tbody,table",i=Bn(e.first,r,n),o=Bn(e.last,r,n);return i.bind((function(t){return o.bind((function(n){return pe(t,n)?Kr(e.table,e.first,e.last):p.none()}))}))}))},Ri=function(t){if(!_(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return B(t,(function(r,i){var o=ye(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!_(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){var n=arguments.length;if(n!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+n);for(var r=new Array(n),o=0;o<r.length;o++)r[o]=arguments[o];var u=function(t){var n=ye(t);if(e.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+n.join(","));var i=K(e,(function(t){return N(n,t)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,r)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[i];return e.apply(null,r)},match:u,log:function(t){console.log(t,{constructors:e,constructor:a,params:r})}}}})),n},Pi={generate:Ri},Ii=Pi.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),Bi=function(t,e,n,r){return t.fold(e,n,r)},Li=Ii.none,zi=Ii.multiple,ji=Ii.single,Fi=function(t,e,n){var r=function(){return Di(t(),n).fold((function(){return e().map(ji).getOrThunk(Li)}),(function(t){return zi(t)}))};return{get:r}},$i=tinymce.util.Tools.resolve("tinymce.PluginManager"),Hi=function(t,e,n,r){return{minRow:t,minCol:e,maxRow:n,maxCol:r}},Vi=function(t,e){var n=t.grid.columns,r=t.grid.rows,i=r,o=n,a=0,s=0;return _e(t.access,(function(t){if(e(t)){var n=t.row,r=n+t.rowspan-1,u=t.column,c=u+t.colspan-1;n<i?i=n:r>a&&(a=r),u<o?o=u:c>s&&(s=c)}})),Hi(i,o,a,s)},Ui=function(t,e,n){var r=t[n].element,i=ce.fromTag("td");Jr(i,ce.fromTag("br"));var o=e?Jr:Zr;o(r,i)},qi=function(t,e,n,r){for(var i=e.grid.columns,o=e.grid.rows,a=0;a<o;a++)for(var s=!1,u=0;u<i;u++)if(!(a<n.minRow||a>n.maxRow||u<n.minCol||u>n.maxCol)){var c=Pr.getAt(e,a,u).filter(r).isNone();c?Ui(t,s,a):s=!0}},Wi=function(t,e){var n=j(lr(t,"tr"),(function(t){return 0===t.dom.childElementCount}));B(n,ii),e.minCol!==e.maxCol&&e.minRow!==e.maxRow||B(lr(t,"th,td"),(function(t){qn(t,"rowspan"),qn(t,"colspan")})),qn(t,"width"),qn(t,"height"),er(t,"width"),er(t,"height")},Ki=function(t,e){var n=function(t){return le(t.element,e)},r=_r(t),i=Pr.generate(r),o=Vi(i,n),a="th:not("+e+"),td:not("+e+")",s=fr(t,"th,td",(function(t){return le(t,a)}));return B(s,ii),qi(r,i,o,n),Wi(t,o),t},Gi=" ",Yi=function(t){return"img"===Ke(t)?1:ci(t).fold((function(){return fn(t).length}),(function(t){return t.length}))},Xi=function(t){return ci(t).filter((function(t){return 0!==t.trim().length||t.indexOf(Gi)>-1})).isSome()},Zi=["img","br"],Ji=function(t){var e=Xi(t);return e||N(Zi,Ke(t))},Qi=function(t){return In(t,Ji)},to=function(t){return eo(t,Ji)},eo=function(t,e){var n=function(t){for(var r=fn(t),i=r.length-1;i>=0;i--){var o=r[i];if(e(o))return p.some(o);var a=n(o);if(a.isSome())return a}return p.none()};return n(t)},no=function(t,e){return ce.fromDom(t.dom.cloneNode(e))},ro=function(t){return no(t,!1)},io=function(t){return no(t,!0)},oo=function(t,e){var n=ce.fromTag(e),r=Wn(t);return Hn(n,r),n},ao=function(t,e){var n=oo(t,e),r=fn(io(t));return ni(n,r),n},so={scope:["row","col"]},uo=function(){var t=ce.fromTag("td");return Jr(t,ce.fromTag("br")),t},co=function(){return ce.fromTag("col")},lo=function(){return ce.fromTag("colgroup")},fo=function(t,e,n){var r=ao(t,e);return _e(n,(function(t,e){null===t?qn(r,e):$n(r,e,t)})),r},ho=function(t){return t},po=function(t){return function(){return ce.fromTag("tr",t.dom)}},mo=function(t,e,n){var r=Qi(t);return r.map((function(r){var i=n.join(","),o=On(r,i,(function(e){return pe(e,t)}));return F(o,(function(t,e){var n=ro(e);return qn(n,"contenteditable"),Jr(t,n),n}),e)})).getOr(e)},go=function(t,e){_e(so,(function(n,r){return Un(t,r).filter((function(t){return N(n,t)})).each((function(t){return $n(e,r,t)}))}))},vo=function(t,e,n){var r=function(t,e){nr(t.element,e),er(e,"height"),1!==t.colspan&&er(t.element,"width")},i=function(e){var i=nn(e.element),o=ce.fromTag(Ke(e.element),i.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?mo(e.element,o,a):o;return Jr(s,ce.fromTag("br")),r(e,o),go(e.element,o),t(e.element,o),o},o=function(e){var n=nn(e.element),i=ce.fromTag(Ke(e.element),n.dom);return r(e,i),t(e.element,i),i};return{col:o,colgroup:lo,row:po(e),cell:i,replace:fo,gap:uo}},bo=function(t){return{col:co,colgroup:lo,row:po(t),cell:uo,replace:ho,gap:uo}},yo=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,fn(ce.fromDom(r))},wo=function(t){return I(t,ce.fromDom)},_o=function(t){return Bi(t.get(),r([]),i,Y)},xo=function(t){var e=function(t,e){return Un(t,e).exists((function(t){return parseInt(t,10)>1}))},n=function(t){return e(t,"rowspan")||e(t,"colspan")},r=_o(t);return r.length>0&&K(r,n)?p.some(r):p.none()},Co=function(t,e,n){return Bi(e.get(),p.none,(function(e){return e.length<=1?p.none():Ni(t,n.firstSelectedSelector,n.lastSelectedSelector).map((function(t){return{bounds:t,cells:e}}))}),p.none)},So="data-mce-selected",ko="td["+So+"],th["+So+"]",Mo="["+So+"]",Eo="data-mce-first-selected",Oo="td["+Eo+"],th["+Eo+"]",To="data-mce-last-selected",Ao="td["+To+"],th["+To+"]",Do=Mo,No={selected:So,selectedSelector:ko,firstSelected:Eo,firstSelectedSelector:Oo,lastSelected:To,lastSelectedSelector:Ao},Ro=function(t){return{element:t,mergable:p.none(),unmergable:p.none(),selection:[t]}},Po=function(t,e,n){return{element:n,mergable:Co(e,t,No),unmergable:xo(t),selection:_o(t)}},Io=function(t,e,n){return{element:t,clipboard:e,generators:n}},Bo=function(t,e,n,r){return{selection:_o(t),clipboard:n,generators:r}},Lo=function(t){return gr(t[0]).map(io).map((function(t){return[Ki(t,Do)]}))},zo=function(t,e){return I(e,(function(e){return t.selection.serializer.serialize(e.dom,{})})).join("")},jo=function(t){return I(t,(function(t){return t.dom.innerText})).join("")},Fo=function(e,n,r,i){e.on("BeforeGetContent",(function(r){var i=function(t){r.preventDefault(),Lo(t).each((function(t){r.content="text"===r.format?jo(t):zo(e,t)}))};!0===r.selection&&Bi(n.get(),t,i,t)})),e.on("BeforeSetContent",(function(t){if(!0===t.selection&&!0===t.paste){var n=p.from(e.dom.getParent(e.selection.getStart(),"th,td"));n.each((function(n){var o=ce.fromDom(n);gr(o).each((function(n){var a=j(yo(t.content),(function(t){return"meta"!==Ke(t)})),s=function(t){return"table"===Ke(t)};if(1===a.length&&s(a[0])){t.preventDefault();var u=ce.fromDom(e.getDoc()),c=bo(u),l=Io(o,a[0],c);r.pasteCells(n,l).each((function(t){e.selection.setRng(t),e.focus(),i.clear(n)}))}}))}))}}))},$o=Pi.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Ho=tt({},$o),Vo=function(t,e){return 0===t.length?Ho.none():1===t.length?Ho.only(0):0===e?Ho.left(0,1):e===t.length-1?Ho.right(e-1,e):e>0&&e<t.length-1?Ho.middle(e-1,e,e+1):Ho.none()},Uo=function(t,e,n,i,o){var a=t.slice(0),s=Vo(t,e),u=r(I(a,r(0))),c=function(t){return i.singleColumnWidth(a[t],n)},l=function(t,e){return o.calcLeftEdgeDeltas(a,t,e,n,i.minCellWidth(),i.isRelative)},f=function(t,e,r){return o.calcMiddleDeltas(a,t,e,r,n,i.minCellWidth(),i.isRelative)},d=function(t,e){return o.calcRightEdgeDeltas(a,t,e,n,i.minCellWidth(),i.isRelative)};return s.fold(u,c,l,f,d)},qo=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},Wo=function(t,e,n){return t.isSome()&&e.isSome()?p.some(n(t.getOrDie(),e.getOrDie())):p.none()},Ko=function(t,e){return void 0!==t&&null!==t?e(t):p.none()};function Go(t,e){var n=function(e,n){if(!E(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Kn(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var i=Jn(n,t);return parseFloat(i)||0}return r},i=r,o=function(t,e){return $(e,(function(e,n){var r=Jn(t,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?e:e+i}),0)},a=function(t,e,n){var r=o(t,n),i=e>r?e-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}}var Yo=Go("width",(function(t){return t.dom.offsetWidth})),Xo=function(t){return Yo.get(t)},Zo=function(t){return Yo.getOuter(t)},Jo=function(t){var e=t.grid,n=P(e.columns,i),r=P(e.rows,i);return I(n,(function(e){var n=function(){return W(r,(function(n){return Pr.getAt(t,n,e).filter((function(t){return t.column===e})).toArray()}))},i=function(t){return 1===t.colspan},o=function(){return Pr.getAt(t,0,e)};return Qo(n,i,o)}))},Qo=function(t,e,n){var r=t(),i=V(r,e),o=i.orThunk((function(){return p.from(r[0]).orThunk(n)}));return o.map((function(t){return t.element}))},ta=function(t){var e=t.grid,n=P(e.rows,i),o=P(e.columns,i);return I(n,(function(e){var n=function(){return W(o,(function(n){return Pr.getAt(t,e,n).filter((function(t){return t.row===e})).fold(r([]),(function(t){return[t]}))}))},i=function(t){return 1===t.rowspan},a=function(){return Pr.getAt(t,e,0)};return Qo(n,i,a)}))},ea=function(t,e){if(e<0||e>=t.length-1)return p.none();var n=t[e].fold((function(){var n=G(t.slice(0,e));return Q(n,(function(t,e){return t.map((function(t){return{value:t,delta:e+1}}))}))}),(function(t){return p.some({value:t,delta:0})})),r=t[e+1].fold((function(){var n=t.slice(e+1);return Q(n,(function(t,e){return t.map((function(t){return{value:t,delta:e+1}}))}))}),(function(t){return p.some({value:t,delta:1})}));return n.bind((function(t){return r.map((function(e){var n=e.delta+t.delta;return Math.abs(e.value-t.value)/n}))}))},na=function(t,e){return function(n){return"rtl"===ra(n)?e:t}},ra=function(t){return"rtl"===Jn(t,"direction")?"rtl":"ltr"},ia=Go("height",(function(t){var e=t.dom;return xn(t)?e.getBoundingClientRect().height:e.offsetHeight})),oa=function(t){return ia.get(t)},aa=function(t){return ia.getOuter(t)},sa=function(t,e){var n=function(n,r){return sa(t+n,e+r)};return{left:t,top:e,translate:n}},ua=sa,ca=function(t){var e=t.getBoundingClientRect();return ua(e.left,e.top)},la=function(t,e){return void 0!==t?t:void 0!==e?e:0},fa=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,i=e.documentElement;if(n===t.dom)return ua(n.offsetLeft,n.offsetTop);var o=la(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=la(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=la(i.clientTop,n.clientTop),u=la(i.clientLeft,n.clientLeft);return da(t).translate(a-u,o-s)},da=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?ua(r.offsetLeft,r.offsetTop):xn(t)?ca(e):ua(0,0)},ha=function(t,e){return{row:t,y:e}},pa=function(t,e){return{col:t,x:e}},ma=function(t){var e=fa(t);return e.left+Zo(t)},ga=function(t){return fa(t).left},va=function(t,e){return pa(t,ga(e))},ba=function(t,e){return pa(t,ma(e))},ya=function(t){return fa(t).top},wa=function(t,e){return ha(t,ya(e))},_a=function(t,e){return ha(t,ya(e)+aa(e))},xa=function(t,e,n){if(0===n.length)return[];var r=I(n.slice(1),(function(e,n){return e.map((function(e){return t(n,e)}))})),i=n[n.length-1].map((function(t){return e(n.length-1,t)}));return r.concat([i])},Ca=function(t){return-t},Sa={delta:i,positions:function(t){return xa(wa,_a,t)},edge:ya},ka={delta:i,edge:ga,positions:function(t){return xa(va,ba,t)}},Ma={delta:Ca,edge:ma,positions:function(t){return xa(ba,va,t)}},Ea=na(ka,Ma),Oa={delta:function(t,e){return Ea(e).delta(t,e)},positions:function(t,e){return Ea(e).positions(t,e)},edge:function(t){return Ea(t).edge(t)}},Ta={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Aa=function(){var t="[0-9]+",e="[+-]?"+t,n="[eE]"+e,r="\\.",i=function(t){return"(?:"+t+")?"},o=["Infinity",t+r+i(t)+i(n),r+t+i(n),t+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),Da=function(t,e){return R(e,(function(e){return R(Ta[e],(function(e){return t===e}))}))},Na=function(t,e){var n=p.from(Aa.exec(t));return n.bind((function(t){var n=Number(t[1]),r=t[2];return Da(r,e)?p.some({value:n,unit:r}):p.none()}))},Ra=function(){var t=Xt().browser;return t.isIE()||t.isEdge()},Pa=function(t,e){var n=parseFloat(t);return isNaN(n)?e:n},Ia=function(t,e,n){return Pa(Jn(t,e),n)},Ba=function(t){var e=t.dom.getBoundingClientRect().height,n=Jn(t,"box-sizing");if("border-box"===n)return e;var r=Ia(t,"padding-top",0),i=Ia(t,"padding-bottom",0),o=Ia(t,"border-top-width",0),a=Ia(t,"border-bottom-width",0),s=o+a;return e-r-i-s},La=function(t){var e=t.dom.getBoundingClientRect().width,n=Jn(t,"box-sizing");if("border-box"===n)return e;var r=Ia(t,"padding-left",0),i=Ia(t,"padding-right",0),o=Ia(t,"border-left-width",0),a=Ia(t,"border-right-width",0),s=o+a;return e-r-i-s},za=function(t){return Ra()?Ba(t):Ia(t,"height",oa(t))},ja=function(t){return Ra()?La(t):Ia(t,"width",Xo(t))},Fa=/(\d+(\.\d+)?)%/,$a=/(\d+(\.\d+)?)px|em/,Ha=function(t,e){var n=un(t).getOr(Sn(nn(t)));return e(t)/e(n)*100},Va=function(t,e){Xn(t,"width",e+"px")},Ua=function(t,e){Xn(t,"width",e+"%")},qa=function(t,e){Xn(t,"height",e+"px")},Wa=function(t){return tr(t,"height").getOrThunk((function(){return za(t)+"px"}))},Ka=function(t,e,n,r){var i=gr(t).map((function(t){var r=n(t);return Math.floor(e/100*r)})).getOr(e);return r(t,i),i},Ga=function(t,e,n,r){var i=parseInt(t,10);return vt(t,"%")&&"table"!==Ke(e)?Ka(e,i,n,r):i},Ya=function(t){var e=Wa(t);return e?Ga(e,t,oa,qa):oa(t)},Xa=function(t,e,n){var r=n(t),i=ir(t,e);return r/i},Za=function(t){var e=tr(t,"width");return e.fold((function(){return p.from(Vn(t,"width"))}),(function(t){return p.some(t)}))},Ja=function(t,e){return t/e.pixelWidth()*100},Qa=function(t,e,n){var r=Fa.exec(e);if(null!==r)return parseFloat(r[1]);var i=ja(t);return Ja(i,n)},ts=function(t,e){var n=Za(t);return n.fold((function(){var n=Xo(t);return Ja(n,e)}),(function(n){return Qa(t,n,e)}))},es=function(t,e){return t/100*e.pixelWidth()},ns=function(t,e,n){var r=$a.exec(e);if(null!==r)return parseInt(r[1],10);var i=Fa.exec(e);if(null!==i){var o=parseFloat(i[1]);return es(o,n)}return ja(t)},rs=function(t,e){var n=Za(t);return n.fold((function(){return ja(t)}),(function(n){return ns(t,n,e)}))},is=function(t){return Xa(t,"rowspan",Ya)},os=function(t){var e=Za(t);return e.bind((function(t){return Na(t,["fixed","relative","empty"])}))},as=function(t,e,n){Xn(t,"width",e+n)},ss=function(t){return Xo(t)+"px"},us=function(t){return Ha(t,Xo)+"%"},cs=function(t){return Za(t).exists((function(t){return Fa.test(t)}))},ls=function(t){return Za(t).exists((function(t){return $a.test(t)}))},fs=function(t){return Za(t).isNone()},ds=r(Fa),hs=r($a),ps=en("col"),ms=function(t,e,n){return tr(t,e).fold((function(){return n(t)+"px"}),(function(t){return t}))},gs=function(t,e){var n=function(t){return ps(t)?Xo(t):rs(t,e)};return ms(t,"width",n)},vs=function(t){return ms(t,"height",is)},bs=function(t){return I(Pr.justColumns(t),(function(t){return p.from(t.element)}))},ys=function(t){return!ps(t)||tr(t,"width").isSome()},ws=function(t,e,n,r,i,o){return t.filter(r).fold((function(){return o(ea(n,e))}),(function(t){return i(t)}))},_s=function(t,e,n,r,o){var s=Jo(t),u=Pr.hasColumns(t)?bs(t):s,c=[p.some(Oa.edge(e))].concat(I(Oa.positions(s,e),(function(t){return t.map((function(t){return t.x}))}))),l=a(or);return I(u,(function(t,e){return ws(t,e,c,l,(function(t){if(ys(t))return n(t,o);var a=Ko(s[e],i);return ws(a,e,c,l,(function(t){return r(p.some(Xo(t)))}),r)}),r)}))},xs=function(t){return t.map((function(t){return t+"px"})).getOr("")},Cs=function(t,e,n){return _s(t,e,gs,xs,n)},Ss=function(t,e,n){return _s(t,e,ts,(function(t){return t.fold((function(){return n.minCellWidth()}),(function(t){return t/n.pixelWidth()*100}))}),n)},ks=function(t,e,n){return _s(t,e,rs,(function(t){return t.getOrThunk(n.minCellWidth)}),n)},Ms=function(t,e,n,r,i){var o=ta(t),s=[p.some(n.edge(e))].concat(I(n.positions(o,e),(function(t){return t.map((function(t){return t.y}))})));return I(o,(function(t,e){return ws(t,e,s,a(ar),r,i)}))},Es=function(t,e,n){return Ms(t,e,n,is,(function(t){return t.getOrThunk(cr)}))},Os=function(t,e,n){return Ms(t,e,n,vs,xs)},Ts=function(t,e,n){for(var r=0,i=t;i<e;i++)r+=void 0!==n[i]?n[i]:0;return r},As=function(t,e){var n=Pr.justCells(t);return I(n,(function(t){var n=Ts(t.column,t.column+t.colspan,e);return{element:t.element,width:n,colspan:t.colspan}}))},Ds=function(t,e){var n=Pr.justColumns(t);return I(n,(function(t,n){return{element:t.element,width:e[n],colspan:t.colspan}}))},Ns=function(t,e){var n=Pr.justCells(t);return I(n,(function(t){var n=Ts(t.row,t.row+t.rowspan,e);return{element:t.element,height:n,rowspan:t.rowspan}}))},Rs=function(t,e){return I(t.all,(function(t,n){return{element:t.element,height:e[n]}}))},Ps=function(t){return F(t,(function(t,e){return t+e}),0)},Is=function(t,e){return Pr.hasColumns(t)?Ds(t,e):As(t,e)},Bs=function(t,e,n){var r=Is(t,e);B(r,(function(t){n.setElementWidth(t.element,t.width)}))},Ls=function(t,e,n,r,i){var o=Pr.fromTable(t),a=i.getCellDelta(e),s=i.getWidths(o,i),u=n===o.grid.columns-1,c=r.clampTableDelta(s,n,a,i.minCellWidth(),u),l=Uo(s,n,c,i,r),f=I(l,(function(t,e){return t+s[e]}));Bs(o,f,i),r.resizeTable(i.adjustTableWidth,c,u)},zs=function(t,e,n,r){var i=Pr.fromTable(t),o=Es(i,t,r),a=I(o,(function(t,r){return n===r?Math.max(e+t,cr()):t})),s=Ns(i,a),u=Rs(i,a);B(u,(function(t){qa(t.element,t.height)})),B(s,(function(t){qa(t.element,t.height)}));var c=Ps(a);qa(t,c)},js=function(t,e,n){var r=Pr.generate(e),i=n.getWidths(r,n);Bs(r,i,n)},Fs=function(t){return I(t,r(0))},$s=function(t,e,n,r,i){return i(t.slice(0,e)).concat(r).concat(i(t.slice(n)))},Hs=function(t){return function(e,n,r,i){if(t(r)){var o=Math.max(i,e[n]-Math.abs(r)),a=Math.abs(o-e[n]);return r>=0?a:-a}return r}},Vs=Hs((function(t){return t<0})),Us=Hs(c),qs=function(){var t=function(t,e,n,r,i){var o=Vs(t,e,r,i);return $s(t,e,n+1,[o,0],Fs)},e=function(t,e,n,r){var i=(100+n)/100,o=Math.max(r,(t[e]+n)/i);return I(t,(function(t,n){var r=n===e?o:t/i;return r-t}))},n=function(n,r,i,o,a,s){return s?e(n,r,o,a):t(n,r,i,o,a)},r=function(t,e,r,i,o,a,s){return n(t,r,i,o,a,s)},i=function(t,e){return t(e)},o=function(t,n,r,i,o,a){if(a)return e(t,r,i,o);var s=Vs(t,r,i,o);return Fs(t.slice(0,r)).concat([s])};return{resizeTable:i,clampTableDelta:Vs,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o}},Ws=function(){var t=function(t,e,n,r,i){var o=r>=0?n:e,a=Us(t,o,r,i);return $s(t,e,n+1,[a,-a],Fs)},e=function(e,n,r,i,o,a){return t(e,r,i,o,a)},n=function(t,e,n){n&&t(e)},i=function(t,e,n,i,o,a){if(a)return Fs(t);var s=i/t.length;return I(t,r(s))},o=function(t,e,n,r,i){if(i){if(n>=0)return n;var o=$(t,(function(t,e){return t+e-r}),0);return Math.max(-o,n)}return Vs(t,e,n,r)};return{resizeTable:n,clampTableDelta:o,calcLeftEdgeDeltas:t,calcMiddleDeltas:e,calcRightEdgeDeltas:i}},Ks=function(t,e){var n=p.from(t.dom.documentElement).map(ce.fromDom).getOr(t);return{parent:r(n),view:r(t),origin:r(ua(0,0)),isResizable:e}},Gs=function(t,e,n){var i=function(){return fa(e)};return{parent:r(e),view:r(t),origin:i,isResizable:n}},Ys=function(t,e,n){return{parent:r(e),view:r(t),origin:r(ua(0,0)),isResizable:n}},Xs={only:Ks,detached:Gs,body:Ys},Zs=Pi.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Js=function(t,e,n){var r=n.substring(0,n.length-t.length),i=parseFloat(r);return r===i.toString()?e(i):Zs.invalid(n)},Qs=function(t){return vt(t,"%")?Js("%",Zs.percent,t):vt(t,"px")?Js("px",Zs.pixels,t):Zs.invalid(t)},tu=tt(tt({},Zs),{from:Qs}),eu=function(t,e){return I(t,(function(t){var n=tu.from(t);return n.fold((function(){return t}),(function(t){var n=t/e*100;return n+"%"}),(function(t){return t+"%"}))}))},nu=function(t,e,n){var r=n/e;return I(t,(function(t){var e=tu.from(t);return e.fold((function(){return t}),(function(t){return t*r+"px"}),(function(t){return t/100*n+"px"}))}))},ru=function(t,e){var n=t.fold((function(){return r("")}),(function(t){var n=t/e;return r(n+"px")}),(function(){var t=100/e;return r(t+"%")}));return P(e,n)},iu=function(t,e,n){return t.fold((function(){return e}),(function(t){return nu(e,n,t)}),(function(t){return eu(e,n)}))},ou=function(t,e,n){var r=tu.from(n),i=K(t,(function(t){return"0px"===t}))?ru(r,t.length):iu(r,t,e);return cu(i)},au=function(t,e){return 0===t.length?e:F(t,(function(t,e){return tu.from(e).fold(r(0),i,i)+t}),0)},su=function(t,e){var n=Math.floor(t);return{value:n+e,remainder:t-n}},uu=function(t,e){return tu.from(t).fold(r(t),(function(t){return t+e+"px"}),(function(t){return t+e+"%"}))},cu=function(t){if(0===t.length)return t;var e=F(t,(function(t,e){var n=tu.from(e).fold((function(){return{value:e,remainder:0}}),(function(t){return su(t,"px")}),(function(t){return{value:t+"%",remainder:0}}));return{output:[n.value].concat(t.output),remainder:t.remainder+n.remainder}}),{output:[],remainder:0}),n=e.output;return n.slice(0,n.length-1).concat([uu(n[n.length-1],Math.round(e.remainder))])},lu=tu.from,fu=function(t,e,n){B(e,(function(e){var r=t.slice(e.column,e.colspan+e.column),i=au(r,ur());Xn(e.element,"width",i+n)}))},du=function(t,e,n){B(e,(function(e,r){var i=au([t[r]],ur());Xn(e.element,"width",i+n)}))},hu=function(t,e,n,r){B(n,(function(e){var n=t.slice(e.row,e.rowspan+e.row),i=au(n,cr());Xn(e.element,"height",i+r)})),B(e,(function(e,n){Xn(e.element,"height",t[n])}))},pu=function(t){return lu(t).fold(r("px"),r("px"),r("%"))},mu=function(t,e,n,r){var i=Pr.fromTable(t),o=i.all,a=Pr.justCells(i),s=Pr.justColumns(i);e.each((function(e){var n=pu(e),o=Xo(t),u=Cs(i,t,r),c=ou(u,o,e);Pr.hasColumns(i)?du(c,s,n):fu(c,a,n),Xn(t,"width",e)})),n.each((function(e){var n=pu(e),r=oa(t),s=Os(i,t,Sa),u=ou(s,r,e);hu(u,o,a,n),Xn(t,"height",e)}))},gu=cs,vu=ls,bu=fs,yu=us,wu=function(t){var e=Pr.fromTable(t);return e.grid},_u=function(t){var e=[],n=function(t){if(void 0===t)throw new Error("Event bind error: undefined handler");e.push(t)},r=function(t){e=j(e,(function(e){return e!==t}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};B(t,(function(t,e){i[t]=n[e]})),B(e,(function(t){t(i)}))};return{bind:n,unbind:r,trigger:i}},xu=function(t){var e=xe(t,(function(t){return{bind:t.bind,unbind:t.unbind}})),n=xe(t,(function(t){return t.trigger}));return{registry:e,trigger:n}},Cu=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((function(){t.apply(null,r),n=null}),e)};return{cancel:r,throttle:i}},Su=function(t){return t.slice(0).sort()},ku=function(t,e){throw new Error("All required keys ("+Su(t).join(", ")+") were not specified. Specified keys were: "+Su(e).join(", ")+".")},Mu=function(t){throw new Error("Unsupported keys for object: "+Su(t).join(", "))},Eu=function(t,e){if(!_(e))throw new Error("The "+t+" fields must be an array. Was: "+e+".");B(e,(function(e){if(!y(e))throw new Error("The value "+e+" in the "+t+" fields was not a string.")}))},Ou=function(t,e){throw new Error("All values need to be of type: "+e+". Keys ("+Su(t).join(", ")+") were not.")},Tu=function(t){var e=Su(t),n=V(e,(function(t,n){return n<e.length-1&&t===e[n+1]}));n.each((function(t){throw new Error("The field: "+t+" occurs more than once in the combined fields: ["+e.join(", ")+"].")}))},Au=function(t,e){return Du(t,e,{validate:M,label:"function"})},Du=function(t,e,n){if(0===e.length)throw new Error("You must specify at least one required field.");return Eu("required",e),Tu(e),function(r){var i=ye(r),o=K(e,(function(t){return N(i,t)}));o||ku(e,i),t(e,i);var a=j(e,(function(t){return!n.validate(r[t],t)}));return a.length>0&&Ou(a,n.label),r}},Nu=function(t,e){var n=j(e,(function(e){return!N(t,e)}));n.length>0&&Mu(n)},Ru=function(t){return Au(Nu,t)},Pu=Ru(["compare","extract","mutate","sink"]),Iu=Ru(["element","start","stop","destroy"]),Bu=Ru(["forceDrop","drop","move","delayDrop"]);function Lu(){var t=p.none(),e=function(){t=p.none()},n=function(e,n){var r=t.map((function(t){return e.compare(t,n)}));return t=p.some(n),r},r=function(t,e){var r=e.extract(t);r.each((function(t){var r=n(e,t);r.each((function(t){i.trigger.move(t)}))}))},i=xu({move:_u(["info"])});return{onEvent:r,reset:e,events:i.registry}}function zu(){return{onEvent:t,reset:t}}function ju(){var t=zu(),e=Lu(),n=t,r=function(){n.reset(),n=e},i=function(){n.reset(),n=t},o=function(t,e){n.onEvent(t,e)},a=function(){return n===e};return{on:r,off:i,isOn:a,onEvent:o,events:e.events}}var Fu=function(t,e,n){var r=!1,i=xu({start:_u([]),stop:_u([])}),o=ju(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=Cu(a,200),u=function(t){h.start(t),o.on(),i.trigger.start()},c=function(t){s.cancel(),o.onEvent(t,e)};o.events.move.bind((function(n){e.mutate(t,n.info)}));var l=function(){r=!0},f=function(){r=!1},d=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r&&t.apply(null,e)}},h=e.sink(Bu({forceDrop:a,drop:d(a),move:d(c),delayDrop:d(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:u,on:l,off:f,destroy:p,events:i.registry}},$u=function(t,e,n,r,i,o,a){return{target:t,x:e,y:n,stop:r,prevent:i,kill:o,raw:a}},Hu=function(t){var n=ce.fromDom(wn(t).getOr(t.target)),r=function(){return t.stopPropagation()},i=function(){return t.preventDefault()},o=e(i,r);return $u(n,t.clientX,t.clientY,r,i,o,t)},Vu=function(t,e){return function(n){t(n)&&e(Hu(n))}},Uu=function(t,e,n,r,i){var a=Vu(n,r);return t.dom.addEventListener(e,a,i),{unbind:o(Wu,t,e,a,i)}},qu=function(t,e,n,r){return Uu(t,e,n,r,!1)},Wu=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Ku=c,Gu=function(t,e,n){return qu(t,e,Ku,n)},Yu=Hu,Xu=function(t,e){var n=Vn(t,e);return void 0===n||""===n?[]:n.split(" ")},Zu=function(t,e,n){var r=Xu(t,e),i=r.concat([n]);return $n(t,e,i.join(" ")),!0},Ju=function(t,e,n){var r=j(Xu(t,e),(function(t){return t!==n}));return r.length>0?$n(t,e,r.join(" ")):qn(t,e),!1},Qu=function(t){return void 0!==t.dom.classList},tc=function(t){return Xu(t,"class")},ec=function(t,e){return Zu(t,"class",e)},nc=function(t,e){return Ju(t,"class",e)},rc=function(t,e){Qu(t)?t.dom.classList.add(e):ec(t,e)},ic=function(t){var e=Qu(t)?t.dom.classList:tc(t);0===e.length&&qn(t,"class")},oc=function(t,e){if(Qu(t)){var n=t.dom.classList;n.remove(e)}else nc(t,e);ic(t)},ac=function(t,e){return Qu(t)&&t.dom.classList.contains(e)},sc=function(t){var e=t.replace(/\./g,"-"),n=function(t){return e+"-"+t};return{resolve:n}},uc=sc("ephox-dragster"),cc=uc.resolve,lc=function(t){var e=tt({layerClass:cc("blocker")},t),n=ce.fromTag("div");$n(n,"role","presentation"),Zn(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),rc(n,cc("blocker")),rc(n,e.layerClass);var r=function(){return n},i=function(){ii(n)};return{element:r,destroy:i}},fc=function(t,e){return ua(e.left-t.left,e.top-t.top)},dc=function(t){return p.some(ua(t.x,t.y))},hc=function(t,e){t.mutate(e.left,e.top)},pc=function(t,e){var n=lc(e),r=Gu(n.element(),"mousedown",t.forceDrop),i=Gu(n.element(),"mouseup",t.drop),o=Gu(n.element(),"mousemove",t.move),a=Gu(n.element(),"mouseout",t.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},u=function(t){Jr(t,n.element())},c=function(){ii(n.element())};return Iu({element:n.element,start:u,stop:c,destroy:s})},mc=Pu({compare:fc,extract:dc,sink:pc,mutate:hc}),gc=function(t,e){void 0===e&&(e={});var n=void 0!==e.mode?e.mode:mc;return Fu(t,n,e)},vc=function(t){return"true"===Vn(t,"contenteditable")},bc=function(t,e){return jn(t,"[contenteditable]",e)},yc=sc("ephox-snooker"),wc=yc.resolve,_c=function(){var t=xu({drag:_u(["xDelta","yDelta"])}),e=function(e,n){t.trigger.drag(e,n)};return{mutate:e,events:t.registry}},xc=function(){var t=xu({drag:_u(["xDelta","yDelta","target"])}),e=p.none(),n=_c();n.events.drag.bind((function(n){e.each((function(e){t.trigger.drag(n.xDelta,n.yDelta,e)}))}));var r=function(t){e=p.some(t)},i=function(){return e};return{assign:r,get:i,mutate:n.mutate,events:t.registry}},Cc=function(t,e,n,r,i){var o=ce.fromTag("div");return Zn(o,{position:"absolute",left:e-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Hn(o,{"data-column":t,role:"presentation"}),o},Sc=function(t,e,n,r,i){var o=ce.fromTag("div");return Zn(o,{position:"absolute",left:e+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Hn(o,{"data-row":t,role:"presentation"}),o},kc=wc("resizer-bar"),Mc=wc("resizer-rows"),Ec=wc("resizer-cols"),Oc=7,Tc=function(t,e){return W(t.all,(function(t,n){return e(t.element)?[n]:[]}))},Ac=function(t,e){var n=[];return P(t.grid.columns,(function(r){var i=Pr.getColumnAt(t,r).map((function(t){return t.element}));i.forall(e)&&n.push(r)})),j(n,(function(n){var r=Pr.filterItems(t,(function(t){return t.column===n}));return K(r,(function(t){return e(t.element)}))}))},Dc=function(t){var e=An(t.parent(),"."+kc);B(e,ii)},Nc=function(t,e,n){var r=t.origin();B(e,(function(e){e.each((function(e){var i=n(r,e);rc(i,kc),Jr(t.parent(),i)}))}))},Rc=function(t,e,n,r){Nc(t,e,(function(t,e){var i=Cc(e.col,e.x-t.left,n.top-t.top,Oc,r);return rc(i,Ec),i}))},Pc=function(t,e,n,r){Nc(t,e,(function(t,e){var i=Sc(e.row,n.left-t.left,e.y-t.top,r,Oc);return rc(i,Mc),i}))},Ic=function(t,e,n,r,i){var o=fa(n),a=e.isResizable,s=r.length>0?Sa.positions(r,n):[],u=s.length>0?Tc(t,a):[],c=j(s,(function(t,e){return R(u,(function(t){return e===t}))}));Pc(e,c,o,Zo(n));var l=i.length>0?Oa.positions(i,n):[],f=l.length>0?Ac(t,a):[],d=j(l,(function(t,e){return R(f,(function(t){return e===t}))}));Rc(e,d,o,aa(n))},Bc=function(t,e){if(Dc(t),t.isResizable(e)){var n=Pr.fromTable(e),r=ta(n),i=Jo(n);Ic(n,t,e,r,i)}},Lc=function(t,e){var n=An(t.parent(),"."+kc);B(n,e)},zc=function(t){Lc(t,(function(t){Xn(t,"display","none")}))},jc=function(t){Lc(t,(function(t){Xn(t,"display","block")}))},Fc=function(t){return ac(t,Mc)},$c=function(t){return ac(t,Ec)},Hc=wc("resizer-bar-dragging"),Vc=function(t){var e=xc(),n=gc(e,{}),r=p.none(),i=function(t,e){return p.from(Vn(t,e))};e.events.drag.bind((function(t){i(t.target,"data-row").each((function(e){var n=sr(t.target,"top");Xn(t.target,"top",n+t.yDelta+"px")})),i(t.target,"data-column").each((function(e){var n=sr(t.target,"left");Xn(t.target,"left",n+t.xDelta+"px")}))}));var a=function(t,e){var n=sr(t,e),r=rr(t,"data-initial-"+e,0);return n-r};n.events.stop.bind((function(){e.get().each((function(e){r.each((function(n){i(e,"data-row").each((function(t){var r=a(e,"top");qn(e,"data-initial-top"),m.trigger.adjustHeight(n,r,parseInt(t,10))})),i(e,"data-column").each((function(t){var r=a(e,"left");qn(e,"data-initial-left"),m.trigger.adjustWidth(n,r,parseInt(t,10))})),Bc(t,n)}))}))}));var s=function(r,i){m.trigger.startAdjust(),e.assign(r),$n(r,"data-initial-"+i,sr(r,i)),rc(r,Hc),Xn(r,"opacity","0.2"),n.go(t.parent())},u=Gu(t.parent(),"mousedown",(function(t){Fc(t.target)&&s(t.target,"top"),$c(t.target)&&s(t.target,"left")})),c=function(e){return pe(e,t.view())},l=function(t){return jn(t,"table",c).filter((function(t){return bc(t,c).exists(vc)}))},f=Gu(t.view(),"mouseover",(function(e){l(e.target).fold((function(){xn(e.target)&&Dc(t)}),(function(e){r=p.some(e),Bc(t,e)}))})),d=function(){u.unbind(),f.unbind(),n.destroy(),Dc(t)},h=function(e){Bc(t,e)},m=xu({adjustHeight:_u(["table","delta","row"]),adjustWidth:_u(["table","delta","column"]),startAdjust:_u([])});return{destroy:d,refresh:h,on:n.on,off:n.off,hideBars:o(zc,t),showBars:o(jc,t),events:m.registry}},Uc=function(t,e,n){var r=Sa,i=Oa,o=Vc(t),a=xu({beforeResize:_u(["table","type"]),afterResize:_u(["table","type"]),startDrag:_u([])});return o.events.adjustHeight.bind((function(t){var e=t.table;a.trigger.beforeResize(e,"row");var n=r.delta(t.delta,e);zs(e,n,t.row,r),a.trigger.afterResize(e,"row")})),o.events.startAdjust.bind((function(t){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(t){var r=t.table;a.trigger.beforeResize(r,"col");var o=i.delta(t.delta,r),s=n(r);Ls(r,o,t.column,e,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},qc={create:Uc},Wc=function(t,e){return t.fire("newrow",{node:e})},Kc=function(t,e){return t.fire("newcell",{node:e})},Gc=function(t,e,n,r,i){t.fire("ObjectResizeStart",{target:e,width:n,height:r,origin:i})},Yc=function(t,e,n,r,i){t.fire("ObjectResized",{target:e,width:n,height:r,origin:i})},Xc=function(t,e,n,r,i){t.fire("TableSelectionChange",{cells:e,start:n,finish:r,otherCells:i})},Zc=function(t){t.fire("TableSelectionClear")},Jc=function(t,e,n){t.fire("TableModified",tt(tt({},n),{table:e}))},Qc="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",tl={"border-collapse":"collapse",width:"100%"},el=function(t){if(wl(t)){var e=t.getBody().offsetWidth;return tt(tt({},tl),{width:e+"px"})}return _l(t)?Me(tl,(function(t,e){return"width"!==e})):tl},nl={border:"1"},rl="preservetable",il=function(t){return t.getParam("table_sizing_mode","auto")},ol=function(t){return t.getParam("table_responsive_width")},al=function(t){return t.getParam("table_default_attributes",nl,"object")},sl=function(t){return t.getParam("table_default_styles",el(t),"object")},ul=function(t){return t.getParam("table_resize_bars",!0,"boolean")},cl=function(t){return t.getParam("table_tab_navigation",!0,"boolean")},ll=function(t){return t.getParam("table_cell_advtab",!0,"boolean")},fl=function(t){return t.getParam("table_row_advtab",!0,"boolean")},dl=function(t){return t.getParam("table_advtab",!0,"boolean")},hl=function(t){return t.getParam("table_appearance_options",!0,"boolean")},pl=function(t){return t.getParam("table_grid",!0,"boolean")},ml=function(t){return t.getParam("table_style_by_css",!1,"boolean")},gl=function(t){return t.getParam("table_cell_class_list",[],"array")},vl=function(t){return t.getParam("table_row_class_list",[],"array")},bl=function(t){return t.getParam("table_class_list",[],"array")},yl=function(t){return"relative"===il(t)||!0===ol(t)},wl=function(t){return"fixed"===il(t)||!1===ol(t)},_l=function(t){return"responsive"===il(t)},xl=function(t){return t.getParam("table_toolbar",Qc)},Cl=function(t){return t.getParam("table_use_colgroups",!1,"boolean")},Sl=function(t){var e="section",n=t.getParam("table_header_type",e,"string"),r=["section","cells","sectionCells","auto"];return N(r,n)?n:e},kl=function(t){var e=["preservetable","resizetable"],n=t.getParam("table_column_resizing",rl,"string");return V(e,(function(t){return t===n})).getOr(rl)},Ml=function(t){return"preservetable"===kl(t)},El=function(t){var e=t.getParam("table_clone_elements");return y(e)?p.some(e.split(/[ ,]/)):Array.isArray(e)?p.some(e):p.none()},Ol=function(t){var e=t.getParam("object_resizing",!0);return y(e)?"table"===e:e},Tl=function(t){return t.nodeName.toLowerCase()},Al=function(t){return ce.fromDom(t.getBody())},Dl=function(t){return t.getBoundingClientRect().width},Nl=function(t){return t.getBoundingClientRect().height},Rl=function(t){return function(e){return pe(e,Al(t))}},Pl=function(t){return t?t.replace(/px$/,""):""},Il=function(t){return/^\d+(\.\d+)?$/.test(t)?t+"px":t},Bl=function(t){qn(t,"data-mce-style");var e=function(t){return qn(t,"data-mce-style")};B(pr(t),e),B(mr(t),e)},Ll=function(t,e){var n=t.dom.getStyle(e,"width")||t.dom.getAttrib(e,"width");return p.from(n).filter(wt)},zl=function(t){return/^(\d+(\.\d+)?)%$/.test(t)},jl=function(t){return/^(\d+(\.\d+)?)px$/.test(t)},Fl=function(t){return ce.fromDom(t.selection.getStart())},$l=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},Hl=function(e){var n=function(){return Xo(e)},i=r(0),o=function(t,n){return ks(t,e,n)};return{width:n,pixelWidth:n,getWidths:o,getCellDelta:i,singleColumnWidth:r([0]),minCellWidth:i,setElementWidth:t,adjustTableWidth:t,isRelative:!0,label:"none"}},Vl=function(t,e){var n=$l(parseFloat(t)),r=$l(Xo(e)),i=function(t){return t/r.get()*100},o=function(t,e){return[100-t]},a=function(){return ur()/r.get()*100},s=function(t){var i=n.get(),o=t/100*i,a=i+o;Ua(e,a),n.set(a),r.set(Xo(e))},u=function(t,n){return Ss(t,e,n)};return{width:n.get,pixelWidth:r.get,getWidths:u,getCellDelta:i,singleColumnWidth:o,minCellWidth:a,setElementWidth:Ua,adjustTableWidth:s,isRelative:!0,label:"percent"}},Ul=function(t,e){var n=$l(t),r=n.get,o=i,a=function(t,e){var n=Math.max(ur(),t+e);return[n-t]},s=function(t){var i=r()+t;Va(e,i),n.set(i)},u=function(t,n){return ks(t,e,n)};return{width:r,pixelWidth:r,getWidths:u,getCellDelta:o,singleColumnWidth:a,minCellWidth:ur,setElementWidth:Va,adjustTableWidth:s,isRelative:!1,label:"pixel"}},ql=function(t,e){var n=ds().exec(e);if(null!==n)return Vl(n[1],t);var r=hs().exec(e);if(null!==r){var i=parseInt(r[1],10);return Ul(i,t)}var o=Xo(t);return Ul(o,t)},Wl=function(t){var e=Za(t);return e.fold((function(){return Hl(t)}),(function(e){return ql(t,e)}))},Kl={getTableSize:Wl,pixelSize:Ul,percentageSize:Vl,noneSize:Hl},Gl=function(t,e){if(yl(t)){var n=Ll(t,e.dom).filter(zl).getOrThunk((function(){return yu(e)}));return Kl.percentageSize(n,e)}return wl(t)?Kl.pixelSize(Xo(e),e):Kl.getTableSize(e)},Yl=function(t){qn(t,"width")},Xl=function(t,e){var n=us(t);mu(t,p.some(n),p.none(),e),Yl(t)},Zl=function(t,e){var n=ss(t);mu(t,p.some(n),p.none(),e),Yl(t)},Jl=function(t){er(t,"width");var e=mr(t),n=e.length>0?e:pr(t);B(n,(function(t){er(t,"width"),Yl(t)})),Yl(t)},Ql=function(t,e){var n=Gl(t,e);Xl(e,n)},tf=function(t,e){var n=Gl(t,e);Zl(e,n)},ef=Jl,nf=function(t){var e=Pr.fromTable(t);Pr.hasColumns(e)||B(pr(t),(function(t){var e=Jn(t,"width");Xn(t,"width",e),qn(t,"width")}))},rf=function(){var t=ce.fromTag("div");return Zn(t,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Jr(Cn(),t),t},of=function(t,e){return t.inline?Xs.body(Al(t),rf(),e):Xs.only(ce.fromDom(t.getDoc()),e)},af=function(t,e){t.inline&&ii(e.parent())},sf="bar-",uf=function(t){return"false"!==Vn(t,"data-mce-resize")},cf=function(t){var e,n,r=p.none(),i=p.none(),o=p.none(),a=function(t){return"TABLE"===t.nodeName},s=function(){return i},u=function(){return o.getOr(Xs.only(ce.fromDom(t.getBody()),uf))},c=function(e){return Gl(t,e)},l=function(){return Ml(t)?Ws():qs()},f=function(t){return wu(t).columns},d=function(r,i,o){var a=vt(i,"e");if(""===n&&Ql(t,r),o!==e&&""!==n){Xn(r,"width",n);var s=l(),u=c(r),d=Ml(t)||a?f(r)-1:0;Ls(r,o-e,d,s,u)}else if(zl(n)){var h=parseFloat(n.replace("%","")),p=o*h/e;Xn(r,"width",p+"%")}jl(n)&&nf(r)},h=function(){i.each((function(t){t.destroy()})),o.each((function(e){af(t,e)}))};return t.on("init",(function(){var e=of(t,uf);if(o=p.some(e),Ol(t)&&ul(t)){var n=l(),a=qc.create(e,n,c);a.on(),a.events.startDrag.bind((function(e){r=p.some(t.selection.getRng())})),a.events.beforeResize.bind((function(e){var n=e.table.dom;Gc(t,n,Dl(n),Nl(n),sf+e.type)})),a.events.afterResize.bind((function(e){var n=e.table,i=n.dom;Bl(n),r.each((function(e){t.selection.setRng(e),t.focus()})),Yc(t,i,Dl(i),Nl(i),sf+e.type),t.undoManager.add()})),i=p.some(a)}})),t.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=ce.fromDom(i);B(t.dom.select(".mce-clonedresizable"),(function(e){t.dom.addClass(e,"mce-"+kl(t)+"-columns")})),!vu(o)&&wl(t)?tf(t,o):!gu(o)&&yl(t)&&Ql(t,o),bu(o)&>(r.origin,sf)&&Ql(t,o),e=r.width,n=_l(t)?"":Ll(t,i).getOr("")}})),t.on("ObjectResized",(function(e){var n=e.target;if(a(n)){var r=ce.fromDom(n),i=e.origin;gt(i,"corner-")&&d(r,i,e.width),Bl(r),Jc(t,r.dom)}})),t.on("SwitchMode",(function(){s().each((function(e){t.mode.isReadOnly()?e.hideBars():e.showBars()}))})),{lazyResize:s,lazyWire:u,destroy:h}},lf=function(t,e){return{element:t,offset:e}},ff=function(t,e,n){return t.property().isText(e)&&0===t.property().getText(e).trim().length||t.property().isComment(e)?n(e).bind((function(e){return ff(t,e,n).orThunk((function(){return p.some(e)}))})):p.none()},df=function(t,e){if(t.property().isText(e))return t.property().getText(e).length;var n=t.property().children(e);return n.length},hf=function(t,e){var n=ff(t,e,t.query().prevSibling).getOr(e);if(t.property().isText(n))return lf(n,df(t,n));var r=t.property().children(n);return r.length>0?hf(t,r[r.length-1]):lf(n,df(t,n))},pf=hf,mf=di(),gf=function(t){return pf(mf,t)},vf=function(t,e){var n=os(t);n.each((function(n){var r=n.value/2;as(t,r,n.unit),as(e,r,n.unit)}))},bf=function(t,e,n){var r=t.cells,i=r.slice(0,e),o=r.slice(e),a=i.concat([n]).concat(o);return wf(t,a)},yf=function(t,e,n){var r=t.cells;r[e]=n},wf=function(t,e){return Ve(e,t.section)},_f=function(t,e){var n=t.cells,r=I(n,e);return Ve(r,t.section)},xf=function(t,e){return t.cells[e]},Cf=function(t,e){return xf(t,e).element},Sf=function(t){return t.cells.length},kf=function(t){var e=z(t,(function(t){return"colgroup"===t.section}));return{rows:e.fail,cols:e.pass}},Mf=function(t,e,n,r){n===r?qn(t,e):$n(t,e,n)},Ef=function(t,e,n){J(Tn(t,e)).fold((function(){return Zr(t,n)}),(function(t){return Xr(t,n)}))},Of=function(t,e){var n=Ln(t,e).getOrThunk((function(){var n=ce.fromTag(e,nn(t).dom);return"thead"===e?Ef(t,"caption,colgroup",n):"colgroup"===e?Ef(t,"caption",n):Jr(t,n),n}));return ri(n),n},Tf=function(t,e){var n=[],r=[],i=function(t){return I(t,(function(t){t.isNew&&n.push(t.element);var e=t.element;return ri(e),B(t.cells,(function(t){t.isNew&&r.push(t.element),Mf(t.element,"colspan",t.colspan,1),Mf(t.element,"rowspan",t.rowspan,1),Jr(e,t.element)})),e}))},o=function(t){return W(t,(function(t){return I(t.cells,(function(t){return Mf(t.element,"span",t.colspan,1),t.element}))}))},a=function(e,n){var r=Of(t,n),a="colgroup"===n?o:i,s=a(e);ni(r,s)},s=function(e){Ln(t,e).each(ii)},u=function(t,e){t.length>0?a(t,e):s(e)},c=[],l=[],f=[],d=[];return B(e,(function(t){switch(t.section){case"thead":c.push(t);break;case"tbody":l.push(t);break;case"tfoot":f.push(t);break;case"colgroup":d.push(t);break}})),u(d,"colgroup"),u(c,"thead"),u(l,"tbody"),u(f,"tfoot"),{newRows:n,newCells:r}},Af=function(t){return I(t,(function(t){var e=ro(t.element);return B(t.cells,(function(t){var n=io(t.element);Mf(n,"colspan",t.colspan,1),Mf(n,"rowspan",t.rowspan,1),Jr(e,n)})),e}))},Df=function(t,e){return I(t,(function(t){return xf(t,e)}))},Nf=function(t,e){return t[e]},Rf=function(t,e){if(0===t.length)return 0;var n=t[0],r=U(t,(function(t){return!e(n.element,t.element)}));return r.fold((function(){return t.length}),(function(t){return t}))},Pf=function(t,e,n,r){var i=Nf(t,e).cells.slice(n),o=Rf(i,r),a=Df(t,n).slice(e),s=Rf(a,r);return{colspan:o,rowspan:s}},If=function(t,e){var n=I(t,(function(t){return I(t.cells,u)})),r=function(t,e,r,i){for(var o=t;o<t+r;o++)for(var a=e;a<e+i;a++)n[o][a]=!0};return I(t,(function(i,o){var a=W(i.cells,(function(i,a){if(!1===n[o][a]){var s=Pf(t,o,a,e);return r(o,a,s.rowspan,s.colspan),[ze(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return Ue(a,i.section)}))},Bf=function(t,e,n){var r=[];if(Pr.hasColumns(t)){var i=I(Pr.justColumns(t),(function(t){return $e(t.element,n)}));r.push(Ve(i,"colgroup"))}for(var o=0;o<t.grid.rows;o++){for(var a=[],s=0;s<t.grid.columns;s++){var u=Pr.getAt(t,o,s).map((function(t){return $e(t.element,n)})).getOrThunk((function(){return $e(e.gap(),!0)}));a.push(u)}var c=Ve(a,t.all[o].section);r.push(c)}return r},Lf=function(t,e){return Bf(t,e,!1)},zf=function(t,e){var n=function(t){var n=Q(t,(function(t){return an(t.element).map((function(t){var e=an(t).isNone();return $e(t,e)}))}));return n.getOrThunk((function(){return $e(e.row(),!0)}))};return I(t,(function(t){var e=n(t.details);return He(e.element,t.details,t.section,e.isNew)}))},jf=function(t,e){var n=If(t,pe);return zf(n,e)},Ff=function(t,e){return Q(t.all,(function(t){return V(t.cells,(function(t){return pe(e,t.element)}))}))},$f=function(t,e,n,r,i){return function(o,a,s,u,c){var l=Pr.fromTable(a),f=e(l,s).map((function(e){var n=Lf(l,u),r=t(n,e,pe,i(u)),o=jf(r.grid,u);return{grid:o,cursor:r.cursor}}));return f.fold((function(){return p.none()}),(function(t){var e=Tf(a,t.grid),i=p.from(c).getOrThunk((function(){return Kl.getTableSize(a)}));return n(a,t.grid,i),r(a),Bc(o,a),p.some({cursor:t.cursor,newRows:e.newRows,newCells:e.newCells})}))}},Hf=function(t,e){return hr(e.element).bind((function(e){return Ff(t,e)}))},Vf=function(t,e){return hr(e.element).bind((function(n){return Ff(t,n).map((function(t){var n=tt(tt({},t),{generators:e.generators,clipboard:e.clipboard});return n}))}))},Uf=function(t,e){var n=I(e.selection,(function(e){return hr(e).bind((function(e){return Ff(t,e)}))})),r=qo(n);return r.length>0?p.some({cells:r,generators:e.generators,clipboard:e.clipboard}):p.none()},qf=function(t,e){return e.mergable},Wf=function(t,e){return e.unmergable},Kf=function(t,e){var n=I(e.selection,(function(e){return hr(e).bind((function(e){return Ff(t,e)}))})),r=qo(n);return r.length>0?p.some(r):p.none()},Gf=function(t,e,n,r){var i=kf(t).rows;if(0===i.length)return t;for(var o=e.startRow;o<=e.finishRow;o++)for(var a=e.startCol;a<=e.finishCol;a++)yf(i[o],a,$e(r(),!1));return t},Yf=function(t,e,n,r){for(var i=kf(t).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<Sf(i[0]);s++){var u=Cf(i[a],s),c=n(u,e);!0===c&&!1===o?yf(i[a],s,$e(r(),!0)):!0===c&&(o=!1)}return t},Xf=function(t,e){return $(t,(function(t,n){return R(t,(function(t){return e(t.element,n.element)}))?t:t.concat([n])}),[])},Zf=function(t,e,n,r){return e>0&&e<t[0].cells.length&&B(t,(function(t){var i=t.cells[e-1],o=t.cells[e],a=n(o.element,i.element);a&&yf(t,e,$e(r(),!0))})),t},Jf=function(t,e,n,r){var i=kf(t).rows;if(e>0&&e<i.length){var o=i[e-1].cells,a=Xf(o,n);B(a,(function(t){for(var o=p.none(),a=function(e){for(var a=function(a){var s=i[e].cells[a],u=n(s.element,t.element);u&&(o.isNone()&&(o=p.some(r())),o.each((function(t){yf(i[e],a,$e(t,!0))})))},s=0;s<Sf(i[0]);s++)a(s)},s=e;s<i.length;s++)a(s)}))}return t},Qf=function(t){var e=function(e){return t===e},n=function(e){return Qf(t)},i=function(e){return Qf(t)},o=function(e){return Qf(e(t))},a=function(e){return Qf(t)},s=function(e){e(t)},l=function(e){return e(t)},f=function(e,n){return n(t)},d=function(e){return e(t)},h=function(e){return e(t)},m=function(){return p.some(t)};return{is:e,isValue:c,isError:u,getOr:r(t),getOrThunk:r(t),getOrDie:r(t),or:n,orThunk:i,fold:f,map:o,mapError:a,each:s,bind:l,exists:d,forall:h,toOptional:m}},td=function(e){var n=function(t){return t()},r=function(){return s(String(e))()},o=function(t){return t},a=function(t){return t()},l=function(t){return td(e)},f=function(t){return td(t(e))},d=function(t){return td(e)},h=function(t,n){return t(e)};return{is:u,isValue:u,isError:c,getOr:i,getOrThunk:n,getOrDie:r,or:o,orThunk:a,fold:h,map:l,mapError:f,each:t,bind:d,exists:u,forall:c,toOptional:p.none}},ed=function(t,e){return t.fold((function(){return td(e)}),Qf)},nd={value:Qf,error:td,fromOption:ed},rd=function(t,e,n){if(t.row>=e.length||t.column>Sf(e[0]))return nd.error("invalid start address out of table bounds, row: "+t.row+", column: "+t.column);var r=e.slice(t.row),i=r[0].cells.slice(t.column),o=Sf(n[0]),a=n.length;return nd.value({rowDelta:r.length-a,colDelta:i.length-o})},id=function(t,e){var n=Sf(t[0]),r=Sf(e[0]);return{rowDelta:0,colDelta:n-r}},od=function(t,e){var n=t.length,r=e.length;return{rowDelta:n-r,colDelta:0}},ad=function(t,e,n){var r="colgroup"===e.section?n.col:n.cell;return I(t,(function(){return $e(r(),!0)}))},sd=function(t,e,n){return t.concat(P(e,(function(){var e=t[t.length-1];return wf(e,ad(e.cells,e,n))})))},ud=function(t,e,n){return I(t,(function(t){var r=ad(P(e,i),t,n);return wf(t,t.cells.concat(r))}))},cd=function(t,e,n){var r=e.colDelta<0?ud:i,o=e.rowDelta<0?sd:i,a=r(t,Math.abs(e.colDelta),n);return o(a,Math.abs(e.rowDelta),n)},ld=function(t,e,n,r){var i=xf(t[e],n),a=o(r,i.element),s=t[e];return t.length>1&&Sf(s)>1&&(n>0&&a(Cf(s,n-1))||n<s.cells.length-1&&a(Cf(s,n+1))||e>0&&a(Cf(t[e-1],n))||e<t.length-1&&a(Cf(t[e+1],n)))},fd=function(t,e,n,r,i){for(var o=t.row,a=t.column,s=n.length,u=Sf(n[0]),c=o+s,l=a+u,f=o;f<c;f++)for(var d=a;d<l;d++){ld(e,f,d,i)&&Yf(e,Cf(e[f],d),i,r.cell);var h=Cf(n[f-o],d-a),p=r.replace(h);yf(e[f],d,$e(p,!0))}return e},dd=function(t,e,n,r,i){var o=rd(t,e,n);return o.map((function(o){var a=cd(e,o,r);return fd(t,a,n,r,i)}))},hd=function(t,e,n,r,i){Zf(e,t,i,r.cell);var o=od(n,e),a=cd(n,o,r),s=od(e,a),u=cd(e,s,r);return I(u,(function(e,n){var r=e.cells.slice(0,t).concat(a[n].cells).concat(e.cells.slice(t,e.cells.length));return wf(e,r)}))},pd=function(t,e,n,r,i){Jf(e,t,i,r.cell);var o=id(n,e),a=cd(n,o,r),s=id(e,a),u=cd(e,s,r),c=kf(u),l=c.cols,f=c.rows;return l.concat(f.slice(0,t)).concat(a).concat(f.slice(t,f.length))},md=function(t,e,n,r,i){var o=kf(t),a=o.rows,s=o.cols,u=a.slice(0,e),c=a.slice(e),l=_f(a[n],(function(t,n){var o=e>0&&e<a.length&&r(Cf(a[e-1],n),Cf(a[e],n)),s=o?xf(a[e],n):$e(i(t.element,r),!0);return s}));return s.concat(u).concat([l]).concat(c)},gd=function(t,e,n,r,i,o,a){return"colgroup"!==n&&r?xf(t,e):$e(a(Cf(t,i),o),!0)},vd=function(t,e,n,r,i){return I(t,(function(t){var o=e>0&&e<Sf(t)&&r(Cf(t,e-1),Cf(t,e)),a=gd(t,e,t.section,o,n,r,i);return bf(t,e,a)}))},bd=function(t,e,n){var r=I(t,(function(t){var r=t.cells.slice(0,e).concat(t.cells.slice(n+1));return Ve(r,t.section)}));return j(r,(function(t){return t.cells.length>0}))},yd=function(t,e,n){var r=kf(t),i=r.rows,o=r.cols;return o.concat(i.slice(0,e)).concat(i.slice(n+1))},wd=function(t,e,n,r){var i=function(t){return R(e,(function(e){return n(t.element,e.element)}))};return I(t,(function(t){return _f(t,(function(t){return i(t)?$e(r(t.element,n),!0):t}))}))},_d=function(t,e,n,r){return void 0!==Cf(t[e],n)&&e>0&&r(Cf(t[e-1],n),Cf(t[e],n))},xd=function(t,e,n){return e>0&&n(Cf(t,e-1),Cf(t,e))},Cd=function(t,e,n,r){var i=W(t,(function(r,i){var o=_d(t,i,e,n)||xd(r,e,n);return o?[]:[xf(r,e)]}));return wd(t,i,n,r)},Sd=function(t,e,n,r){var i=kf(t).rows,o=i[e],a=W(o.cells,(function(t,r){var a=_d(i,e,r,n)||xd(o,r,n);return a?[]:[t]}));return wd(t,a,n,r)},kd=Ru(["cell","row","replace","gap","col","colgroup"]),Md=function(t){var e=rr(t,"colspan",1),n=rr(t,"rowspan",1);return{element:t,colspan:e,rowspan:n}},Ed=function(t,e){void 0===e&&(e=Md),kd(t);var n=$l(p.none()),r=function(e){switch(Ke(e.element)){case"col":return t.col(e);default:return t.cell(e)}},i=function(t){var n=e(t);return r(n)},o=function(t){var e=i(t);return n.get().isNone()&&n.set(p.some(e)),a=p.some({item:t,replacement:e}),e},a=p.none(),s=function(t,e){return a.fold((function(){return o(t)}),(function(n){return e(t,n.item)?n.replacement:o(t)}))};return{getOrInit:s,cursor:n.get}},Od=function(t,e){return function(n){var r=$l(p.none());kd(n);var i=[],o=function(t,e){return V(i,(function(n){return e(n.item,t)}))},a=function(o){var a={scope:t},s=n.replace(o,e,a);return i.push({item:o,sub:s}),r.get().isNone()&&r.set(p.some(s)),s},s=function(t,e){return o(t,e).fold((function(){return a(t)}),(function(n){return e(t,n.item)?n.sub:a(t)}))};return{replaceOrInit:s,cursor:r.get}}},Td=function(t){kd(t);var e=$l(p.none()),n=function(n){return e.get().isNone()&&e.set(p.some(n)),function(){var e=t.cell({element:n,colspan:1,rowspan:1});return er(e,"width"),er(n,"width"),e}};return{combine:n,cursor:e.get}},Ad={modification:Ed,transform:Od,merging:Td},Dd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Nd=function(t,e){var n=t.property().name(e);return N(["ol","ul"],n)},Rd=function(t,e){var n=t.property().name(e);return N(Dd,n)},Pd=function(t,e){return N(["br","img","hr","input"],t.property().name(e))},Id=di(),Bd=function(t){return Rd(Id,t)},Ld=function(t){return Nd(Id,t)},zd=function(t){return Pd(Id,t)},jd=function(t){var e=function(t){return"br"===Ke(t)},n=function(t){return K(t,(function(t){return e(t)||Je(t)&&0===ui(t).trim().length}))},r=function(t){return"li"===Ke(t)||Nn(t,Ld).isSome()},i=function(t){return ln(t).map((function(t){return!!Bd(t)||!!zd(t)&&"img"!==Ke(t)})).getOr(!1)},o=function(t){return to(t).bind((function(n){var o=i(n);return an(n).map((function(i){return!0===o||r(i)||e(n)||Bd(i)&&!pe(t,i)?[]:[ce.fromTag("br")]}))})).getOr([])},a=function(){var e=W(t,(function(t){var e=fn(t);return n(e)?[]:e.concat(o(t))}));return 0===e.length?[ce.fromTag("br")]:e},s=a();ri(t[0]),ni(t[0],s)},Fd=function(t){var e=pr(t);0===e.length&&ii(t)},$d=function(t,e){return{grid:t,cursor:e}},Hd=function(t,e,n){var r=kf(t).rows;return Vd(r,e,n).orThunk((function(){return Vd(r,0,0)}))},Vd=function(t,e,n){return p.from(t[e]).bind((function(t){return p.from(t.cells[n]).bind((function(t){return p.from(t.element)}))}))},Ud=function(t,e,n){var r=kf(t).rows;return $d(t,Vd(r,e,n))},qd=function(t){var e=function(t,e){var n=R(t,(function(t){return t.row===e.row}));return n?t:t.concat([e])};return $(t,e,[]).sort((function(t,e){return t.row-e.row}))},Wd=function(t){var e=function(t,e){var n=R(t,(function(t){return t.column===e.column}));return n?t:t.concat([e])};return $(t,e,[]).sort((function(t,e){return t.column-e.column}))},Kd=function(t,e,n,r){var i=e[0].row,o=e[0].row,a=qd(e),s=$(a,(function(t,e){return md(t,o,i,n,r.getOrInit)}),t);return Ud(s,o,e[0].column)},Gd=function(t,e,n,r){var i=qd(e),o=i[i.length-1].row,a=i[i.length-1].row+i[i.length-1].rowspan,s=$(i,(function(t,e){return md(t,a,o,n,r.getOrInit)}),t);return Ud(s,a,e[0].column)},Yd=function(t,e,n,r){var i=Wd(e),o=i[0].column,a=i[0].column,s=$(i,(function(t,e){return vd(t,a,o,n,r.getOrInit)}),t);return Ud(s,e[0].row,a)},Xd=function(t,e,n,r){var i=e[e.length-1].column,o=e[e.length-1].column+e[e.length-1].colspan,a=Wd(e),s=$(a,(function(t,e){return vd(t,o,i,n,r.getOrInit)}),t);return Ud(s,e[0].row,o)},Zd=function(t,e,n,r){var i=Sd(t,e.row,n,r.replaceOrInit);return Ud(i,e.row,e.column)},Jd=function(t,e,n,r){var i=qd(e),o=function(t,e){return Sd(t,e.row,n,r.replaceOrInit)},a=$(i,o,t);return Ud(a,e[0].row,e[0].column)},Qd=function(t,e,n,r){var i=Cd(t,e.column,n,r.replaceOrInit);return Ud(i,e.row,e.column)},th=function(t,e,n,r){var i=Wd(e),o=function(t,e){return Cd(t,e.column,n,r.replaceOrInit)},a=$(i,o,t);return Ud(a,e[0].row,e[0].column)},eh=function(t,e,n,r){var i=Sd(t,e.row,n,r.replaceOrInit);return Ud(i,e.row,e.column)},nh=function(t,e,n,r){var i=qd(e),o=function(t,e){return Sd(t,e.row,n,r.replaceOrInit)},a=$(i,o,t);return Ud(a,e[0].row,e[0].column)},rh=function(t,e,n,r){var i=Cd(t,e.column,n,r.replaceOrInit);return Ud(i,e.row,e.column)},ih=function(t,e,n,r){var i=Wd(e),o=function(t,e){return Cd(t,e.column,n,r.replaceOrInit)},a=$(i,o,t);return Ud(a,e[0].row,e[0].column)},oh=function(t,e,n,r){var i=Wd(e),o=bd(t,i[0].column,i[i.length-1].column),a=Hd(o,e[0].row,e[0].column);return $d(o,a)},ah=function(t,e,n,r){var i=qd(e),o=yd(t,i[0].row,i[i.length-1].row),a=Hd(o,e[0].row,e[0].column);return $d(o,a)},sh=function(t,e,n,i){var o=e.cells;jd(o);var a=Gf(t,e.bounds,n,r(o[0]));return $d(a,p.from(o[0]))},uh=function(t,e,n,r){var i=F(e,(function(t,e){return Yf(t,e,n,r.combine(e))}),t);return $d(i,p.from(e[0]))},ch=function(t,e,n,r){var i=function(t,e){var n=Pr.fromTable(t);return Bf(n,e,!0)},o=i(e.clipboard,e.generators),a=Be(e.row,e.column),s=dd(a,t,o,e.generators,n);return s.fold((function(){return $d(t,p.some(e.element))}),(function(t){var n=Hd(t,e.row,e.column);return $d(t,n)}))},lh=function(t,e,n){var r=xr(t,n.section),i=Pr.generate(r);return Bf(i,e,!0)},fh=function(t,e,n,r){var i=kf(t).rows,o=e.cells[0].column,a=i[e.cells[0].row],s=lh(e.clipboard,e.generators,a),u=hd(o,t,s,e.generators,n),c=Hd(u,e.cells[0].row,e.cells[0].column);return $d(u,c)},dh=function(t,e,n,r){var i=kf(t).rows,o=e.cells[e.cells.length-1].column+e.cells[e.cells.length-1].colspan,a=i[e.cells[0].row],s=lh(e.clipboard,e.generators,a),u=hd(o,t,s,e.generators,n),c=Hd(u,e.cells[0].row,e.cells[0].column);return $d(u,c)},hh=function(t,e,n,r){var i=kf(t).rows,o=e.cells[0].row,a=i[o],s=lh(e.clipboard,e.generators,a),u=pd(o,t,s,e.generators,n),c=Hd(u,e.cells[0].row,e.cells[0].column);return $d(u,c)},ph=function(t,e,n,r){var i=kf(t).rows,o=e.cells[e.cells.length-1].row+e.cells[e.cells.length-1].rowspan,a=i[e.cells[0].row],s=lh(e.clipboard,e.generators,a),u=pd(o,t,s,e.generators,n),c=Hd(u,e.cells[0].row,e.cells[0].column);return $d(u,c)},mh=function(t,e){var n=Pr.fromTable(t),r=Kf(n,e);return r.bind((function(t){var e=t[t.length-1],r=t[0].column,i=e.column+e.colspan,o=q(I(n.all,(function(t){return j(t.cells,(function(t){return t.column>=r&&t.column<i}))})));return gh(o,(function(t){return"th"===Ke(t.element)}))})).getOr("")},gh=function(t,e){var n=j(t,e);return 0===n.length?p.some("td"):n.length===t.length?p.some("th"):p.none()},vh=js,bh=$f(Kd,Kf,t,t,Ad.modification),yh=$f(Gd,Kf,t,t,Ad.modification),wh=$f(Yd,Kf,vh,t,Ad.modification),_h=$f(Xd,Kf,vh,t,Ad.modification),xh=$f(oh,Kf,vh,Fd,Ad.modification),Ch=$f(ah,Kf,t,Fd,Ad.modification),Sh=($f(Qd,Hf,t,t,Ad.transform("row","th")),$f(th,Kf,t,t,Ad.transform("row","th"))),kh=($f(rh,Hf,t,t,Ad.transform(null,"td")),$f(ih,Kf,t,t,Ad.transform(null,"td"))),Mh=($f(Zd,Hf,t,t,Ad.transform("col","th")),$f(Jd,Kf,t,t,Ad.transform("col","th")),$f(eh,Hf,t,t,Ad.transform(null,"td")),$f(nh,Kf,t,t,Ad.transform(null,"td")),$f(sh,qf,t,t,Ad.merging)),Eh=$f(uh,Wf,vh,t,Ad.merging),Oh=$f(ch,Vf,vh,t,Ad.modification),Th=$f(fh,Uf,t,t,Ad.modification),Ah=$f(dh,Uf,t,t,Ad.modification),Dh=$f(hh,Uf,t,t,Ad.modification),Nh=$f(ph,Uf,t,t,Ad.modification),Rh=mh,Ph=function(t){return Tl(t.parentNode)},Ih=function(t){return"thead"===t?"header":"tfoot"===t?"footer":"body"},Bh=function(t,e){var n="thead"===Ph(e),r=!R(e.cells,(function(t){return"th"!==Tl(t)}));return n||r?p.some({thead:n,ths:r}):p.none()},Lh=function(t,e){return Ih(Bh(t,e).fold((function(){return Ph(e)}),(function(t){return"thead"})))},zh=function(t,e,n){var r=t.getParent(e,"table"),i=e.parentNode,o=Tl(i);if(n!==o){var a=t.select(n,r)[0];if(!a){a=t.create(n);var s=r.firstChild;"thead"===n?J(Tn(ce.fromDom(r),"caption,colgroup")).fold((function(){return r.insertBefore(a,s)}),(function(e){return t.insertAfter(a,e.dom)})):r.appendChild(a)}"tbody"===n&&"thead"===o&&a.firstChild?a.insertBefore(e,a.firstChild):a.appendChild(e),i.hasChildNodes()||t.remove(i)}},jh=function(t,e,n){if(k(n)&&Tl(e)!==n){var r=t.dom.rename(e,n);return Kc(t,r),r}return e},Fh=function(t,e,n,r){var i=t.dom,o=jh(t,e,n);return C(r)||i.setAttrib(o,"scope",r),o},$h=function(t,e,n,r){return B(e,(function(e){return Fh(t,e,n,r)}))},Hh=function(t,e,n){var r=function(){var n=gr(ce.fromDom(e.cells[0])).map((function(t){return vr(t)})).getOr([]);return Q(n,(function(e){return Bh(t,e.dom)})).map((function(t){return t.thead&&t.ths?"sectionCells":t.thead?"section":"cells"})).getOr("section")},i=t.dom;if("header"===n){var o=Sl(t),a="auto"===o?r():o;$h(t,e.cells,"section"===a?"td":"th","col"),zh(i,e,"cells"===a?"tbody":"thead")}else $h(t,e.cells,"td",null),zh(i,e,"footer"===n?"tfoot":"tbody")},Vh=function(t){return gr(t).bind((function(t){return Di(t,No.firstSelectedSelector)})).fold((function(){return t}),(function(t){return t[0]}))},Uh=function(t){return function(e){var n=Ke(e),r="col"===n||"colgroup"===n?Vh(e):e;return jn(r,t)}},qh=Uh("th,td"),Wh=Uh("th,td,caption"),Kh=function(t,e){return qh(t).map((function(t){return _o(e)})).getOr([])},Gh=function(t,e){var n=qh(t),r=n.bind((function(t){return gr(t)})).map((function(t){return vr(t)}));return Wo(n,r,(function(t,n){return j(n,(function(n){return R(wo(n.dom.cells),(function(n){return"1"===Vn(n,e)||pe(n,t)}))}))})).getOr([])},Yh=function(e,n,r){var i=function(t){return"table"===Ke(Al(t))},o=function(t){return!1===i(e)||wu(t).rows>1},a=function(t){return!1===i(e)||wu(t).columns>1},s=El(e),u=function(t,n,r,i){return function(o,a){Bl(o);var u=i(),c=ce.fromDom(e.getDoc()),l=vo(r,c,s),f=Gl(e,o);return n(o)?t(u,o,a,l,f).bind((function(t){return B(t.newRows,(function(t){Wc(e,t.dom)})),B(t.newCells,(function(t){Kc(e,t.dom)})),t.cursor.map((function(t){var n=gf(t),r=e.dom.createRng();return r.setStart(n.element.dom,n.offset),r.setEnd(n.element.dom,n.offset),r}))})):p.none()}},l=u(Ch,o,t,n),f=u(xh,a,t,n),d=u(bh,c,t,n),h=u(yh,c,t,n),m=u(wh,c,vf,n),g=u(_h,c,vf,n),v=u(Mh,c,t,n),b=u(Eh,c,t,n),y=u(Th,c,t,n),w=u(Ah,c,t,n),_=u(Dh,c,t,n),x=u(Nh,c,t,n),C=u(Oh,c,t,n),S=function(t,e){return Te(t,"type").filter((function(t){return N(e,t)}))},k=function(t,e){return S(e,["td","th"]).each((function(e){var n=I(Kh(Fl(t),r),(function(t){return t.dom}));$h(t,n,e,null)}))},M=function(t,e){return S(e,["header","body","footer"]).each((function(e){I(Gh(Fl(t),No.selected),(function(n){return Hh(t,n.dom,e)}))}))},E=u(Sh,c,t,n),O=u(kh,c,t,n),T=function(t){var e=Gh(Fl(t),No.selected);if(e.length>0){var n=I(e,(function(e){return Lh(t,e.dom)})),r=N(n,"header"),i=N(n,"footer");if(r||i){var o=N(n,"body");return!r||o||i?r||o||!i?"":"footer":"header"}return"body"}},A=function(t){return gh(Kh(Fl(t),r),(function(t){return"th"===Ke(t)})).getOr("")},D=Rh;return{deleteRow:l,deleteColumn:f,insertRowsBefore:d,insertRowsAfter:h,insertColumnsBefore:m,insertColumnsAfter:g,mergeCells:v,unmergeCells:b,pasteColsBefore:y,pasteColsAfter:w,pasteRowsBefore:_,pasteRowsAfter:x,pasteCells:C,setTableCellType:k,setTableRowType:M,makeColumnsHeader:E,unmakeColumnsHeader:O,getTableRowType:T,getTableCellType:A,getTableColType:D}},Xh={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Zh=function(){return ce.fromTag("th")},Jh=function(){return ce.fromTag("td")},Qh=function(){return ce.fromTag("col")},tp=function(t,e,n,r){for(var i=ce.fromTag("tr"),o=0;o<t;o++){var a=r<e||o<n?Zh():Jh();o<n&&$n(a,"scope","row"),r<e&&$n(a,"scope","col"),Jr(a,ce.fromTag("br")),Jr(i,a)}return i},ep=function(t){var e=ce.fromTag("colgroup");return P(t,(function(){return Jr(e,Qh())})),e},np=function(t,e,n,r){return P(t,(function(t){return tp(e,n,r,t)}))},rp=function(t,e,n,r,i,o){void 0===o&&(o=Xh);var a=ce.fromTag("table"),s="cells"!==i;Zn(a,o.styles),Hn(a,o.attributes),o.colGroups&&Jr(a,ep(e));var u=Math.min(t,n);if(s&&n>0){var c=ce.fromTag("thead");Jr(a,c);var l="sectionCells"===i?u:0,f=np(n,e,l,r);ni(c,f)}var d=ce.fromTag("tbody");Jr(a,d);var h=s?t-u:t,p=s?0:n,m=np(h,e,p,r);return ni(d,m),a},ip=function(t){return t.dom.innerHTML},op=function(t){var e=ce.fromTag("div"),n=ce.fromDom(t.dom.cloneNode(!0));return Jr(e,n),ip(e)},ap=function(t,e){t.selection.select(e.dom,!0),t.selection.collapse(!0)},sp=function(t,e){zn(e,"td,th").each(o(ap,t))},up=function(t,e){B(An(e,"tr"),(function(e){Wc(t,e.dom),B(An(e,"th,td"),(function(e){Kc(t,e.dom)}))}))},cp=function(t){return y(t)&&-1!==t.indexOf("%")},lp=function(t,e,n,r,i){var o=sl(t),a={styles:o,attributes:al(t),colGroups:Cl(t)};return t.undoManager.ignore((function(){var o=rp(n,e,i,r,Sl(t),a);$n(o,"data-mce-id","__mce");var s=op(o);t.insertContent(s),t.addVisual()})),zn(Al(t),'table[data-mce-id="__mce"]').map((function(e){return wl(t)?tf(t,e):_l(t)?ef(e):(yl(t)||cp(o.width))&&Ql(t,e),Bl(e),qn(e,"data-mce-id"),up(t,e),sp(t,e),e.dom})).getOr(null)},fp=function(t,e,n,r,i){void 0===r&&(r={});var o=function(t){return E(t)&&t>0};if(o(e)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return lp(t,n,e,s,a)}return console.error(i),null},dp=function(t){return function(){return t().fold((function(){return[]}),(function(t){return I(t,(function(t){return t.dom}))}))}},hp=function(t){return function(e){var n=e.length>0?p.some(wo(e)):p.none();t(n)}},pp=function(t){return function(e,n,r){void 0===r&&(r={});var i=fp(t,n,e,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return t.undoManager.add(),i}},mp=function(t,e,n,r){return{insertTable:pp(t),setClipboardRows:hp(e.setRows),getClipboardRows:dp(e.getRows),setClipboardCols:hp(e.setColumns),getClipboardCols:dp(e.getColumns),resizeHandler:n,selectionTargets:r}},gp=function(t,e,n){var r=rr(t,e,1);1===n||r<=1?qn(t,e):$n(t,e,Math.min(n,r))},vp=function(t,e,n){if(Pr.hasColumns(t)){var r=j(Pr.justColumns(t),(function(t){return t.column>=e&&t.column<n})),i=I(r,(function(t){var r=io(t.element);return gp(r,"span",n-e),r})),o=ce.fromTag("colgroup");return ni(o,i),[o]}return[]},bp=function(t,e,n){return I(t.all,(function(t){var r=j(t.cells,(function(t){return t.column>=e&&t.column<n})),i=I(r,(function(t){var r=io(t.element);return gp(r,"colspan",n-e),r})),o=ce.fromTag("tr");return ni(o,i),o}))},yp=function(t,e){var n=Pr.fromTable(t),r=Kf(n,e);return r.map((function(t){var e=t[t.length-1],r=t[0].column,i=e.column+e.colspan,o=vp(n,r,i),a=bp(n,r,i);return et(o,a)}))},wp=function(t,e,n){var r=Pr.fromTable(t),i=Kf(r,e);return i.map((function(t){var e=Bf(r,n,!1),i=kf(e).rows,o=i.slice(t[0].row,t[t.length-1].row+t[t.length-1].rowspan),a=jf(o,n);return Af(a)}))},_p=tinymce.util.Tools.resolve("tinymce.util.Tools"),xp=function(t,e,n){var r,i=t.select("td,th",e),o=function(e,r){for(var i=0;i<r.length;i++){var o=t.getStyle(r[i],n);if("undefined"===typeof e&&(e=o),e!==o)return""}return e};return o(r,i)},Cp=function(t,e,n){n&&t.formatter.apply("align"+n,{},e)},Sp=function(t,e,n){n&&t.formatter.apply("valign"+n,{},e)},kp=function(t,e){_p.each("left center right".split(" "),(function(n){t.formatter.remove("align"+n,{},e)}))},Mp=function(t,e){_p.each("top middle bottom".split(" "),(function(n){t.formatter.remove("valign"+n,{},e)}))},Ep=function(t){return De(t,"menu")},Op=function(t,e){var n=function(t,e){return e.concat(I(t,(function(t){var e=t.text||t.title;return Ep(t)?{text:e,items:Op(t.menu)}:{text:e,value:t.value}})))};return n(t,e||[])},Tp=function(t){return function(e){return gt(e,"rgb")?t.toHex(e):e}},Ap=function(t,e){var n=ce.fromDom(e);return{borderwidth:tr(n,"border-width").getOr(""),borderstyle:tr(n,"border-style").getOr(""),bordercolor:tr(n,"border-color").map(Tp(t)).getOr(""),backgroundcolor:tr(n,"background-color").map(Tp(t)).getOr("")}},Dp=function(t){var e=t[0],n=t.slice(1);return B(n,(function(t){B(ye(e),(function(n){_e(t,(function(t,r){var i=e[n];""!==i&&n===r&&i!==t&&(e[n]="")}))}))})),e},Np=function(t){var e=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],n={name:"borderwidth",type:"input",label:"Border width"},r="cell"===t?[n].concat(e):e;return{title:"Advanced",name:"advanced",items:r}},Rp=function(t,e,n,r){return V(t,(function(t){return n.formatter.matchNode(r,e+t)})).getOr("")},Pp=o(Rp,["left","center","right"],"align"),Ip=o(Rp,["top","middle","bottom"],"valign"),Bp=function(t,e){var n=sl(t),r=al(t),i=function(t){return{borderstyle:Te(n,"border-style").getOr(""),bordercolor:Tp(t)(Te(n,"border-color").getOr("")),backgroundcolor:Tp(t)(Te(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var e=n["border-width"];return ml(t)&&e?{border:e}:Te(r,"border").fold((function(){return{}}),(function(t){return{border:t}}))},s=e?i(t.dom):{},u=function(){var t=Te(n,"border-spacing").or(Te(r,"cellspacing")).fold((function(){return{}}),(function(t){return{cellspacing:t}})),e=Te(n,"border-padding").or(Te(r,"cellpadding")).fold((function(){return{}}),(function(t){return{cellpadding:t}}));return tt(tt({},t),e)},c=tt(tt(tt(tt(tt(tt({},o),n),r),s),a()),u());return c},Lp=function(t,e,n){var r=function(e,n){var r=tr(ce.fromDom(n),"border-width");return ml(t)&&r.isSome()?r.getOr(""):e.getAttrib(n,"border")||xp(t.dom,n,"border-width")||xp(t.dom,n,"border")},i=t.dom;return tt({width:i.getStyle(e,"width")||i.getAttrib(e,"width"),height:i.getStyle(e,"height")||i.getAttrib(e,"height"),cellspacing:i.getStyle(e,"border-spacing")||i.getAttrib(e,"cellspacing"),cellpadding:i.getAttrib(e,"cellpadding")||xp(t.dom,e,"padding"),border:r(i,e),caption:!!i.select("caption",e)[0],class:i.getAttrib(e,"class",""),align:Pp(t,e)},n?Ap(i,e):{})},zp=function(t,e,n){var r=t.dom;return tt({height:r.getStyle(e,"height")||r.getAttrib(e,"height"),scope:r.getAttrib(e,"scope"),class:r.getAttrib(e,"class",""),type:Lh(t,e),align:Pp(t,e)},n?Ap(r,e):{})},jp=function(t,e,n,r){var i=t.dom,o=r.getOr(e),a=function(t,e){return i.getStyle(t,e)||i.getAttrib(t,e)};return tt({width:a(o,"width"),height:a(e,"height"),scope:i.getAttrib(e,"scope"),celltype:Tl(e),class:i.getAttrib(e,"class",""),halign:Pp(t,e),valign:Ip(t,e)},n?Ap(i,e):{})},Fp=function(t){var e=Op(gl(t));return e.length>0?p.some({name:"class",type:"listbox",label:"Class",items:e}):p.none()},$p=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"H Align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"V Align",items:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}],Hp=function(t){return $p.concat(Fp(t).toArray())},Vp=function(t){return function(e,n){var r=e.dom,i=function(e,i){t&&!i||r.setAttrib(n,e,i)},o=function(e,i){t&&!i||r.setStyle(n,e,i)},a=function(r,i){t&&!i||(""===i?e.formatter.remove(r,{value:null},n,!0):e.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},Up={normal:Vp(!1),ifTruthy:Vp(!0)},qp=function(t){return gr(t[0]).map((function(e){var n=Pr.fromTable(e),r=Pr.justCells(n),i=j(r,(function(e){return R(t,(function(t){return pe(e.element,t)}))}));return I(i,(function(t){return{element:t.element.dom,column:Pr.getColumnAt(n,t.column).map((function(t){return t.element.dom}))}}))}))},Wp=function(t,e,n){t.setAttrib("scope",n.scope),t.setAttrib("class",n.class),t.setStyle("height",Il(n.height)),e.setStyle("width",Il(n.width))},Kp=function(t,e){t.setFormat("tablecellbackgroundcolor",e.backgroundcolor),t.setFormat("tablecellbordercolor",e.bordercolor),t.setFormat("tablecellborderstyle",e.borderstyle),t.setFormat("tablecellborderwidth",Il(e.borderwidth))},Gp=function(t,e,n){var r=1===e.length;if(e.length>=1){var i=gr(e[0]);qp(e).each((function(e){B(e,(function(e){var i=Fh(t,e.element,n.celltype),o=r?Up.normal(t,i):Up.ifTruthy(t,i),a=e.column.map((function(e){return r?Up.normal(t,e):Up.ifTruthy(t,e)})).getOr(o);Wp(o,a,n),ll(t)&&Kp(o,n),r&&(kp(t,i),Mp(t,i)),n.halign&&Cp(t,i,n.halign),n.valign&&Sp(t,i,n.valign)}))})),i.each((function(e){return Jc(t,e.dom)}))}},Yp=function(t,e,n){var r=n.getData();n.close(),t.undoManager.transact((function(){Gp(t,e,r),t.focus()}))},Xp=function(t,e){var n=qp(e).map((function(e){return I(e,(function(e){return jp(t,e.element,ll(t),e.column)}))}));return Dp(n.getOrDie())},Zp=function(t,e){var n=Kh(Fl(t),e);if(0!==n.length){var r=Xp(t,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Hp(t)},Np("cell")]},a={type:"panel",items:[{type:"grid",columns:2,items:Hp(t)}]};t.windowManager.open({title:"Cell Properties",size:"normal",body:ll(t)?i:a,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:o(Yp,t,n)})}},Jp=function(t){var e=Op(vl(t));return e.length>0?p.some({name:"class",type:"listbox",label:"Class",items:e}):p.none()},Qp=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],tm=function(t){return Qp.concat(Jp(t).toArray())},em=function(t,e){t.setAttrib("scope",e.scope),t.setAttrib("class",e.class),t.setStyle("height",Il(e.height))},nm=function(t,e){t.setStyle("background-color",e.backgroundcolor),t.setStyle("border-color",e.bordercolor),t.setStyle("border-style",e.borderstyle)},rm=function(t,e,n,r){var i=1===e.length;B(e,(function(e){r.type!==Tl(e.parentNode)&&Hh(t,e,r.type);var o=i?Up.normal(t,e):Up.ifTruthy(t,e);em(o,r),fl(t)&&nm(o,r),r.align!==n.align&&(kp(t,e),Cp(t,e,r.align))})),gr(ce.fromDom(e[0])).each((function(e){return Jc(t,e.dom)}))},im=function(t,e,n,r){var i=r.getData();r.close(),t.undoManager.transact((function(){rm(t,e,n,i),t.focus()}))},om=function(t){var e=Gh(Fl(t),No.selected);if(0!==e.length){var n=I(e,(function(e){return zp(t,e.dom,fl(t))})),r=Dp(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:tm(t)},Np("row")]},a={type:"panel",items:[{type:"grid",columns:2,items:tm(t)}]};t.windowManager.open({title:"Row Properties",size:"normal",body:fl(t)?i:a,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:o(im,t,I(e,(function(t){return t.dom})),r)})}},am=tinymce.util.Tools.resolve("tinymce.Env"),sm=function(t,e,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=hl(t)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=e.length>0?[{type:"listbox",name:"class",label:"Class",items:e}]:[];return r.concat(i).concat(o).concat(a).concat(s)},um=function(t,e,n,r){if("TD"===e.tagName||"TH"===e.tagName)y(n)?t.setStyle(e,n,r):t.setStyle(e,n);else if(e.children)for(var i=0;i<e.children.length;i++)um(t,e.children[i],n,r)},cm=function(t,e,n){var r=t.dom,i={},o={};if(i.class=n.class,o.height=Il(n.height),r.getAttrib(e,"width")&&!ml(t)?i.width=Pl(n.width):o.width=Il(n.width),ml(t)?(o["border-width"]=Il(n.border),o["border-spacing"]=Il(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),ml(t)&&e.children)for(var a=0;a<e.children.length;a++)um(r,e.children[a],{"border-width":Il(n.border),padding:Il(n.cellpadding)}),dl(t)&&um(r,e.children[a],{"border-color":n.bordercolor});dl(t)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(tt(tt({},sl(t)),o)),r.setAttribs(e,tt(tt({},al(t)),i)),Jc(t,e)},lm=function(t,e,n){var r,i=t.dom,o=n.getData();n.close(),""===o.class&&delete o.class,t.undoManager.transact((function(){if(!e){var n=parseInt(o.cols,10)||1,a=parseInt(o.rows,10)||1;e=lp(t,n,a,0,0)}cm(t,e,o),r=i.select("caption",e)[0],r&&!o.caption&&i.remove(r),!r&&o.caption&&(r=i.create("caption"),r.innerHTML=am.ie?Gi:'<br data-mce-bogus="1"/>',e.insertBefore(r,e.firstChild)),""===o.align?kp(t,e):Cp(t,e,o.align),t.focus(),t.addVisual()}))},fm=function(t,e){var n,r=t.dom,i=Bp(t,dl(t));!1===e?(n=r.getParent(t.selection.getStart(),"table"),n?i=Lp(t,n,dl(t)):dl(t)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",dl(t)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var a=Op(bl(t));a.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var s={type:"grid",columns:2,items:sm(t,a,e)},u=function(){return{type:"panel",items:[s]}},c=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[s]},Np("table")]}},l=dl(t)?c():u();t.windowManager.open({title:"Table Properties",size:"normal",body:l,onSubmit:o(lm,t,n),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},dm=function(t){return Wh(Fl(t))},hm=function(t){return qh(Fl(t))},pm=function(e,n,r,i,s){var u=Rl(e),c=function(){return dm(e).each((function(t){gr(t,u).filter(a(u)).each((function(t){var n=ce.fromText("");if(Xr(t,n),ii(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},l=function(t){return dm(e).each((function(n){var r=_l(e)||wl(e)||yl(e);r||gr(n,u).each((function(n){"relative"!==t||gu(n)?"fixed"!==t||vu(n)?"responsive"!==t||bu(n)||ef(n):tf(e,n):Ql(e,n),Bl(n),Jc(e,n.dom)}))}))},f=function(t){return gr(t,u)},d=function(t){return function(n){e.selection.setRng(n),e.focus(),r.clear(t),Bl(t),Jc(e,t.dom)}},h=function(t){return hm(e).each((function(e){f(e).each((function(n){var r=Po(i,n,e);t(n,r).each(d(n))}))}))},m=function(){return hm(e).map((function(n){return f(n).bind((function(r){var o=Po(i,r,n),a=vo(t,ce.fromDom(e.getDoc()),p.none());return wp(r,o,a)}))}))},g=function(){return hm(e).map((function(t){return f(t).bind((function(e){var n=Po(i,e,t);return yp(e,n)}))}))},v=function(t,n){return n().each((function(n){var r=I(n,(function(t){return io(t)}));hm(e).each((function(n){return f(n).each((function(o){var a=bo(ce.fromDom(e.getDoc())),s=Bo(i,n,r,a);t(o,s).each(d(o))}))}))}))};_e({mceTableSplitCells:function(){return h(n.unmergeCells)},mceTableMergeCells:function(){return h(n.mergeCells)},mceTableInsertRowBefore:function(){return h(n.insertRowsBefore)},mceTableInsertRowAfter:function(){return h(n.insertRowsAfter)},mceTableInsertColBefore:function(){return h(n.insertColumnsBefore)},mceTableInsertColAfter:function(){return h(n.insertColumnsAfter)},mceTableDeleteCol:function(){return h(n.deleteColumn)},mceTableDeleteRow:function(){return h(n.deleteRow)},mceTableCutCol:function(t){return g().each((function(t){s.setColumns(t),h(n.deleteColumn)}))},mceTableCutRow:function(t){return m().each((function(t){s.setRows(t),h(n.deleteRow)}))},mceTableCopyCol:function(t){return g().each((function(t){return s.setColumns(t)}))},mceTableCopyRow:function(t){return m().each((function(t){return s.setRows(t)}))},mceTablePasteColBefore:function(t){return v(n.pasteColsBefore,s.getColumns)},mceTablePasteColAfter:function(t){return v(n.pasteColsAfter,s.getColumns)},mceTablePasteRowBefore:function(t){return v(n.pasteRowsBefore,s.getRows)},mceTablePasteRowAfter:function(t){return v(n.pasteRowsAfter,s.getRows)},mceTableDelete:c,mceTableSizingMode:function(t,e){return l(e)}},(function(t,n){return e.addCommand(n,t)}));var b=function(t,e){e.each((function(e){Jc(t,e.dom)}))};_e({mceTableCellType:function(t,r){var i=gr(Fl(e),u);n.setTableCellType(e,r),b(e,i)},mceTableRowType:function(t,r){var i=gr(Fl(e),u);n.setTableRowType(e,r),b(e,i)}},(function(t,n){return e.addCommand(n,t)})),e.addCommand("mceTableColType",(function(t,e){return Te(e,"type").each((function(t){return h("th"===t?n.makeColumnsHeader:n.unmakeColumnsHeader)}))})),_e({mceTableProps:o(fm,e,!1),mceTableRowProps:o(om,e),mceTableCellProps:o(Zp,e,i)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){w(n)&&ye(n).length>0?fp(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):fm(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var r=function(t){return"tablecell"+t.toLowerCase().replace("-","")};if(w(n)){var o=Kh(Fl(e),i);if(0!==o.length){var a=Me(n,(function(t,n){return e.formatter.has(r(n))&&y(t)}));Ne(a)||(_e(a,(function(t,n){B(o,(function(i){Up.normal(e,i.dom).setFormat(r(n),t)}))})),f(o[0]).each((function(t){return Jc(e,t.dom,{structure:!1,style:!0})})))}}}))},mm=function(t,e,n){var r=Rl(t),i=function(t){return gr(t,r)};_e({mceTableRowType:function(){return e.getTableRowType(t)},mceTableCellType:function(){return e.getTableCellType(t)},mceTableColType:function(){return qh(Fl(t)).bind((function(t){return i(t).map((function(r){var i=Po(n,r,t);return e.getTableColType(r,i)}))})).getOr("")}},(function(e,n){return t.addQueryValueHandler(n,e)}))},gm=function(){var t=$l(p.none()),e=$l(p.none()),n=function(t){t.set(p.none())};return{getRows:t.get,setRows:function(r){t.set(r),n(e)},clearRows:function(){return n(t)},getColumns:e.get,setColumns:function(r){e.set(r),n(t)},clearColumns:function(){return n(e)}}},vm={tablecellbackgroundcolor:{selector:"td,th",styles:{backgroundColor:"%value"},remove_similar:!0},tablecellbordercolor:{selector:"td,th",styles:{borderColor:"%value"},remove_similar:!0},tablecellborderstyle:{selector:"td,th",styles:{borderStyle:"%value"},remove_similar:!0},tablecellborderwidth:{selector:"td,th",styles:{borderWidth:"%value"},remove_similar:!0}},bm=function(t){t.formatter.register(vm)},ym=Pi.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),wm=function(t){return void 0===t&&(t=void 0),ym.none(t)},_m=tt(tt({},ym),{none:wm}),xm=function(t,e){return gr(t,e).bind((function(e){var n=pr(e),r=U(n,(function(e){return pe(t,e)}));return r.map((function(t){return{index:t,all:n}}))}))},Cm=function(t,e){var n=xm(t,e);return n.fold((function(){return _m.none(t)}),(function(e){return e.index+1<e.all.length?_m.middle(t,e.all[e.index+1]):_m.last(t)}))},Sm=function(t,e){var n=xm(t,e);return n.fold((function(){return _m.none()}),(function(e){return e.index-1>=0?_m.middle(t,e.all[e.index-1]):_m.first(t)}))},km=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Mm={create:km},Em=Pi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Om=function(t,e,n,r){return t.fold(e,n,r)},Tm=function(t){return t.fold(i,i,i)},Am=Em.before,Dm=Em.on,Nm=Em.after,Rm={before:Am,on:Dm,after:Nm,cata:Om,getStart:Tm},Pm=Pi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Im=function(t){return Pm.exact(t.start,t.soffset,t.finish,t.foffset)},Bm=function(t){return t.match({domRange:function(t){return ce.fromDom(t.startContainer)},relative:function(t,e){return Rm.getStart(t)},exact:function(t,e,n,r){return t}})},Lm=Pm.domRange,zm=Pm.relative,jm=Pm.exact,Fm=function(t){var e=Bm(t);return on(e)},$m=Mm.create,Hm={domRange:Lm,relative:zm,exact:jm,exactFromRange:Im,getWin:Fm,range:$m},Vm=function(t,e){var n=t.document.createRange();return Um(n,e),n},Um=function(t,e){return t.selectNodeContents(e.dom)},qm=function(t,e){e.fold((function(e){t.setStartBefore(e.dom)}),(function(e,n){t.setStart(e.dom,n)}),(function(e){t.setStartAfter(e.dom)}))},Wm=function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))},Km=function(t,e,n){var r=t.document.createRange();return qm(r,e),Wm(r,n),r},Gm=function(t,e,n,r,i){var o=t.document.createRange();return o.setStart(e.dom,n),o.setEnd(r.dom,i),o},Ym=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},Xm=function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?p.some(n).map(Ym):p.none()},Zm=Pi.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Jm=function(t,e,n){return e(ce.fromDom(n.startContainer),n.startOffset,ce.fromDom(n.endContainer),n.endOffset)},Qm=function(t,e){return e.match({domRange:function(t){return{ltr:r(t),rtl:p.none}},relative:function(e,n){return{ltr:nt((function(){return Km(t,e,n)})),rtl:nt((function(){return p.some(Km(t,n,e))}))}},exact:function(e,n,r,i){return{ltr:nt((function(){return Gm(t,e,n,r,i)})),rtl:nt((function(){return p.some(Gm(t,r,i,e,n))}))}}})},tg=function(t,e){var n=e.ltr();if(n.collapsed){var r=e.rtl().filter((function(t){return!1===t.collapsed}));return r.map((function(t){return Zm.rtl(ce.fromDom(t.endContainer),t.endOffset,ce.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return Jm(t,Zm.ltr,n)}))}return Jm(t,Zm.ltr,n)},eg=function(t,e){var n=Qm(t,e);return tg(t,n)},ng=function(t,e){var n=eg(t,e);return n.match({ltr:function(e,n,r,i){var o=t.document.createRange();return o.setStart(e.dom,n),o.setEnd(r.dom,i),o},rtl:function(e,n,r,i){var o=t.document.createRange();return o.setStart(r.dom,i),o.setEnd(e.dom,n),o}})},rg=(Zm.ltr,Zm.rtl,function(t,e,n,r,i){if(0===i)return 0;if(e===r)return i-1;for(var o=r,a=1;a<i;a++){var s=t(a),u=Math.abs(e-s.left);if(n<=s.bottom){if(n<s.top||u>o)return a-1;o=u}}return 0}),ig=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom},og=function(t,e,n,r,i){var o=function(n){var r=t.dom.createRange();return r.setStart(e.dom,n),r.collapse(!0),r},a=function(t){var e=o(t);return e.getBoundingClientRect()},s=ui(e).length,u=rg(a,n,r,i.right,s);return o(u)},ag=function(t,e,n,r){var i=t.dom.createRange();i.selectNode(e.dom);var o=i.getClientRects(),a=Q(o,(function(t){return ig(t,n,r)?p.some(t):p.none()}));return a.map((function(i){return og(t,e,n,r,i)}))},sg=function(t,e,n,r){var i=t.dom.createRange(),o=fn(e);return Q(o,(function(e){return i.selectNode(e.dom),ig(i.getBoundingClientRect(),n,r)?ug(t,e,n,r):p.none()}))},ug=function(t,e,n,r){return Je(e)?ag(t,e,n,r):sg(t,e,n,r)},cg=function(t,e,n,r){var i=t.dom.createRange();i.selectNode(e.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return ug(t,e,a,s)},lg=!0,fg=!1,dg=function(t,e){return e-t.left<t.right-e?lg:fg},hg=function(t,e,n){var r=t.dom.createRange();return r.selectNode(e.dom),r.collapse(n),r},pg=function(t,e,n){var r=t.dom.createRange();r.selectNode(e.dom);var i=r.getBoundingClientRect(),o=dg(i,n),a=o===lg?Qi:to;return a(e).map((function(e){return hg(t,e,o)}))},mg=function(t,e,n){var r=e.dom.getBoundingClientRect(),i=dg(r,n);return p.some(hg(t,e,i))},gg=function(t,e,n){var r=0===fn(e).length?mg:pg;return r(t,e,n)},vg=function(t,e,n){return p.from(t.dom.caretPositionFromPoint(e,n)).bind((function(e){if(null===e.offsetNode)return p.none();var n=t.dom.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(),p.some(n)}))},bg=function(t,e,n){return p.from(t.dom.caretRangeFromPoint(e,n))},yg=function(t,e,n,r){var i=t.dom.createRange();i.selectNode(e.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return cg(t,e,a,s)},wg=function(t,e,n){return ce.fromPoint(t,e,n).bind((function(r){var i=function(){return gg(t,r,e)};return 0===fn(r).length?i():yg(t,r,e,n).orThunk(i)}))},_g=function(){return document.caretPositionFromPoint?vg:document.caretRangeFromPoint?bg:wg}(),xg=function(t,e,n){var r=ce.fromDom(t.document);return _g(r,e,n).map((function(t){return Mm.create(ce.fromDom(t.startContainer),t.startOffset,ce.fromDom(t.endContainer),t.endOffset)}))},Cg=function(t,e){var n=Ke(t);return"input"===n?Rm.after(t):N(["br","img"],n)?0===e?Rm.before(t):Rm.after(t):Rm.on(t,e)},Sg=function(t,e){var n=t.fold(Rm.before,Cg,Rm.after),r=e.fold(Rm.before,Cg,Rm.after);return Hm.relative(n,r)},kg=function(t,e,n,r){var i=Cg(t,e),o=Cg(n,r);return Hm.relative(i,o)},Mg=function(t){return t.match({domRange:function(t){var e=ce.fromDom(t.startContainer),n=ce.fromDom(t.endContainer);return kg(e,t.startOffset,n,t.endOffset)},relative:Sg,exact:kg})},Eg=function(t,e,n,r){var i=nn(t),o=i.dom.createRange();return o.setStart(t.dom,e),o.setEnd(n.dom,r),o},Og=function(t,e,n,r){var i=Eg(t,e,n,r),o=pe(t,n)&&e===r;return i.collapsed&&!o},Tg=function(t){return p.from(t.getSelection())},Ag=function(t,e){Tg(t).each((function(t){t.removeAllRanges(),t.addRange(e)}))},Dg=function(t,e,n,r,i){var o=Gm(t,e,n,r,i);Ag(t,o)},Ng=function(t,e,n,r,i,o){e.collapse(n.dom,r),e.extend(i.dom,o)},Rg=function(t,e){return eg(t,e).match({ltr:function(e,n,r,i){Dg(t,e,n,r,i)},rtl:function(e,n,r,i){Tg(t).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(e.dom,n,r.dom,i);else if(o.extend)try{Ng(t,o,e,n,r,i)}catch(a){Dg(t,r,i,e,n)}else Dg(t,r,i,e,n)}))}})},Pg=function(t,e,n,r,i){var o=kg(e,n,r,i);Rg(t,o)},Ig=function(t,e,n){var r=Sg(e,n);Rg(t,r)},Bg=function(t){var e=Hm.getWin(t).dom,n=function(t,n,r,i){return Gm(e,t,n,r,i)},r=Mg(t);return eg(e,r).match({ltr:n,rtl:n})},Lg=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return p.some(Mm.create(ce.fromDom(e.startContainer),e.startOffset,ce.fromDom(n.endContainer),n.endOffset))}return p.none()},zg=function(t){if(null===t.anchorNode||null===t.focusNode)return Lg(t);var e=ce.fromDom(t.anchorNode),n=ce.fromDom(t.focusNode);return Og(e,t.anchorOffset,n,t.focusOffset)?p.some(Mm.create(e,t.anchorOffset,n,t.focusOffset)):Lg(t)},jg=function(t,e){var n=Vm(t,e);Ag(t,n)},Fg=function(t){return Tg(t).filter((function(t){return t.rangeCount>0})).bind(zg)},$g=function(t){return Fg(t).map((function(t){return Hm.exact(t.start,t.soffset,t.finish,t.foffset)}))},Hg=function(t,e){var n=ng(t,e);return Xm(n)},Vg=function(t,e,n){return xg(t,e,n)},Ug=function(t){Tg(t).each((function(t){return t.removeAllRanges()}))},qg=tinymce.util.Tools.resolve("tinymce.util.VK"),Wg=function(t,e,n,r){return Xg(t,e,Cm(n),r)},Kg=function(t,e,n,r){return Xg(t,e,Sm(n),r)},Gg=function(t,e){var n=Hm.exact(e,0,e,0);return Bg(n)},Yg=function(t,e){var n=An(e,"tr");return J(n).bind((function(e){return zn(e,"td,th").map((function(e){return Gg(t,e)}))}))},Xg=function(t,e,n,r){return n.fold(p.none,p.none,(function(e,n){return Qi(n).map((function(e){return Gg(t,e)}))}),(function(n){return gr(n,e).bind((function(e){var i=Ro(n);return t.undoManager.transact((function(){r.insertRowsAfter(e,i)})),Yg(t,e)}))}))},Zg=["table","li","dl"],Jg=function(t,e,n){if(t.keyCode===qg.TAB){var r=Al(e),i=function(t){var e=Ke(t);return pe(t,r)||N(Zg,e)},o=e.selection.getRng();if(o.collapsed){var a=ce.fromDom(o.startContainer);hr(a,i).each((function(r){t.preventDefault();var o=t.shiftKey?Kg:Wg,a=o(e,i,r,n);a.each((function(t){e.selection.setRng(t)}))}))}}},Qg=function(t,e){return{selection:t,kill:e}},tv={create:Qg},ev=function(t,e,n,r){return{start:Rm.on(t,e),finish:Rm.on(n,r)}},nv={create:ev},rv=function(t,e){var n=ng(t,e);return Mm.create(ce.fromDom(n.startContainer),n.startOffset,ce.fromDom(n.endContainer),n.endOffset)},iv=nv.create,ov=function(t,e,n,r,i,o,a){return pe(n,i)&&r===o?p.none():jn(n,"td,th",e).bind((function(n){return jn(i,"td,th",e).bind((function(r){return av(t,e,n,r,a)}))}))},av=function(t,e,n,r,i){return pe(n,r)?p.none():ki(n,r,e).bind((function(e){var r=e.boxes.getOr([]);return r.length>0?(i(t,r,e.start,e.finish),p.some(tv.create(p.some(iv(n,0,n,Yi(n))),!0))):p.none()}))},sv=function(t,e,n,r,i){var o=function(t){return i.clearBeforeUpdate(n),i.selectRange(n,t.boxes,t.start,t.finish),t.boxes};return Ai(r,t,e,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},uv=function(t,e){return{item:t,mode:e}},cv=function(t,e,n,r){return void 0===r&&(r=lv),t.property().parent(e).map((function(t){return uv(t,r)}))},lv=function(t,e,n,r){return void 0===r&&(r=fv),n.sibling(t,e).map((function(t){return uv(t,r)}))},fv=function(t,e,n,r){void 0===r&&(r=fv);var i=t.property().children(e),o=n.first(i);return o.map((function(t){return uv(t,r)}))},dv=[{current:cv,next:lv,fallback:p.none()},{current:lv,next:fv,fallback:p.some(cv)},{current:fv,next:fv,fallback:p.some(lv)}],hv=function(t,e,n,r,i){void 0===i&&(i=dv);var o=V(i,(function(t){return t.current===n}));return o.bind((function(n){return n.current(t,e,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return hv(t,e,n,r)}))}))}))},pv=function(){var t=function(t,e){return t.query().prevSibling(e)},e=function(t){return t.length>0?p.some(t[t.length-1]):p.none()};return{sibling:t,first:e}},mv=function(){var t=function(t,e){return t.query().nextSibling(e)},e=function(t){return t.length>0?p.some(t[0]):p.none()};return{sibling:t,first:e}},gv={left:pv,right:mv},vv=function(t,e,n,r,i,o){var a=hv(t,e,r,i);return a.bind((function(e){return o(e.item)?p.none():n(e.item)?p.some(e.item):vv(t,e.item,n,e.mode,i,o)}))},bv=function(t,e,n,r){return vv(t,e,n,lv,gv.left(),r)},yv=function(t,e,n,r){return vv(t,e,n,lv,gv.right(),r)},wv=function(t){return function(e){return 0===t.property().children(e).length}},_v=function(t,e,n){return Cv(t,e,wv(t),n)},xv=function(t,e,n){return Sv(t,e,wv(t),n)},Cv=bv,Sv=yv,kv=di(),Mv=function(t,e){return _v(kv,t,e)},Ev=function(t,e){return xv(kv,t,e)},Ov=function(t,e,n){return Cv(kv,t,e,n)},Tv=function(t,e,n){return Sv(kv,t,e,n)},Av=function(t,e,n){return Nn(t,e,n).isSome()},Dv=Pi.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Nv=function(t,e,n){var r=t.getRect(e),i=t.getRect(n);return i.right>r.left&&i.left<r.right},Rv=function(t){return jn(t,"tr")},Pv=function(t,e,n,r,i,o,a){return jn(r,"td,th",a).bind((function(n){return jn(e,"td,th",a).map((function(e){return pe(n,e)?pe(r,n)&&Yi(n)===i?o(e):Dv.none("in same cell"):xi(Rv,[n,e]).fold((function(){return Nv(t,e,n)?Dv.success():o(e)}),(function(t){return o(e)}))}))})).getOr(Dv.none("default"))},Iv=function(t,e,n,r,i){return t.fold(e,n,r,i)},Bv=tt(tt({},Dv),{verify:Pv,cata:Iv}),Lv=function(t,e,n,r){return{parent:t,children:e,element:n,index:r}},zv=function(t){return an(t).bind((function(e){var n=fn(e);return jv(n,t).map((function(r){return Lv(e,n,t,r)}))}))},jv=function(t,e){return U(t,o(pe,e))},Fv=function(t){return"br"===Ke(t)},$v=function(t,e,n){return e(t,n).bind((function(t){return Je(t)&&0===ui(t).trim().length?$v(t,e,n):p.some(t)}))},Hv=function(t,e,n){return n.traverse(e).orThunk((function(){return $v(e,n.gather,t)})).map(n.relative)},Vv=function(t,e){return dn(t,e).filter(Fv).orThunk((function(){return dn(t,e-1).filter(Fv)}))},Uv=function(t,e,n,r){return Vv(e,n).bind((function(e){return r.traverse(e).fold((function(){return $v(e,r.gather,t).map(r.relative)}),(function(t){return zv(t).map((function(t){return Rm.on(t.parent,t.index)}))}))}))},qv=function(t,e,n,r){var i=Fv(e)?Hv(t,e,r):Uv(t,e,n,r);return i.map((function(t){return{start:t,finish:t}}))},Wv=function(t){return Bv.cata(t,(function(t){return p.none()}),(function(){return p.none()}),(function(t){return p.some(lf(t,0))}),(function(t){return p.some(lf(t,Yi(t)))}))},Kv=function(t,e){return{left:t.left,top:t.top+e,right:t.right,bottom:t.bottom+e}},Gv=function(t,e){return{left:t.left,top:t.top-e,right:t.right,bottom:t.bottom-e}},Yv=function(t,e,n){return{left:t.left+e,top:t.top+n,right:t.right+e,bottom:t.bottom+n}},Xv=function(t){return t.top},Zv=function(t){return t.bottom},Jv=function(t,e,n){return n>=0&&n<Yi(e)?t.getRangedRect(e,n,e,n+1):n>0?t.getRangedRect(e,n-1,e,n):p.none()},Qv=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}},tb=function(t,e){return p.some(t.getRect(e))},eb=function(t,e,n){return Ze(e)?tb(t,e).map(Qv):Je(e)?Jv(t,e,n).map(Qv):p.none()},nb=function(t,e){return Ze(e)?tb(t,e).map(Qv):Je(e)?t.getRangedRect(e,0,e,Yi(e)).map(Qv):p.none()},rb=5,ib=100,ob=Pi.generate([{none:[]},{retry:["caret"]}]),ab=function(t,e){return t.left<e.left||Math.abs(e.right-t.left)<1||t.left>e.right},sb=function(t,e,n){return Rn(e,Bd).fold(u,(function(e){return nb(t,e).exists((function(t){return ab(n,t)}))}))},ub=function(t,e,n,r,i){var o=Kv(i,rb);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?ob.retry(o):n.top===i.bottom?ob.retry(Kv(i,1)):sb(t,e,i)?ob.retry(Yv(o,rb,0)):ob.none()},cb=function(t,e,n,r,i){var o=Gv(i,rb);return Math.abs(n.top-r.top)<1||n.bottom<i.top?ob.retry(o):n.bottom===i.top?ob.retry(Gv(i,1)):sb(t,e,i)?ob.retry(Yv(o,rb,0)):ob.none()},lb={point:Xv,adjuster:cb,move:Gv,gather:Mv},fb={point:Zv,adjuster:ub,move:Kv,gather:Ev},db=function(t,e,n){return t.elementFromPoint(e,n).filter((function(t){return"table"===Ke(t)})).isSome()},hb=function(t,e,n,r,i){return pb(t,e,n,e.move(r,rb),i)},pb=function(t,e,n,r,i){return 0===i?p.some(r):db(t,r.left,e.point(r))?hb(t,e,n,r,i-1):t.situsFromPoint(r.left,e.point(r)).bind((function(o){return o.start.fold(p.none,(function(o){return nb(t,o).bind((function(a){return e.adjuster(t,o,a,n,r).fold(p.none,(function(r){return pb(t,e,n,r,i-1)}))})).orThunk((function(){return p.some(r)}))}),p.none)}))},mb=function(t,e){return t.situsFromPoint(e.left,e.bottom+rb)},gb=function(t,e){return t.situsFromPoint(e.left,e.top-rb)},vb=function(t,e,n){return t.point(e)>n.getInnerHeight()?p.some(t.point(e)-n.getInnerHeight()):t.point(e)<0?p.some(-t.point(e)):p.none()},bb=function(t,e,n){var r=t.move(n,rb),i=pb(e,t,n,r,ib).getOr(r);return vb(t,i,e).fold((function(){return e.situsFromPoint(i.left,t.point(i))}),(function(n){return e.scrollBy(0,n),e.situsFromPoint(i.left,t.point(i)-n)}))},yb={tryUp:o(bb,lb),tryDown:o(bb,fb),ieTryUp:gb,ieTryDown:mb,getJumpSize:r(rb)},wb=20,_b=function(t,e,n){return t.getSelection().bind((function(r){return qv(e,r.finish,r.foffset,n).fold((function(){return p.some(lf(r.finish,r.foffset))}),(function(i){var o=t.fromSitus(i),a=Bv.verify(t,r.finish,r.foffset,o.finish,o.foffset,n.failure,e);return Wv(a)}))}))},xb=function(t,e,n,r,i,o){return 0===o?p.none():kb(t,e,n,r,i).bind((function(a){var s=t.fromSitus(a),u=Bv.verify(t,n,r,s.finish,s.foffset,i.failure,e);return Bv.cata(u,(function(){return p.none()}),(function(){return p.some(a)}),(function(a){return pe(n,a)&&0===r?Cb(t,n,r,Gv,i):xb(t,e,a,0,i,o-1)}),(function(a){return pe(n,a)&&r===Yi(a)?Cb(t,n,r,Kv,i):xb(t,e,a,Yi(a),i,o-1)}))}))},Cb=function(t,e,n,r,i){return eb(t,e,n).bind((function(e){return Sb(t,i,r(e,yb.getJumpSize()))}))},Sb=function(t,e,n){var r=Xt().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?e.otherRetry(t,n):r.isIE()?e.ieRetry(t,n):p.none()},kb=function(t,e,n,r,i){return eb(t,n,r).bind((function(e){return Sb(t,i,e)}))},Mb=function(t,e,n){return _b(t,e,n).bind((function(r){return xb(t,e,r.element,r.offset,n,wb).map(t.fromSitus)}))},Eb=function(t,e){return Av(t,(function(t){return an(t).exists((function(t){return pe(t,e)}))}))},Ob=function(t,e,n,r,i){return jn(r,"td,th",e).bind((function(r){return jn(r,"table",e).bind((function(o){return Eb(i,o)?Mb(t,e,n).bind((function(t){return jn(t.finish,"td,th",e).map((function(e){return{start:r,finish:e,range:t}}))})):p.none()}))}))},Tb=function(t,e,n,r,i,o){return Xt().browser.isIE()?p.none():o(r,e).orThunk((function(){return Ob(t,e,n,r,i).map((function(t){var e=t.range;return tv.create(p.some(iv(e.start,e.soffset,e.finish,e.foffset)),!0)}))}))},Ab=function(t,e){return jn(t,"tr",e).bind((function(t){return jn(t,"table",e).bind((function(n){var r=An(n,"tr");return pe(t,r[0])?Ov(n,(function(t){return to(t).isSome()}),e).map((function(t){var e=Yi(t);return tv.create(p.some(iv(t,e,t,e)),!0)})):p.none()}))}))},Db=function(t,e){return jn(t,"tr",e).bind((function(t){return jn(t,"table",e).bind((function(n){var r=An(n,"tr");return pe(t,r[r.length-1])?Tv(n,(function(t){return Qi(t).isSome()}),e).map((function(t){return tv.create(p.some(iv(t,0,t,0)),!0)})):p.none()}))}))},Nb=function(t,e,n,r,i,o,a){return Ob(t,n,r,i,o).bind((function(t){return av(e,n,t.start,t.finish,a)}))},Rb=function(){var t=$l(p.none()),e=function(){return t.set(p.none())},n=function(e){return t.set(p.some(e))},r=function(){return t.get().isSome()},i=function(e){return t.get().each(e)};return{clear:e,set:n,isSet:r,on:i}},Pb=function(t,e){return jn(t,"td,th",e)};function Ib(t,e,n,r){var i=Rb(),o=i.clear,a=function(t){r.clear(e),Pb(t.target,n).each(i.set)},s=function(o){i.on((function(i){r.clearBeforeUpdate(e),Pb(o.target,n).each((function(o){ki(i,o,n).each((function(n){var a=n.boxes.getOr([]);(a.length>1||1===a.length&&!pe(i,o))&&(r.selectRange(e,a,n.start,n.finish),t.selectContents(o))}))}))}))},u=function(t){o()};return{clearstate:o,mousedown:a,mouseover:s,mouseup:u}}var Bb={traverse:ln,gather:Ev,relative:Rm.before,otherRetry:yb.tryDown,ieRetry:yb.ieTryDown,failure:Bv.failedDown},Lb={traverse:cn,gather:Mv,relative:Rm.before,otherRetry:yb.tryUp,ieRetry:yb.ieTryUp,failure:Bv.failedUp},zb=function(t){return function(e){return e===t}},jb=zb(38),Fb=zb(40),$b=function(t){return t>=37&&t<=40},Hb={isBackward:zb(37),isForward:zb(39)},Vb={isBackward:zb(39),isForward:zb(37)},Ub=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return ua(n,r)},qb=function(t,e,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(t,e)},Wb=function(t){var e=function(e,n){return ce.fromPoint(ce.fromDom(t.document),e,n)},n=function(t){return t.dom.getBoundingClientRect()},r=function(e,n,r,i){var o=Hm.exact(e,n,r,i);return Hg(t,o)},i=function(){return $g(t).map((function(e){return rv(t,e)}))},o=function(e){var n=Hm.relative(e.start,e.finish);return rv(t,n)},a=function(e,n){return Vg(t,e,n).map((function(t){return nv.create(t.start,t.soffset,t.finish,t.foffset)}))},s=function(){Ug(t)},u=function(e){void 0===e&&(e=!1),$g(t).each((function(n){return n.fold((function(t){return t.collapse(e)}),(function(n,r){var i=e?n:r;Ig(t,i,i)}),(function(n,r,i,o){var a=e?n:i,s=e?r:o;Pg(t,a,s,a,s)}))}))},c=function(e){jg(t,e)},l=function(e){Pg(t,e.start,e.soffset,e.finish,e.foffset)},f=function(e,n){Ig(t,e,n)},d=function(){return t.innerHeight},h=function(){var e=Ub(ce.fromDom(t.document));return e.top},p=function(e,n){qb(e,n,ce.fromDom(t.document))};return{elementFromPoint:e,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:u,setSelection:l,setRelativeSelection:f,selectContents:c,getInnerHeight:d,getScrollY:h,scrollBy:p}},Kb=function(t,e){return{rows:t,cols:e}},Gb=function(t,e,n,r){var i=Wb(t),o=Ib(i,e,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},Yb=function(t,e,n,r){var i=Wb(t),a=function(){return r.clear(e),p.none()},s=function(t,s,u,c,l,f){var d=t.raw,h=d.which,m=!0===d.shiftKey,g=Mi(e,r.selectedSelector).fold((function(){return Fb(h)&&m?o(Nb,i,e,n,Bb,c,s,r.selectRange):jb(h)&&m?o(Nb,i,e,n,Lb,c,s,r.selectRange):Fb(h)?o(Tb,i,n,Bb,c,s,Db):jb(h)?o(Tb,i,n,Lb,c,s,Ab):p.none}),(function(t){var n=function(n){return function(){var o=Q(n,(function(n){return sv(n.rows,n.cols,e,t,r)}));return o.fold((function(){return Oi(e,r.firstSelectedSelector,r.lastSelectedSelector).map((function(t){var n=Fb(h)||f.isForward(h)?Rm.after:Rm.before;return i.setRelativeSelection(Rm.on(t.first,0),n(t.table)),r.clear(e),tv.create(p.none(),!0)}))}),(function(t){return p.some(tv.create(p.none(),!0))}))}};return Fb(h)&&m?n([Kb(1,0)]):jb(h)&&m?n([Kb(-1,0)]):f.isBackward(h)&&m?n([Kb(0,-1),Kb(-1,0)]):f.isForward(h)&&m?n([Kb(0,1),Kb(1,0)]):$b(h)&&!1===m?a:p.none}));return g()},u=function(t,i,o,a,s){return Mi(e,r.selectedSelector).fold((function(){var u=t.raw,c=u.which,l=!0===u.shiftKey;return!1===l?p.none():$b(c)?ov(e,n,i,o,a,s,r.selectRange):p.none()}),p.none)};return{keydown:s,keyup:u}},Xb=function(t,e,n,r){var i=Wb(t);return function(t,o){r.clearBeforeUpdate(e),ki(t,o,n).each((function(t){var n=t.boxes.getOr([]);r.selectRange(e,n,t.start,t.finish),i.selectContents(o),i.collapseSelection()}))}},Zb=function(t,e){B(e,(function(e){oc(t,e)}))},Jb=function(t){return function(e){rc(e,t)}},Qb=function(t){return function(e){Zb(e,t)}},ty=function(t){var e=Jb(t.selected),n=Qb([t.selected,t.lastSelected,t.firstSelected]),r=function(e){var r=An(e,t.selectedSelector);B(r,n)},i=function(n,i,o,a){r(n),B(i,e),rc(o,t.firstSelected),rc(a,t.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:t.selectedSelector,firstSelectedSelector:t.firstSelectedSelector,lastSelectedSelector:t.lastSelectedSelector}},ey=function(t,e,n){var r=function(e){qn(e,t.selected),qn(e,t.firstSelected),qn(e,t.lastSelected)},i=function(e){$n(e,t.selected,"1")},o=function(t){a(t),n()},a=function(e){var n=An(e,t.selectedSelector);B(n,r)},s=function(n,r,a,s){o(n),B(r,i),$n(a,t.firstSelected,"1"),$n(s,t.lastSelected,"1"),e(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:t.selectedSelector,firstSelectedSelector:t.firstSelectedSelector,lastSelectedSelector:t.lastSelectedSelector}},ny={byClass:ty,byAttr:ey},ry=function(t,e,n){var r=t.slice(0,e[e.length-1].row+1),i=jf(r,n);return W(i,(function(t){var n=t.cells.slice(0,e[e.length-1].column+1);return I(n,(function(t){return t.element}))}))},iy=function(t,e,n){var r=t.slice(e[0].row+e[0].rowspan-1,t.length),i=jf(r,n);return W(i,(function(t){var n=t.cells.slice(e[0].column+e[0].colspan-1,t.cells.length);return I(n,(function(t){return t.element}))}))},oy=function(t,e,n){var r=Pr.fromTable(t),i=Kf(r,e);return i.map((function(t){var e=Bf(r,n,!1),i=ry(e,t,n),o=iy(e,t,n);return{upOrLeftCells:i,downOrRightCells:o}}))},ay=function(t){return!1===ac(ce.fromDom(t.target),"ephox-snooker-resizer-bar")};function sy(e,n,r){var i=function(n,i,o){r.targets().each((function(r){var a=gr(i);a.each((function(a){var s=El(e),u=vo(t,ce.fromDom(e.getDoc()),s),c=oy(a,r,u);Xc(e,n,i,o,c)}))}))},o=function(){return Zc(e)},a=ny.byAttr(No,i,o);return e.on("init",(function(r){var i=e.getWin(),o=Al(e),s=Rl(e),u=function(){var n=e.selection,r=ce.fromDom(n.getStart()),i=ce.fromDom(n.getEnd()),s=xi(gr,[r,i]);s.fold((function(){return a.clear(o)}),t)},c=Gb(i,o,s,a),l=Yb(i,o,s,a),f=Xb(i,o,s,a),d=function(t){return!0===t.raw.shiftKey};e.on("TableSelectorChange",(function(t){return f(t.start,t.finish)}));var h=function(t,n){d(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Hm.relative(t.start,t.finish),r=ng(i,n);e.selection.setRng(r)})))},p=function(t){var n=Yu(t);if(n.raw.shiftKey&&$b(n.raw.which)){var r=e.selection.getRng(),i=ce.fromDom(r.startContainer),o=ce.fromDom(r.endContainer);l.keyup(n,i,r.startOffset,o,r.endOffset).each((function(t){h(n,t)}))}},m=function(t){var r=Yu(t);n().each((function(t){return t.hideBars()}));var i=e.selection.getRng(),o=ce.fromDom(i.startContainer),a=ce.fromDom(i.endContainer),s=na(Hb,Vb)(ce.fromDom(e.selection.getStart()));l.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(t){h(r,t)})),n().each((function(t){return t.showBars()}))},g=function(t){return 0===t.button},v=function(t){return void 0===t.buttons||(!(!am.browser.isEdge()||0!==t.buttons)||0!==(1&t.buttons))},b=function(t){c.clearstate()},y=function(t){g(t)&&ay(t)&&c.mousedown(Yu(t))},w=function(t){v(t)&&ay(t)&&c.mouseover(Yu(t))},_=function(t){g(t)&&ay(t)&&c.mouseup(Yu(t))},x=function(){var t=$l(ce.fromDom(o)),e=$l(0),n=function(n){var r=ce.fromDom(n.target);if("td"===Ke(r)||"th"===Ke(r)){var i=t.get(),o=e.get();pe(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),f(r,r))}t.set(r),e.set(n.timeStamp)};return{touchEnd:n}},C=x();e.on("dragstart",b),e.on("mousedown",y),e.on("mouseover",w),e.on("mouseup",_),e.on("touchend",C.touchEnd),e.on("keyup",p),e.on("keydown",m),e.on("NodeChange",u)})),{clear:a.clear}}var uy=function(t,e){var n=$l(p.none()),r=$l([]),i=function(){return Wh(Fl(t)).bind((function(t){var n=gr(t),r=function(t){return"caption"===Ke(t)};return n.map((function(n){return r(t)?Ro(t):Po(e,n,t)}))}))},o=function(){n.set(nt(i)()),B(r.get(),(function(t){return t()}))},a=function(t,e){var i=function(){return n.get().fold((function(){t.setDisabled(!0)}),(function(n){t.setDisabled(e(n))}))};return i(),r.set(r.get().concat([i])),function(){r.set(j(r.get(),(function(t){return t!==i})))}},s=function(t){return a(t,(function(t){return!1}))},u=function(t){return a(t,(function(t){return"caption"===Ke(t.element)}))},c=function(t){return function(e){return a(e,(function(e){return"caption"===Ke(e.element)||t().isNone()}))}},l=function(t){return a(t,(function(t){return t.mergable.isNone()}))},f=function(t){return a(t,(function(t){return t.unmergable.isNone()}))};return t.on("NodeChange ExecCommand TableSelectorChange",o),{onSetupTable:s,onSetupCellOrRow:u,onSetupPasteable:c,onSetupMergeable:l,onSetupUnmergeable:f,resetTargets:o,targets:function(){return n.get()}}},cy=function(t,e,n){t.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(t){return t("inserttable | cell row column | advtablesort | tableprops deletetable")}});var r=function(e){return function(){return t.execCommand(e)}};t.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:r("mceTableProps"),icon:"table",onSetup:e.onSetupTable}),t.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:r("mceTableDelete"),icon:"table-delete-table",onSetup:e.onSetupTable}),t.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:r("mceTableCellProps"),icon:"table-cell-properties",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:r("mceTableMergeCells"),icon:"table-merge-cells",onSetup:e.onSetupMergeable}),t.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:r("mceTableSplitCells"),icon:"table-split-cells",onSetup:e.onSetupUnmergeable}),t.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:r("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:r("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:r("mceTableDeleteRow"),icon:"table-delete-row",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:r("mceTableRowProps"),icon:"table-row-properties",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:r("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:r("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:r("mceTableDeleteCol"),icon:"table-delete-column",onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:e.onSetupPasteable(n.getRows)}),t.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:e.onSetupPasteable(n.getRows)}),t.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:e.onSetupPasteable(n.getColumns)}),t.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:e.onSetupPasteable(n.getColumns)}),t.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:r("mceInsertTable"),icon:"table"})},ly=function(t){var e=function(e){return t.dom.is(e,"table")&&t.getBody().contains(e)},n=xl(t);n.length>0&&t.ui.registry.addContextToolbar("table",{predicate:e,items:n,scope:"node",position:"node"})},fy=function(t,e,n){var r=function(e){return function(){return t.execCommand(e)}},i=function(e){t.execCommand("mceInsertTable",!1,{rows:e.numRows,columns:e.numColumns})},o={text:"Table properties",onSetup:e.onSetupTable,onAction:r("mceTableProps")},a={text:"Delete table",icon:"table-delete-table",onSetup:e.onSetupTable,onAction:r("mceTableDelete")};t.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:r("mceTableInsertRowBefore"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:r("mceTableInsertRowAfter"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:r("mceTableDeleteRow"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:r("mceTableRowProps"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:e.onSetupPasteable(n.getRows)}),t.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:e.onSetupPasteable(n.getRows)});var s={type:"nestedmenuitem",text:"Row",getSubmenuItems:function(){return"tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter"}};t.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:r("mceTableInsertColBefore"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:r("mceTableInsertColAfter"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:r("mceTableDeleteCol"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:e.onSetupPasteable(n.getColumns)}),t.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:e.onSetupPasteable(n.getColumns)});var u={type:"nestedmenuitem",text:"Column",getSubmenuItems:function(){return"tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter"}};t.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:r("mceTableCellProps"),onSetup:e.onSetupCellOrRow}),t.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:r("mceTableMergeCells"),onSetup:e.onSetupMergeable}),t.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:r("mceTableSplitCells"),onSetup:e.onSetupUnmergeable});var c={type:"nestedmenuitem",text:"Cell",getSubmenuItems:function(){return"tablecellprops tablemergecells tablesplitcells"}};!1===pl(t)?t.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:r("mceInsertTable")}):t.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),t.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:r("mceInsertTable")}),t.ui.registry.addMenuItem("tableprops",o),t.ui.registry.addMenuItem("deletetable",a),t.ui.registry.addNestedMenuItem("row",s),t.ui.registry.addNestedMenuItem("column",u),t.ui.registry.addNestedMenuItem("cell",c),t.ui.registry.addContextMenu("table",{update:function(){return e.resetTargets(),e.targets().fold((function(){return""}),(function(t){return"caption"===Ke(t.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}})};function dy(t){var e=Fi((function(){return Al(t)}),(function(){return Wh(Fl(t))}),No.selectedSelector),n=uy(t,e),r=cf(t),i=sy(t,r.lazyResize,n),o=Yh(t,r.lazyWire,e),a=gm();return pm(t,o,i,e,a),mm(t,o,e),Fo(t,e,o,i),fy(t,n,a),cy(t,n,a),ly(t),t.on("PreInit",(function(){t.serializer.addTempAttr(No.firstSelected),t.serializer.addTempAttr(No.lastSelected),bm(t)})),cl(t)&&t.on("keydown",(function(e){Jg(e,t,o)})),t.on("remove",(function(){r.destroy()})),mp(t,a,r,n)}function hy(){$i.add("table",dy)}hy()})()},"94f8":function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],u=[];(function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var r=2,i=0;while(i<64)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++})();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|t[e+h];else{var p=c[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[h-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=m+c[h-7]+v+c[h-16]}var b=s&l^~s&f,y=r&i^r&o^i&o,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=d+_+b+u[h]+c[h],C=w+y;d=f,f=l,l=s,s=a+x|0,a=o,o=i,i=r,r=x+C|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(l),n.HmacSHA256=o._createHmacHelper(l)}(Math),t.SHA256}))},"956a":function(t,e,n){var r=n("1e3c"),i=n("fda6"),o=n("bac2"),a=n("0be8"),s=n("ae84");function u(t,e){var n,r;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var i=s(e,!1,n,r);return l(t,i.key,i.iv)}function c(t,e){var n,r;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var i=s(e,!1,n,r);return f(t,i.key,i.iv)}function l(t,e,n){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function f(t,e,n){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function d(){return Object.keys(a).concat(i.getCiphers())}e.createCipher=e.Cipher=u,e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=c,e.createDecipheriv=e.Decipheriv=f,e.listCiphers=e.getCiphers=d},9619:function(t,e,n){var r=n("597f"),i=n("0e15");t.exports={throttle:r,debounce:i}},"966d":function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:o=new Array(s-1),a=0;while(a<o.length)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this,n("4362"))},"96a5":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var c=n("b639"),l=c.Buffer,f=n(2),d=f.inspect,h=d&&d.custom||"inspect";function p(t,e,n){l.prototype.copy.call(t,e,n)}t.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return u(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);var e=l.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;t-=r.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:h,value:function(t,e){return d(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"===typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{l=e.regeneratorRuntime=c?t.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(N([])));b&&b!==r&&i.call(b,a)&&(g=b);var y=S.prototype=x.prototype=Object.create(g);C.prototype=y.constructor=S,S.constructor=C,S[u]=C.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===C||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(y),t},l.awrap=function(t){return{__await:t}},k(M.prototype),M.prototype[s]=function(){return this},l.AsyncIterator=M,l.async=function(t,e,n,r){var i=new M(w(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(y),y[u]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=N,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function w(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new D(r||[]);return o._invoke=E(t,n,a),o}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function C(){}function S(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function M(t){function e(n,r,o,a){var s=_(t[n],t,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),a)}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function E(t,e,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=_(t,e,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function O(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=_(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:R}}function R(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},9742:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"980c":function(t,e,n){var r=n("39a9").Buffer,i=n("399f"),o=n("3337").ec,a=n("2aee"),s=n("cd91");function u(t,e,n,o,s){var u=a(n);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return c(t,e,u)}if("dsa"===u.type){if("dsa"!==o)throw new Error("wrong public key type");return l(t,e,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");e=r.concat([s,e]);var f=u.modulus.byteLength(),d=[1],h=0;while(e.length+d.length+2<f)d.push(255),h++;d.push(0);var p=-1;while(++p<e.length)d.push(e[p]);d=r.from(d);var m=i.mont(u.modulus);t=new i(t).toRed(m),t=t.redPow(new i(u.publicExponent)),t=r.from(t.fromRed().toArray());var g=h<8?1:0;f=Math.min(t.length,d.length),t.length!==d.length&&(g=1),p=-1;while(++p<f)g|=t[p]^d[p];return 0===g}function c(t,e,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),a=n.data.subjectPrivateKey.data;return i.verify(e,t,a)}function l(t,e,n){var r=n.data.p,o=n.data.q,s=n.data.g,u=n.data.pub_key,c=a.signature.decode(t,"der"),l=c.s,d=c.r;f(l,o),f(d,o);var h=i.mont(r),p=l.invm(o),m=s.toRed(h).redPow(new i(e).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(r).mod(o);return 0===m.cmp(d)}function f(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=u},9876:function(t,e,n){var r=n("03d6"),i=n("9742");t.exports=Object.keys||function(t){return r(t,i)}},"98e6":function(t,e,n){"use strict";var r=n("3fb5"),i=n("f576"),o=n("b5ca"),a=n("69f2"),s=n("6430");function u(t){s.call(this,"digest"),this._hash=t}r(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},9917:function(t,e,n){"use strict";var r=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],i=function(t){return-1!==r.indexOf(t)},o=function(t,e,n){Object.keys(e).filter(i).forEach((function(r){var i=e[r];"function"===typeof i&&("onInit"===r?i(t,n):n.on(r.substring(2),(function(t){return i(t,n)})))}))},a=function(t,e){var n,r=t.$props.modelEvents?t.$props.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;t.$watch("value",(function(t,r){e&&"string"===typeof t&&t!==n&&t!==r&&(e.setContent(t),n=t)})),e.on(i||"change keyup undo redo",(function(){n=e.getContent(),t.$emit("input",n)}))},s=function(t,e,n){var r=e.$props.value?e.$props.value:"",i=e.$props.initialValue?e.$props.initialValue:"";n.setContent(r||i),e.$listeners.input&&a(e,n),o(t,e.$listeners,n)},u=0,c=function(t){var e=Date.now(),n=Math.floor(1e9*Math.random());return u++,t+"_"+n+u+String(e)},l=function(t){return null!==t&&"textarea"===t.tagName.toLowerCase()},f=function(t){return"undefined"===typeof t||""===t?[]:Array.isArray(t)?t:t.split(" ")},d=function(t,e){return f(t).concat(f(e))},h=function(t,e,n,r){var i=e.createElement("script");i.type="application/javascript",i.id=t,i.addEventListener("load",r),i.src=n,e.head&&e.head.appendChild(i)},p=function(){return{listeners:[],scriptId:c("tiny-script"),scriptLoaded:!1}},m=function(t,e,n,r){t.scriptLoaded?r():(t.listeners.push(r),e.getElementById(t.scriptId)||h(t.scriptId,e,n,(function(){t.listeners.forEach((function(t){return t()})),t.scriptLoaded=!0})))},g=n("1f38"),v={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},b=function(){return b=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},b.apply(this,arguments)},y=p(),w=function(t,e,n){return t(n||"div",{attrs:{id:e}})},_=function(t,e){return t("textarea",{attrs:{id:e},style:{visibility:"hidden"}})},x=function(t){return function(){var e=b({},t.$props.init,{readonly:t.$props.disabled,selector:"#"+t.elementId,plugins:d(t.$props.init&&t.$props.init.plugins,t.$props.plugins),toolbar:t.$props.toolbar||t.$props.init&&t.$props.init.toolbar,inline:t.inlineEditor,setup:function(e){t.editor=e,e.on("init",(function(n){return s(n,t,e)})),t.$props.init&&"function"===typeof t.$props.init.setup&&t.$props.init.setup(e)}});l(t.element)&&(t.element.style.visibility=""),Object(g["a"])().init(e)}},C={props:v,created:function(){this.elementId=this.$props.id||c("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(g["a"])())x(this)();else if(this.element&&this.element.ownerDocument){var t=this.element.ownerDocument,e=this.$props.cloudChannel?this.$props.cloudChannel:"5",n=this.$props.apiKey?this.$props.apiKey:"no-api-key";m(y,t,"https://cdn.tiny.cloud/1/"+n+"/tinymce/"+e+"/tinymce.min.js",x(this))}},beforeDestroy:function(){null!==Object(g["a"])()&&Object(g["a"])().remove(this.editor)},render:function(t){return this.inlineEditor?w(t,this.elementId,this.$props.tagName):_(t,this.elementId)}};e["a"]=C},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),u=n("50c4"),c=n("8418"),l=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=h>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),b=f("concat"),y=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},w=!v||!b;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=s(this),f=l(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],y(o)){if(i=u(o.length),d+i>m)throw TypeError(g);for(n=0;n<i;n++,d++)n in o&&c(f,d,o[n])}else{if(d>=m)throw TypeError(g);c(f,d++,o)}return f.length=d,f}})},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c0c":function(t,e,n){var r=n("1609");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c0e":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"9d11":function(t,e,n){var r=n("fc5e"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"9d28":function(t,e,n){"use strict";t.exports=i;var r=n("f1c8");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},"9d7e":function(t,e,n){"use strict";e.__esModule=!0;var r="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};e.default=function(t){function e(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),t.replace(o,(function(e,r,o,a){var s=void 0;return"{"===t[a-1]&&"}"===t[a+e.length]?o:(s=(0,i.hasOwn)(n,o)?n[o]:null,null===s||void 0===s?"":s)}))}return e};var i=n("8122"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9d8a":function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var a=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);a.prototype.name=n.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"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 s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function u(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function c(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}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,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",u(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=c(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),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=i},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"9f9d":function(t,e,n){(function(e){var n;if(e.browser)n="utf-8";else if(e.version){var r=parseInt(e.version.split(".")[0].slice(1),10);n=r>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this,n("4362"))},"9fbb":function(t,e,n){var r=n("4d88");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},a099:function(t,e,n){e.pbkdf2=n("206d"),e.pbkdf2Sync=n("e07b")},a11b:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var r=4*n,i=r-e.sigBytes%r;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,u=function(){};function c(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"===typeof i)return i.apply(null,e.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),u=e[r];r<o;u=e[++r])a+=" "+u;return a}return i}function l(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function f(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!l(e)||"string"!==typeof t||t))}function d(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t),i++,i===o&&n(r)}t.forEach((function(t){e(t,a)}))}function h(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}o([])}function p(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}function m(t,e,n,r){if(e.first){var i=p(t);return h(i,n,r)}var o=e.firstFields||[];!0===o&&(o=Object.keys(t));var a=Object.keys(t),s=a.length,u=0,c=[],l=function(t){c.push.apply(c,t),u++,u===s&&r(c)};a.forEach((function(e){var r=t[e];-1!==o.indexOf(e)?h(r,n,l):d(r,n,l)}))}function g(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function v(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=i()({},t[n],r):t[n]=r}return t}function b(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!f(e,o||t.type)||r.push(c(i.messages.required,t.fullField))}var y=b;function w(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(c(i.messages.whitespace,t.fullField))}var _=w,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(t){return C.number(t)&&parseInt(t,10)===t},float:function(t){return C.number(t)&&!C.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!C.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(x.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(x.url)},hex:function(t){return"string"===typeof t&&!!t.match(x.hex)}};function S(t,e,n,r,i){if(t.required&&void 0===e)y(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?C[s](e)||r.push(c(i.messages.types[s],t.fullField,t.type)):s&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(c(i.messages.types[s],t.fullField,t.type))}}var k=S;function M(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,f=null,d="number"===typeof e,h="string"===typeof e,p=Array.isArray(e);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=e.length),h&&(l=e.replace(u,"_").length),o?l!==t.len&&r.push(c(i.messages[f].len,t.fullField,t.len)):a&&!s&&l<t.min?r.push(c(i.messages[f].min,t.fullField,t.min)):s&&!a&&l>t.max?r.push(c(i.messages[f].max,t.fullField,t.max)):a&&s&&(l<t.min||l>t.max)&&r.push(c(i.messages[f].range,t.fullField,t.min,t.max))}var E=M,O="enum";function T(t,e,n,r,i){t[O]=Array.isArray(t[O])?t[O]:[],-1===t[O].indexOf(e)&&r.push(c(i.messages[O],t.fullField,t[O].join(", ")))}var A=T;function D(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(c(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(c(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var N=D,R={required:y,whitespace:_,type:k,range:E,enum:A,pattern:N};function P(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"string")&&!t.required)return n();R.required(t,e,r,o,i,"string"),f(e,"string")||(R.type(t,e,r,o,i),R.range(t,e,r,o,i),R.pattern(t,e,r,o,i),!0===t.whitespace&&R.whitespace(t,e,r,o,i))}n(o)}var I=P;function B(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),void 0!==e&&R.type(t,e,r,o,i)}n(o)}var L=B;function z(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),void 0!==e&&(R.type(t,e,r,o,i),R.range(t,e,r,o,i))}n(o)}var j=z;function F(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),void 0!==e&&R.type(t,e,r,o,i)}n(o)}var $=F;function H(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),f(e)||R.type(t,e,r,o,i)}n(o)}var V=H;function U(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),void 0!==e&&(R.type(t,e,r,o,i),R.range(t,e,r,o,i))}n(o)}var q=U;function W(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),void 0!==e&&(R.type(t,e,r,o,i),R.range(t,e,r,o,i))}n(o)}var K=W;function G(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"array")&&!t.required)return n();R.required(t,e,r,o,i,"array"),f(e,"array")||(R.type(t,e,r,o,i),R.range(t,e,r,o,i))}n(o)}var Y=G;function X(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),void 0!==e&&R.type(t,e,r,o,i)}n(o)}var Z=X,J="enum";function Q(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();R.required(t,e,r,o,i),e&&R[J](t,e,r,o,i)}n(o)}var tt=Q;function et(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"string")&&!t.required)return n();R.required(t,e,r,o,i),f(e,"string")||R.pattern(t,e,r,o,i)}n(o)}var nt=et;function rt(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();if(R.required(t,e,r,o,i),!f(e)){var s=void 0;s="number"===typeof e?new Date(e):e,R.type(t,s,r,o,i),s&&R.range(t,s.getTime(),r,o,i)}}n(o)}var it=rt;function ot(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);R.required(t,e,r,o,i,s),n(o)}var at=ot;function st(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(f(e,o)&&!t.required)return n();R.required(t,e,r,a,i,o),f(e,o)||R.type(t,e,r,a,i)}n(a)}var ut=st,ct={string:I,method:L,number:j,boolean:$,regexp:V,integer:q,float:K,array:Y,object:Z,enum:tt,pattern:nt,date:it,url:ut,hex:ut,email:ut,required:at};function lt(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ft=lt();function dt(t){this.rules=null,this._messages=ft,this.define(t)}dt.prototype={messages:function(t){return t&&(this._messages=v(lt(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,l=r;if("function"===typeof s&&(l=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===ft&&(f=lt()),v(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){d=e.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var y={};m(p,s,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&u("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(g(n)),s.first&&l.length)return y[n.field]=1,e(l);if(r){if(n.required&&!t.value)return l=n.message?[].concat(n.message).map(g(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],e(l);var f={};if(n.defaultField)for(var d in t.value)t.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,t.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var m=new dt(f);m.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),m.validate(t.value,t.rule.options||s,(function(t){e(t&&t.length?l.concat(t):t)}))}else e(l)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var f=n.validator(n,t.value,l,t.source,s);f&&f.then&&f.then((function(){return l()}),(function(t){return l(t)}))}),(function(t){w(t)}))}else l&&l();function w(t){var e=void 0,n=void 0,r=[],i={};function o(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e<t.length;e++)o(t[e]);if(r.length)for(e=0;e<r.length;e++)n=r[e].field,i[n]=i[n]||[],i[n].push(r[e]);else r=null,i=null;l(r,i)}},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!ct.hasOwnProperty(t.type))throw new Error(c("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?ct.required:ct[this.getType(t)]||!1}},dt.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");ct[t]=e},dt.messages=ft;e["default"]=dt},a255:function(t,e,n){var r=n("3fb5"),i=n("b672"),o=n("8707").Buffer,a=[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],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function f(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 h(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}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=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]+h(e[v-15])+e[v-16]|0;for(var b=0;b<64;++b){var y=g+d(s)+c(s,u,m)+a[b]+e[b]|0,w=f(n)+l(n,r,i)|0;g=m,m=u,u=s,s=o+y|0,o=i,i=r,r=n,n=y+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},u.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=u},a3de:function(t,e,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},a40e:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=n.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],r=0;r<56;r++){var i=a[r]-1;n[r]=e[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var l=o[c]=[],f=u[c];for(r=0;r<24;r++)l[r/6|0]|=n[(s[r]-1+f)%28]<<31-r%6,l[4+(r/6|0)]|=n[28+(s[r+24]-1+f)%28]<<31-r%6;l[0]=l[0]<<1|l[0]>>>31;for(r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=o[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function h(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(r.create(n)),this._des2=f.createEncryptor(r.create(i)),this._des3=f.createEncryptor(r.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),t.TripleDES}))},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),u=n("4930"),c=n("fdbf"),l=n("d039"),f=n("5135"),d=n("e8b5"),h=n("861d"),p=n("825a"),m=n("7b0b"),g=n("fc6a"),v=n("c04e"),b=n("5c6c"),y=n("7c73"),w=n("df75"),_=n("241c"),x=n("057f"),C=n("7418"),S=n("06cf"),k=n("9bf2"),M=n("d1e7"),E=n("9112"),O=n("6eeb"),T=n("5692"),A=n("f772"),D=n("d012"),N=n("90e3"),R=n("b622"),P=n("e538"),I=n("746f"),B=n("d44e"),L=n("69f3"),z=n("b727").forEach,j=A("hidden"),F="Symbol",$="prototype",H=R("toPrimitive"),V=L.set,U=L.getterFor(F),q=Object[$],W=i.Symbol,K=o("JSON","stringify"),G=S.f,Y=k.f,X=x.f,Z=M.f,J=T("symbols"),Q=T("op-symbols"),tt=T("string-to-symbol-registry"),et=T("symbol-to-string-registry"),nt=T("wks"),rt=i.QObject,it=!rt||!rt[$]||!rt[$].findChild,ot=s&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=G(q,e);r&&delete q[e],Y(t,e,n),r&&t!==q&&Y(q,e,r)}:Y,at=function(t,e){var n=J[t]=y(W[$]);return V(n,{type:F,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},ut=function(t,e,n){t===q&&ut(Q,e,n),p(t);var r=v(e,!0);return p(n),f(J,r)?(n.enumerable?(f(t,j)&&t[j][r]&&(t[j][r]=!1),n=y(n,{enumerable:b(0,!1)})):(f(t,j)||Y(t,j,b(1,{})),t[j][r]=!0),ot(t,r,n)):Y(t,r,n)},ct=function(t,e){p(t);var n=g(e),r=w(n).concat(pt(n));return z(r,(function(e){s&&!ft.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?y(t):ct(y(t),e)},ft=function(t){var e=v(t,!0),n=Z.call(this,e);return!(this===q&&f(J,e)&&!f(Q,e))&&(!(n||!f(this,e)||!f(J,e)||f(this,j)&&this[j][e])||n)},dt=function(t,e){var n=g(t),r=v(e,!0);if(n!==q||!f(J,r)||f(Q,r)){var i=G(n,r);return!i||!f(J,r)||f(n,j)&&n[j][r]||(i.enumerable=!0),i}},ht=function(t){var e=X(g(t)),n=[];return z(e,(function(t){f(J,t)||f(D,t)||n.push(t)})),n},pt=function(t){var e=t===q,n=X(e?Q:g(t)),r=[];return z(n,(function(t){!f(J,t)||e&&!f(q,t)||r.push(J[t])})),r};if(u||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=N(t),n=function(t){this===q&&n.call(Q,t),f(this,j)&&f(this[j],e)&&(this[j][e]=!1),ot(this,e,b(1,t))};return s&&it&&ot(q,e,{configurable:!0,set:n}),at(e,t)},O(W[$],"toString",(function(){return U(this).tag})),O(W,"withoutSetter",(function(t){return at(N(t),t)})),M.f=ft,k.f=ut,S.f=dt,_.f=x.f=ht,C.f=pt,P.f=function(t){return at(R(t),t)},s&&(Y(W[$],"description",{configurable:!0,get:function(){return U(this).description}}),a||O(q,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),z(w(nt),(function(t){I(t)})),r({target:F,stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(tt,e))return tt[e];var n=W(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:dt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:l((function(){C.f(1)}))},{getOwnPropertySymbols:function(t){return C.f(m(t))}}),K){var mt=!u||l((function(){var t=W();return"[null]"!=K([t])||"{}"!=K({a:t})||"{}"!=K(Object(t))}));r({target:"JSON",stat:!0,forced:mt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(h(e)||void 0!==t)&&!st(t))return d(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,K.apply(null,i)}})}W[$][H]||E(W[$],H,W[$].valueOf),B(W,F),D[j]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a742:function(t,e,n){"use strict";function r(t){return"[object String]"===Object.prototype.toString.call(t)}function i(t){return"[object Object]"===Object.prototype.toString.call(t)}function o(t){return t&&t.nodeType===Node.ELEMENT_NODE}e.__esModule=!0,e.isString=r,e.isObject=i,e.isHtmlElement=o;e.isFunction=function(t){var e={};return t&&"[object Function]"===e.toString.call(t)},e.isUndefined=function(t){return void 0===t},e.isDefined=function(t){return void 0!==t&&null!==t}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),u=n("4840"),c=n("cdf9"),l=n("6eeb"),f=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype["finally"]||l(o.prototype,"finally",s("Promise").prototype["finally"])},a817:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a8ce:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.enc;i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return r.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var a=o(e[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>1]|=o(t.charCodeAt(i)<<16-i%2*16);return r.create(n,2*e)}}}(),t.enc.Utf16}))},a925:function(t,e,n){"use strict";
- /*!
- * vue-i18n v8.22.3
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function i(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function o(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var a=Array.isArray;function s(t){return null!==t&&"object"===typeof t}function u(t){return"boolean"===typeof t}function c(t){return"string"===typeof t}var l=Object.prototype.toString,f="[object Object]";function d(t){return l.call(t)===f}function h(t){return null===t||void 0===t}function p(t){return"function"===typeof t}function m(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,r=null;return 1===t.length?s(t[0])||a(t[0])?r=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(s(t[1])||a(t[1]))&&(r=t[1])),{locale:n,params:r}}function g(t){return JSON.parse(JSON.stringify(t))}function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function b(t,e){return!!~t.indexOf(e)}var y=Object.prototype.hasOwnProperty;function w(t,e){return y.call(t,e)}function _(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var i=e[r];if(void 0!==i&&null!==i){var o=void 0;for(o in i)w(i,o)&&(s(i[o])?n[o]=_(n[o],i[o]):n[o]=i[o])}}return n}function x(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=a(t),o=a(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return x(t,e[n])}));if(i||o)return!1;var u=Object.keys(t),c=Object.keys(e);return u.length===c.length&&u.every((function(n){return x(t[n],e[n])}))}catch(l){return!1}}function C(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function S(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=C(t[e]))})),t}function k(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}var M={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n)if(t.i18n instanceof St){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){e=_(e,JSON.parse(t))})),Object.keys(e).forEach((function(n){t.i18n.mergeLocaleMessage(n,e[n])}))}catch(a){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(d(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof St?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){r=_(r,JSON.parse(t))})),t.i18n.messages=r}catch(a){0}var i=t.i18n,o=i.sharedMessages;o&&d(o)&&(t.i18n.messages=_(t.i18n.messages,o)),this._i18n=new St(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof St?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof St&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?(t.i18n instanceof St||d(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof St||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof St)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}},E={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,r=e.parent,i=e.props,o=e.slots,a=r.$i18n;if(a){var s=i.path,u=i.locale,c=i.places,l=o(),f=a.i(s,u,O(l)||c?T(l.default,c):l),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?t(d,n,f):f}}};function O(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function T(t,e){var n=e?A(e):{};if(!t)return n;t=t.filter((function(t){return t.tag||""!==t.text.trim()}));var r=t.every(R);return t.reduce(r?D:N,n)}function A(t){return Array.isArray(t)?t.reduce(N,{}):Object.assign({},t)}function D(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function N(t,e,n){return t[n]=e,t}function R(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var P,I={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,i=e.parent,o=e.data,a=i.$i18n;if(!a)return null;var u=null,l=null;c(n.format)?u=n.format:s(n.format)&&(n.format.key&&(u=n.format.key),l=Object.keys(n.format).reduce((function(t,e){var i;return b(r,e)?Object.assign({},t,(i={},i[e]=n.format[e],i)):t}),null));var f=n.locale||a.locale,d=a._ntp(n.value,f,u,l),h=d.map((function(t,e){var n,r=o.scopedSlots&&o.scopedSlots[t.type];return r?r((n={},n[t.type]=t.value,n.index=e,n.parts=d,n)):t.value})),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?t(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},h):h}};function B(t,e,n){j(t,n)&&$(t,e,n)}function L(t,e,n,r){if(j(t,n)){var i=n.context.$i18n;F(t,n)&&x(e.value,e.oldValue)&&x(t._localeMessage,i.getLocaleMessage(i.locale))||$(t,e,n)}}function z(t,e,n,r){var o=n.context;if(o){var a=n.context.$i18n||{};e.modifiers.preserve||a.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else i("Vue instance does not exists in VNode context")}function j(t,e){var n=e.context;return n?!!n.$i18n||(i("VueI18n instance does not exists in Vue instance"),!1):(i("Vue instance does not exists in VNode context"),!1)}function F(t,e){var n=e.context;return t._locale===n.$i18n.locale}function $(t,e,n){var r,o,a=e.value,s=H(a),u=s.path,c=s.locale,l=s.args,f=s.choice;if(u||c||l)if(u){var d=n.context;t._vt=t.textContent=null!=f?(r=d.$i18n).tc.apply(r,[u,f].concat(V(c,l))):(o=d.$i18n).t.apply(o,[u].concat(V(c,l))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else i("`path` is required in v-t directive");else i("value type not supported")}function H(t){var e,n,r,i;return c(t)?e=t:d(t)&&(e=t.path,n=t.locale,r=t.args,i=t.choice),{path:e,locale:n,args:r,choice:i}}function V(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||d(e))&&n.push(e),n}function U(t){U.installed=!0,P=t;P.version&&Number(P.version.split(".")[0]);k(P),P.mixin(M),P.directive("t",{bind:B,update:L,unbind:z}),P.component(E.name,E),P.component(I.name,I);var e=P.config.optionMergeStrategies;e.i18n=function(t,e){return void 0===e?t:e}}var q=function(){this._caches=Object.create(null)};q.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=G(t),this._caches[t]=n),Y(n,e)};var W=/^(?:\d)+/,K=/^(?:\w)+/;function G(t){var e=[],n=0,r="";while(n<t.length){var i=t[n++];if("{"===i){r&&e.push({type:"text",value:r}),r="";var o="";i=t[n++];while(void 0!==i&&"}"!==i)o+=i,i=t[n++];var a="}"===i,s=W.test(o)?"list":a&&K.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===i?"{"!==t[n]&&(r+=i):r+=i}return r&&e.push({type:"text",value:r}),e}function Y(t,e){var n=[],r=0,i=Array.isArray(e)?"list":s(e)?"named":"unknown";if("unknown"===i)return n;while(r<t.length){var o=t[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(e[o.value]);break;case"unknown":0;break}r++}return n}var X=0,Z=1,J=2,Q=3,tt=0,et=1,nt=2,rt=3,it=4,ot=5,at=6,st=7,ut=8,ct=[];ct[tt]={ws:[tt],ident:[rt,X],"[":[it],eof:[st]},ct[et]={ws:[et],".":[nt],"[":[it],eof:[st]},ct[nt]={ws:[nt],ident:[rt,X],0:[rt,X],number:[rt,X]},ct[rt]={ident:[rt,X],0:[rt,X],number:[rt,X],ws:[et,Z],".":[nt,Z],"[":[it,Z],eof:[st,Z]},ct[it]={"'":[ot,X],'"':[at,X],"[":[it,J],"]":[et,Q],eof:ut,else:[it,X]},ct[ot]={"'":[it,X],eof:ut,else:[ot,X]},ct[at]={'"':[it,X],eof:ut,else:[at,X]};var lt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ft(t){return lt.test(t)}function dt(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function ht(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function pt(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(ft(e)?dt(e):"*"+e)}function mt(t){var e,n,r,i,o,a,s,u=[],c=-1,l=tt,f=0,d=[];function h(){var e=t[c+1];if(l===ot&&"'"===e||l===at&&'"'===e)return c++,r="\\"+e,d[X](),!0}d[Z]=function(){void 0!==n&&(u.push(n),n=void 0)},d[X]=function(){void 0===n?n=r:n+=r},d[J]=function(){d[X](),f++},d[Q]=function(){if(f>0)f--,l=it,d[X]();else{if(f=0,void 0===n)return!1;if(n=pt(n),!1===n)return!1;d[Z]()}};while(null!==l)if(c++,e=t[c],"\\"!==e||!h()){if(i=ht(e),s=ct[l],o=s[i]||s["else"]||ut,o===ut)return;if(l=o[0],a=d[o[1]],a&&(r=o[2],r=void 0===r?e:r,!1===a()))return;if(l===st)return u}}var gt=function(){this._cache=Object.create(null)};gt.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=mt(t),e&&(this._cache[t]=e)),e||[]},gt.prototype.getPathValue=function(t,e){if(!s(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var r=n.length,i=t,o=0;while(o<r){var a=i[n[o]];if(void 0===a)return null;i=a,o++}return i};var vt,bt=/<\/?[\w\s="/.':;#-\/]+>/,yt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,wt=/^@(?:\.([a-z]+))?:/,_t=/[()]/g,xt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},Ct=new q,St=function(t){var e=this;void 0===t&&(t={}),!P&&"undefined"!==typeof window&&window.Vue&&U(window.Vue);var n=t.locale||"en-US",r=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),i=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||Ct,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new gt,this._dataListeners=[],this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(t,n){var r=Object.getPrototypeOf(e);if(r&&r.getChoiceIndex){var i=r.getChoiceIndex;return i.call(e,t,n)}var o=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):o(t,n)},this._exist=function(t,n){return!(!t||!n)&&(!h(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},kt={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};St.prototype._checkLocaleMessage=function(t,e,n){var r=[],s=function(t,e,n,r){if(d(n))Object.keys(n).forEach((function(i){var o=n[i];d(o)?(r.push(i),r.push("."),s(t,e,o,r),r.pop(),r.pop()):(r.push(i),s(t,e,o,r),r.pop())}));else if(a(n))n.forEach((function(n,i){d(n)?(r.push("["+i+"]"),r.push("."),s(t,e,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(t,e,n,r),r.pop())}));else if(c(n)){var u=bt.test(n);if(u){var l="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?i(l):"error"===t&&o(l)}}};s(e,t,n,r)},St.prototype._initVM=function(t){var e=P.config.silent;P.config.silent=!0,this._vm=new P({data:t}),P.config.silent=e},St.prototype.destroyVM=function(){this._vm.$destroy()},St.prototype.subscribeDataChanging=function(t){this._dataListeners.push(t)},St.prototype.unsubscribeDataChanging=function(t){v(this._dataListeners,t)},St.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){var e=t._dataListeners.length;while(e--)P.nextTick((function(){t._dataListeners[e]&&t._dataListeners[e].$forceUpdate()}))}),{deep:!0})},St.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){t.$set(t,"locale",e),t.$forceUpdate()}),{immediate:!0})},St.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},kt.vm.get=function(){return this._vm},kt.messages.get=function(){return g(this._getMessages())},kt.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},kt.numberFormats.get=function(){return g(this._getNumberFormats())},kt.availableLocales.get=function(){return Object.keys(this.messages).sort()},kt.locale.get=function(){return this._vm.locale},kt.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},kt.fallbackLocale.get=function(){return this._vm.fallbackLocale},kt.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},kt.formatFallbackMessages.get=function(){return this._formatFallbackMessages},kt.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},kt.missing.get=function(){return this._missing},kt.missing.set=function(t){this._missing=t},kt.formatter.get=function(){return this._formatter},kt.formatter.set=function(t){this._formatter=t},kt.silentTranslationWarn.get=function(){return this._silentTranslationWarn},kt.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},kt.silentFallbackWarn.get=function(){return this._silentFallbackWarn},kt.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},kt.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},kt.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},kt.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},kt.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var r=this._getMessages();Object.keys(r).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])}))}},kt.postTranslation.get=function(){return this._postTranslation},kt.postTranslation.set=function(t){this._postTranslation=t},St.prototype._getMessages=function(){return this._vm.messages},St.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},St.prototype._getNumberFormats=function(){return this._vm.numberFormats},St.prototype._warnDefault=function(t,e,n,r,i,o){if(!h(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,r,i]);if(c(a))return a}else 0;if(this._formatFallbackMessages){var s=m.apply(void 0,i);return this._render(e,o,s.params,e)}return e},St.prototype._isFallbackRoot=function(t){return!t&&!h(this._root)&&this._fallbackRoot},St.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},St.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},St.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},St.prototype._interpolate=function(t,e,n,r,i,o,s){if(!e)return null;var u,l=this._path.getPathValue(e,n);if(a(l)||d(l))return l;if(h(l)){if(!d(e))return null;if(u=e[n],!c(u)&&!p(u))return null}else{if(!c(l)&&!p(l))return null;u=l}return c(u)&&(u.indexOf("@:")>=0||u.indexOf("@.")>=0)&&(u=this._link(t,e,u,r,"raw",o,s)),this._render(u,i,o,n)},St.prototype._link=function(t,e,n,r,i,o,s){var u=n,c=u.match(yt);for(var l in c)if(c.hasOwnProperty(l)){var f=c[l],d=f.match(wt),h=d[0],p=d[1],m=f.replace(h,"").replace(_t,"");if(b(s,m))return u;s.push(m);var g=this._interpolate(t,e,m,r,"raw"===i?"string":i,"raw"===i?void 0:o,s);if(this._isFallbackRoot(g)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;g=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,r,i,o)}g=this._warnDefault(t,m,g,r,a(o)?o:[o],i),this._modifiers.hasOwnProperty(p)?g=this._modifiers[p](g):xt.hasOwnProperty(p)&&(g=xt[p](g)),s.pop(),u=g?u.replace(f,g):u}return u},St.prototype._createMessageContext=function(t){var e=a(t)?t:[],n=s(t)?t:{},r=function(t){return e[t]},i=function(t){return n[t]};return{list:r,named:i}},St.prototype._render=function(t,e,n,r){if(p(t))return t(this._createMessageContext(n));var i=this._formatter.interpolate(t,n,r);return i||(i=Ct.interpolate(t,n,r)),"string"!==e||c(i)?i:i.join("")},St.prototype._appendItemToChain=function(t,e,n){var r=!1;return b(t,e)||(r=!0,e&&(r="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(r=n[e]))),r},St.prototype._appendLocaleToChain=function(t,e,n){var r,i=e.split("-");do{var o=i.join("-");r=this._appendItemToChain(t,o,n),i.splice(-1,1)}while(i.length&&!0===r);return r},St.prototype._appendBlockToChain=function(t,e,n){for(var r=!0,i=0;i<e.length&&u(r);i++){var o=e[i];c(o)&&(r=this._appendLocaleToChain(t,o,n))}return r},St.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];var r,i=[t];while(a(i))i=this._appendBlockToChain(n,i,e);r=a(e)?e:s(e)?e["default"]?e["default"]:null:e,i=c(r)?[r]:r,i&&this._appendBlockToChain(n,i,null),this._localeChainCache[t]=n}return n},St.prototype._translate=function(t,e,n,r,i,o,a){for(var s,u=this._getLocaleChain(e,n),c=0;c<u.length;c++){var l=u[c];if(s=this._interpolate(l,t[l],r,i,o,a,[r]),!h(s))return s}return null},St.prototype._t=function(t,e,n,r){var i,o=[],a=arguments.length-4;while(a-- >0)o[a]=arguments[a+4];if(!t)return"";var s=m.apply(void 0,o);this._escapeParameterHtml&&(s.params=S(s.params));var u=s.locale||e,c=this._translate(n,u,this.fallbackLocale,t,r,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return c=this._warnDefault(u,t,c,r,o,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,t)),c},St.prototype.t=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},St.prototype._i=function(t,e,n,r,i){var o=this._translate(n,e,this.fallbackLocale,t,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,r,[i],"raw")},St.prototype.i=function(t,e,n){return t?(c(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},St.prototype._tc=function(t,e,n,r,i){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!t)return"";void 0===i&&(i=1);var u={count:i,n:i},c=m.apply(void 0,a);return c.params=Object.assign(u,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,r].concat(a)),i)},St.prototype.fetchChoice=function(t,e){if(!t||!c(t))return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},St.prototype.tc=function(t,e){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(r))},St.prototype._te=function(t,e,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=m.apply(void 0,r).locale||e;return this._exist(n[o],t)},St.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},St.prototype.getLocaleMessage=function(t){return g(this._vm.messages[t]||{})},St.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},St.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,_({},this._vm.messages[t]||{},e))},St.prototype.getDateTimeFormat=function(t){return g(this._vm.dateTimeFormats[t]||{})},St.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},St.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,_(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},St.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},St.prototype._localizeDateTime=function(t,e,n,r,i){for(var o=e,a=r[o],s=this._getLocaleChain(e,n),u=0;u<s.length;u++){var c=s[u];if(a=r[c],o=c,!h(a)&&!h(a[i]))break}if(h(a)||h(a[i]))return null;var l=a[i],f=o+"__"+i,d=this._dateTimeFormatters[f];return d||(d=this._dateTimeFormatters[f]=new Intl.DateTimeFormat(o,l)),d.format(t)},St.prototype._d=function(t,e,n){if(!n)return new Intl.DateTimeFormat(e).format(t);var r=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return r||""},St.prototype.d=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.locale,i=null;return 1===e.length?c(e[0])?i=e[0]:s(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(i=e[0].key)):2===e.length&&(c(e[0])&&(i=e[0]),c(e[1])&&(r=e[1])),this._d(t,r,i)},St.prototype.getNumberFormat=function(t){return g(this._vm.numberFormats[t]||{})},St.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},St.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,_(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},St.prototype._clearNumberFormat=function(t,e){for(var n in e){var r=t+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},St.prototype._getNumberFormatter=function(t,e,n,r,i,o){for(var a=e,s=r[a],u=this._getLocaleChain(e,n),c=0;c<u.length;c++){var l=u[c];if(s=r[l],a=l,!h(s)&&!h(s[i]))break}if(h(s)||h(s[i]))return null;var f,d=s[i];if(o)f=new Intl.NumberFormat(a,Object.assign({},d,o));else{var p=a+"__"+i;f=this._numberFormatters[p],f||(f=this._numberFormatters[p]=new Intl.NumberFormat(a,d))}return f},St.prototype._n=function(t,e,n,r){if(!St.availabilities.numberFormat)return"";if(!n){var i=r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e);return i.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},r))}return a||""},St.prototype.n=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===e.length?c(e[0])?o=e[0]:s(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(o=e[0].key),a=Object.keys(e[0]).reduce((function(t,n){var i;return b(r,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t}),null)):2===e.length&&(c(e[0])&&(o=e[0]),c(e[1])&&(i=e[1])),this._n(t,i,o,a)},St.prototype._ntp=function(t,e,n,r){if(!St.availabilities.numberFormat)return[];if(!n){var i=r?new Intl.NumberFormat(e,r):new Intl.NumberFormat(e);return i.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,r)}return a||[]},Object.defineProperties(St.prototype,kt),Object.defineProperty(St,"availabilities",{get:function(){if(!vt){var t="undefined"!==typeof Intl;vt={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return vt}}),St.install=U,St.version="8.22.3",e["a"]=St},a958:function(t,e,n){(function(e){var r=n("399f"),i=n("11dc");function o(t){var e=a(t),n=e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed();return{blinder:n,unblinder:e.invm(t.modulus)}}function a(t){var e,n=t.modulus.byteLength();do{e=new r(i(n))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function s(t,n){var i=o(n),a=n.modulus.byteLength(),s=new r(t).mul(i.blinder).umod(n.modulus),u=s.toRed(r.mont(n.prime1)),c=s.toRed(r.mont(n.prime2)),l=n.coefficient,f=n.prime1,d=n.prime2,h=u.redPow(n.exponent1).fromRed(),p=c.redPow(n.exponent2).fromRed(),m=h.isub(p).imul(l).umod(f).imul(d);return p.iadd(m).imul(i.unblinder).umod(n.modulus).toArrayLike(e,"be",a)}s.getr=a,t.exports=s}).call(this,n("b639").Buffer)},aa56:function(t,e,n){"use strict";var r=n("c3c0"),i=r.rotr32;function o(t,e,n,r){return 0===t?a(e,n,r):1===t||3===t?u(e,n,r):2===t?s(e,n,r):void 0}function a(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}function u(t,e,n){return t^e^n}function c(t){return i(t,2)^i(t,13)^i(t,22)}function l(t){return i(t,6)^i(t,11)^i(t,25)}function f(t){return i(t,7)^i(t,18)^t>>>3}function d(t){return i(t,17)^i(t,19)^t>>>10}e.ft_1=o,e.ch32=a,e.maj32=s,e.p32=u,e.s0_256=c,e.s1_256=l,e.g0_256=f,e.g1_256=d},aaef:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){
- /** @preserve
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
- * derived from CryptoJS.mode.CTR
- * Jan Hruby jhruby.web@gmail.com
- */
- return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var i=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)t[e+u]^=s[u]}});return e.Decryptor=i,e}(),t.mode.CTRGladman}))},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ac4f:function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("d113").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function c(t){return t.setHeader&&"function"===typeof t.abort}function l(t,e,o,a){a=i(a);var u=!1;t.on("close",(function(){u=!0})),void 0===r&&(r=n("42a7")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);u=!0,a()}));var l=!1;return function(e){if(!u&&!l)return l=!0,c(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function f(t){t()}function d(t,e){return t.pipe(e)}function h(t){return t.length?"function"!==typeof t[t.length-1]?u:t.pop():u}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=h(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var o=e.map((function(t,n){var a=n<e.length-1,s=n>0;return l(t,a,s,(function(t){r||(r=t),t&&o.forEach(f),a||(o.forEach(f),i(r))}))}));return e.reduce(d)}t.exports=p},ad25:function(t,e,n){var r=n("2aee"),i=n("11dc"),o=n("98e6"),a=n("f460"),s=n("83d5"),u=n("0106"),c=n("5291"),l=n("a958"),f=n("8707").Buffer;function d(t,e){var n=t.modulus.byteLength(),r=e.length,c=o("sha1").update(f.alloc(0)).digest(),l=c.length,d=2*l;if(r>n-d-2)throw new Error("message too long");var h=f.alloc(n-r-d-2),p=n-l-1,m=i(l),g=s(f.concat([c,h,f.alloc(1,1),e],p),a(m,p)),v=s(m,a(g,l));return new u(f.concat([f.alloc(1),v,g],n))}function h(t,e,n){var r,i=e.length,o=t.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?f.alloc(o-i-3,255):p(o-i-3),new u(f.concat([f.from([0,n?1:2]),r,f.alloc(1),e],o))}function p(t){var e,n=f.allocUnsafe(t),r=0,o=i(2*t),a=0;while(r<t)a===o.length&&(o=i(2*t),a=0),e=o[a++],e&&(n[r++]=e);return n}t.exports=function(t,e,n){var i;i=t.padding?t.padding:n?1:4;var o,a=r(t);if(4===i)o=d(a,e);else if(1===i)o=h(a,e,n);else{if(3!==i)throw new Error("unknown padding");if(o=new u(e),o.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}return n?l(o,a):c(o,a)}},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(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,n){"use strict";(function(e,r){var i=n("966d");t.exports=x;var o,a=n("e3db");x.ReadableState=_;n("faa1").EventEmitter;var s=function(t,e){return t.listeners(e).length},u=n("429b"),c=n("8707").Buffer,l=e.Uint8Array||function(){};function f(t){return c.from(t)}function d(t){return c.isBuffer(t)||t instanceof l}var h=Object.create(n("3a7c"));h.inherits=n("3fb5");var p=n(3),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=n("5e1a"),b=n("4681");h.inherits(x,u);var y=["error","close","destroy","pause","resume"];function w(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function _(t,e){o=o||n("b19a"),t=t||{};var r=e instanceof o;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,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=n("7d72").StringDecoder),this.decoder=new g(t.encoding),this.encoding=t.encoding)}function x(t){if(o=o||n("b19a"),!(this instanceof x))return new x(t);this._readableState=new _(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function C(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,A(t,a)):(i||(o=k(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=f(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):S(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?S(t,a,e,!1):R(t,a)):S(t,a,e,!1))):r||(a.reading=!1));return M(a)}function S(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&D(t)),R(t,e)}function k(t,e){var n;return d(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function M(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),x.prototype.destroy=b.destroy,x.prototype._undestroy=b.undestroy,x.prototype._destroy=function(t,e){this.push(null),e(t)},x.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=c.from(t,e),e=""),n=!0),C(this,t,e,!1,n)},x.prototype.unshift=function(t){return C(this,t,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){return g||(g=n("7d72").StringDecoder),this._readableState.decoder=new g(t),this._readableState.encoding=t,this};var E=8388608;function O(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function T(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=O(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,D(t)}}function D(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(N,t):N(t))}function N(t){m("emit readable"),t.emit("readable"),j(t)}function R(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(P,t,e))}function P(t,e){var n=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark){if(m("maybeReadMore read 0"),t.read(0),n===e.length)break;n=e.length}e.readingMore=!1}function I(t){return function(){var e=t._readableState;m("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,j(t))}}function B(t){m("readable nexttick read 0"),t.read(0)}function L(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(z,t,e))}function z(t,e){e.reading||(m("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;m("flow",e.flowing);while(e.flowing&&null!==t.read());}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=$(t,e.buffer,e.decoder),n);var n}function $(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?H(t,e):V(t,e),r}function H(t,e){var n=e.head,r=1,i=n.data;t-=i.length;while(n=n.next){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),t-=a,0===t){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}function V(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;while(r=r.next){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),t-=a,0===t){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}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,i.nextTick(q,e,t))}function q(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function W(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}x.prototype.read=function(t){m("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):D(this),null;if(t=T(t,e),0===t&&e.ended)return 0===e.length&&U(this),null;var r,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,m("length less than watermark",i)),e.ended||e.reading?(i=!1,m("reading or ended",i)):i&&(m("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=T(n,e))),r=t>0?F(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&U(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(t,e){var n=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 a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,u=a?l:_;function c(t,e){m("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,h())}function l(){m("onend"),t.end()}o.endEmitted?i.nextTick(u):n.once("end",u),t.on("unpipe",c);var f=I(n);t.on("drain",f);var d=!1;function h(){m("cleanup"),t.removeListener("close",b),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",v),t.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",_),n.removeListener("data",g),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f()}var p=!1;function g(e){m("ondata"),p=!1;var r=t.write(e);!1!==r||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==W(o.pipes,t))&&!d&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(e){m("onerror",e),_(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",y),_()}function y(){m("onfinish"),t.removeListener("close",b),_()}function _(){m("unpipe"),n.unpipe(t)}return n.on("data",g),w(t,"error",v),t.once("close",b),t.once("finish",y),t.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),t},x.prototype.unpipe=function(t){var e=this._readableState,n={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,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=W(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},x.prototype.on=function(t,e){var n=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&D(this):i.nextTick(B,this))}return n},x.prototype.addListener=x.prototype.on,x.prototype.resume=function(){var t=this._readableState;return t.flowing||(m("resume"),t.flowing=!0,L(this,t)),this},x.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this},x.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(m("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(m("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<y.length;o++)t.on(y[o],this.emit.bind(this,y[o]));return this._read=function(e){m("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=F}).call(this,n("c8ba"),n("4362"))},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("5135"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,f=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,f)}))}},ae68:function(t,e){(function(){"use strict";var t=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),i=function(t){return t.fire("ResizeEditor")},o=function(t){return t.getParam("min_height",t.getElement().offsetHeight,"number")},a=function(t){return t.getParam("max_height",0,"number")},s=function(t){return t.getParam("autoresize_overflow_padding",1,"number")},u=function(t){return t.getParam("autoresize_bottom_margin",50,"number")},c=function(t){return t.getParam("autoresize_on_init",!0,"boolean")},l=function(t){return t.plugins.fullscreen&&t.plugins.fullscreen.isFullscreen()},f=function(t,e,n,i,o){r.setEditorTimeout(t,(function(){p(t,e),n--?f(t,e,n,i,o):o&&o()}),i)},d=function(t,e){var n=t.getBody();n&&(n.style.overflowY=e?"":"hidden",e||(n.scrollTop=0))},h=function(t,e,n,r){var i=parseInt(t.getStyle(e,n,r),10);return isNaN(i)?0:i},p=function(t,e){var r=t.dom,s=t.getDoc();if(s)if(l(t))d(t,!0);else{var c=s.documentElement,f=u(t),m=o(t),g=h(r,c,"margin-top",!0),v=h(r,c,"margin-bottom",!0),b=c.offsetHeight+g+v+f;b<0&&(b=0);var y=t.getContainer().offsetHeight,w=t.getContentAreaContainer().offsetHeight,_=y-w;b+_>o(t)&&(m=b+_);var x=a(t);if(x&&m>x?(m=x,d(t,!0)):d(t,!1),m!==e.get()){var C=m-e.get();if(r.setStyle(t.getContainer(),"height",m+"px"),e.set(m),i(t),n.browser.isSafari()&&n.mac){var S=t.getWin();S.scrollTo(S.pageXOffset,S.pageYOffset)}t.hasFocus()&&t.selection.scrollIntoView(t.selection.getNode()),n.webkit&&C<0&&p(t,e)}}},m=function(t,e){t.on("init",(function(){var e=s(t),n=t.dom;n.setStyles(t.getDoc().documentElement,{height:"auto"}),n.setStyles(t.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})})),t.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(function(){p(t,e)})),c(t)&&t.on("init",(function(){f(t,e,20,100,(function(){f(t,e,5,1e3)}))}))},g=function(t,e){t.addCommand("mceAutoResize",(function(){p(t,e)}))};function v(){e.add("autoresize",(function(e){if(e.settings.hasOwnProperty("resize")||(e.settings.resize=!1),!e.inline){var n=t(0);g(e,n),m(e,n)}}))}v()})()},ae84:function(t,e,n){var r=n("8707").Buffer,i=n("f576");function o(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");var a=n/8,s=r.alloc(a),u=r.alloc(o||0),c=r.alloc(0);while(a>0||o>0){var l=new i;l.update(c),l.update(t),e&&l.update(e),c=l.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,c.length),c.copy(s,d,0,f),a-=f}if(f<c.length&&o>0){var h=u.length-o,p=Math.min(o,c.length-f);c.copy(u,h,f,f+p),o-=p}}return c.fill(0),{key:s,iv:u}}t.exports=o},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),s=n("9112"),u=n("5135"),c=n("b622"),l=n("c430"),f=c("iterator"),d=!1,h=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):d=!0),void 0==r&&(r={}),l||u(r,f)||s(r,f,h),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},b19a:function(t,e,n){"use strict";var r=n("966d"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=Object.create(n("3a7c"));o.inherits=n("3fb5");var a=n("ad71"),s=n("dc14");o.inherits(f,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(t){if(!(this instanceof f))return new f(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),f.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},b2d6:function(t,e,n){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:""},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}}},b367:function(t,e,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b4e8:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),a=n("83b9"),s=n("c345"),u=n("3934"),c=n("2d83");t.exports=function(t){return new Promise((function(e,l){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var g=a(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),o(g,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};i(e,l,o),h=null}},h.onabort=function(){h&&(l(c("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(c("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(c(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=n("7aac"),b=(t.withCredentials||u(g))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),l(t),h=null)})),void 0===f&&(f=null),h.send(f)}))}},b525:function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=n("da3e"),a=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,c=r.shr64_lo,l=r.sum64,f=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,v=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,n,r,i,o){var a=e&r^~e&o;return a<0&&(a+=4294967296),a}function x(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function C(t,e,n,r,i,o){var a=e&r^e&o^r&o;return a<0&&(a+=4294967296),a}function S(t,e){var n=a(t,e,28),r=a(e,t,2),i=a(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function k(t,e){var n=s(t,e,28),r=s(e,t,2),i=s(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function M(t,e){var n=a(t,e,14),r=a(t,e,18),i=a(e,t,9),o=n^r^i;return o<0&&(o+=4294967296),o}function E(t,e){var n=s(t,e,14),r=s(t,e,18),i=s(e,t,9),o=n^r^i;return o<0&&(o+=4294967296),o}function O(t,e){var n=a(t,e,1),r=a(t,e,8),i=u(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function T(t,e){var n=s(t,e,1),r=s(t,e,8),i=c(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function A(t,e){var n=a(t,e,19),r=a(e,t,29),i=u(t,e,6),o=n^r^i;return o<0&&(o+=4294967296),o}function D(t,e){var n=s(t,e,19),r=s(e,t,29),i=c(t,e,6),o=n^r^i;return o<0&&(o+=4294967296),o}r.inherits(y,v),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=A(n[r-4],n[r-3]),o=D(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],u=O(n[r-30],n[r-29]),c=T(n[r-30],n[r-29]),l=n[r-32],f=n[r-31];n[r]=h(i,o,a,s,u,c,l,f),n[r+1]=p(i,o,a,s,u,c,l,f)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],b=this.h[9],y=this.h[10],O=this.h[11],T=this.h[12],A=this.h[13],D=this.h[14],N=this.h[15];o(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var P=D,I=N,B=M(v,b),L=E(v,b),z=w(v,b,y,O,T,A),j=_(v,b,y,O,T,A),F=this.k[R],$=this.k[R+1],H=n[R],V=n[R+1],U=m(P,I,B,L,z,j,F,$,H,V),q=g(P,I,B,L,z,j,F,$,H,V);P=S(r,i),I=k(r,i),B=x(r,i,a,s,u,c),L=C(r,i,a,s,u,c);var W=f(P,I,B,L),K=d(P,I,B,L);D=T,N=A,T=y,A=O,y=v,O=b,v=f(h,p,U,q),b=d(p,p,U,q),h=u,p=c,u=a,c=s,a=r,s=i,r=f(U,q,W,K),i=d(U,q,W,K)}l(this.h,0,r,i),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,h,p),l(this.h,8,v,b),l(this.h,10,y,O),l(this.h,12,T,A),l(this.h,14,D,N)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},b575:function(t,e,n){var r,i,o,a,s,u,c,l,f=n("da84"),d=n("06cf").f,h=n("2cf4").set,p=n("1cdc"),m=n("a4b4"),g=n("605d"),v=f.MutationObserver||f.WebKitMutationObserver,b=f.document,y=f.process,w=f.Promise,_=d(f,"queueMicrotask"),x=_&&_.value;x||(r=function(){var t,e;g&&(t=y.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},p||g||m||!v||!b?w&&w.resolve?(c=w.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=g?function(){y.nextTick(r)}:function(){h.call(f,r)}:(s=!0,u=b.createTextNode(""),new v(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b5ca:function(t,e,n){"use strict";var r=n("b639").Buffer,i=n("3fb5"),o=n("93e6"),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[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],l=[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],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,n,r,i,o,a,s){return p(t+(e^n^r)+o+a|0,s)+i|0}function g(t,e,n,r,i,o,a,s){return p(t+(e&n|~e&r)+o+a|0,s)+i|0}function v(t,e,n,r,i,o,a,s){return p(t+((e|~n)^r)+o+a|0,s)+i|0}function b(t,e,n,r,i,o,a,s){return p(t+(e&r|n&~r)+o+a|0,s)+i|0}function y(t,e,n,r,i,o,a,s){return p(t+(e^(n|~r))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,C=0|this._d,S=0|this._e,k=0;k<80;k+=1){var M,E;k<16?(M=m(n,r,i,o,h,t[s[k]],f[0],c[k]),E=y(w,_,x,C,S,t[u[k]],d[0],l[k])):k<32?(M=g(n,r,i,o,h,t[s[k]],f[1],c[k]),E=b(w,_,x,C,S,t[u[k]],d[1],l[k])):k<48?(M=v(n,r,i,o,h,t[s[k]],f[2],c[k]),E=v(w,_,x,C,S,t[u[k]],d[2],l[k])):k<64?(M=b(n,r,i,o,h,t[s[k]],f[3],c[k]),E=g(w,_,x,C,S,t[u[k]],d[3],l[k])):(M=y(n,r,i,o,h,t[s[k]],f[4],c[k]),E=m(w,_,x,C,S,t[u[k]],d[4],l[k])),n=h,h=o,o=p(i,10),i=r,r=M,w=S,S=C,C=p(x,10),x=_,_=E}var O=this._b+i+C|0;this._b=this._c+o+S|0,this._c=this._d+h+w|0,this._d=this._e+n+_|0,this._e=this._a+r+x|0,this._a=O},h.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=r.alloc?r.alloc(20):new r(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=h},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),u=n("fdbf"),c=i("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=f("Symbol."+t)),c[t]}},b639:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){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 s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,n,r):"string"===typeof e?p(t,e,n):v(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,n,r){return f(e),e<=0?u(t,e):void 0!==n?"string"===typeof r?u(t,e).fill(n,r):u(t,e).fill(n):u(t,e)}function h(t,e){if(f(e),t=u(t,e<0?0:0|b(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,n);t=u(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function m(t,e){var n=e.length<0?0:0|b(e.length);t=u(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function g(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=m(t,e),t}function v(t,e){if(c.isBuffer(e)){var n=0|b(e.length);return t=u(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?u(t,0):m(t,e);if("Buffer"===e.type&&o(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),c.alloc(+t)}function w(t,e){if(c.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 n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return X(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return N(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return B(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function x(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function C(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:S(t,e,n,r,i);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(t,o+d)!==c(e,d)){f=!1;break}if(f)return o}return-1}function k(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function M(t,e,n,r){return tt(X(e,t.length-n),t,n,r)}function E(t,e,n,r){return tt(Z(e),t,n,r)}function O(t,e,n,r){return E(t,e,n,r)}function T(t,e,n,r){return tt(Q(e),t,n,r)}function A(t,e,n,r){return tt(J(e,t.length-n),t,n,r)}function D(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function N(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var o,a,s,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:o=t[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(l=u));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return P(r)}e.Buffer=c,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return d(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?N(this,0,t):_.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return C(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return C(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return k(this,t,e,n);case"utf8":case"utf-8":return M(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function P(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=R));return n}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function B(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=Y(t[o]);return i}function z(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function $(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function V(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,o){return o||V(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,o){return o||V(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a<n&&(o*=256))this[e+a]=t/o&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=n-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<n&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:X(new c(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(t){if(t=G(t).replace(W,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function J(t,e){for(var n,r,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Q(t){return r.toByteArray(K(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},b672:function(t,e,n){var r=n("8707").Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),l=0;l<c;l++)n[u+l]=t[s+l];a+=c,s+=c,a%i===0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},b680:function(t,e,n){"use strict";var r=n("23e7"),i=n("a691"),o=n("408a"),a=n("1148"),s=n("d039"),u=1..toFixed,c=Math.floor,l=function(t,e,n){return 0===e?n:e%2===1?l(t,e-1,n*t):l(t*t,e/2,n)},f=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},d=u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(t){var e,n,r,s,u=o(this),d=i(t),h=[0,0,0,0,0,0],p="",m="0",g=function(t,e){var n=-1,r=e;while(++n<6)r+=t*h[n],h[n]=r%1e7,r=c(r/1e7)},v=function(t){var e=6,n=0;while(--e>=0)n+=h[e],h[e]=c(n/t),n=n%t*1e7},b=function(){var t=6,e="";while(--t>=0)if(""!==e||0===t||0!==h[t]){var n=String(h[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(e=f(u*l(2,69,1))-69,n=e<0?u*l(2,-e,1):u/l(2,e,1),n*=4503599627370496,e=52-e,e>0){g(0,n),r=d;while(r>=7)g(1e7,0),r-=7;g(l(10,r,1),0),r=e-1;while(r>=23)v(1<<23),r-=23;v(1<<r),g(1,1),v(2),m=b()}else g(0,n),g(1<<-e,0),m=b()+a.call("0",d);return d>0?(s=m.length,m=p+(s<=d?"0."+a.call("0",d-s)+m:m.slice(0,s-d)+"."+m.slice(s-d))):m=p+m,m}})},b692:function(t,e,n){var r=n("39a9").Buffer,i=n("98e6"),o=n("34d5"),a=n("3fb5"),s=n("6fe7"),u=n("980c"),c=n("b4e8");function l(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new l(t)}function h(t){return new f(t)}Object.keys(c).forEach((function(t){c[t].id=r.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]})),a(l,o.Writable),l.prototype._write=function(t,e,n){this._hash.update(t),n()},l.prototype.update=function(t,e){return"string"===typeof t&&(t=r.from(t,e)),this._hash.update(t),this},l.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=s(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},a(f,o.Writable),f.prototype._write=function(t,e,n){this._hash.update(t),n()},f.prototype.update=function(t,e){return"string"===typeof t&&(t=r.from(t,e)),this._hash.update(t),this},f.prototype.verify=function(t,e,n){"string"===typeof e&&(e=r.from(e,n)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},t.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},b727:function(t,e,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,f=6==t,d=7==t,h=5==t||f;return function(p,m,g,v){for(var b,y,w=o(p),_=i(w),x=r(m,g,3),C=a(_.length),S=0,k=v||s,M=e?k(p,C):n||d?k(p,0):void 0;C>S;S++)if((h||S in _)&&(b=_[S],y=x(b,S,w),t))if(e)M[S]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:u.call(M,b)}else switch(t){case 4:return!1;case 7:u.call(M,b)}return f?-1:c||l?l:M}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b73f:function(t,e,n){"use strict";var r=n("80af"),i=n("f3a3"),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o<r;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function c(t){var e=0,n=t.length-1;while(!t[e]&&!(128&t[e+1])&&e<n)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);t.push(128|n);while(--n)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;var o=u(t,n);if(!1===o)return!1;if(o+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var a=u(t,n);if(!1===a)return!1;var c=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var l=u(t,n);if(!1===l)return!1;if(t.length!==l+n.place)return!1;var f=t.slice(n.place,l+n.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(c),this.s=new r(f),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=c(e),n=c(n);while(!n[0]&&!(128&n[1]))n=n.slice(1);var r=[2];l(r,e.length),r=r.concat(e),r.push(2),l(r,n.length);var o=r.concat(n),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,t)}},b7d1:function(t,e,n){(function(e){function n(t,e){if(r("noDeprecation"))return t;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return i}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,n("c8ba"))},b837:function(t,e,n){var r=n("3fb5"),i=n("4fd1"),o=n("b672"),a=n("8707").Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+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=u},b86b:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,r=n.Word,i=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b9a8:function(t,e,n){"use strict";var r=n("80af"),i=n("6aa2"),o=n("f3a3"),a=n("0cbb"),s=n("fdac"),u=o.assert,c=n("bb34"),l=n("b73f");function f(t){if(!(this instanceof f))return new f(t);"string"===typeof t&&(u(a.hasOwnProperty(t),"Unknown curve "+t),t=a[t]),t instanceof a.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=f,f.prototype.keyPair=function(t){return new c(this,t)},f.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));do{var a=new r(e.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}while(1)},f.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,n,o){"object"===typeof n&&(o=n,n=null),o||(o={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new r(1)),d=0;1;d++){var h=o.k?o.k(d):new r(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=h.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(v=v.umod(this.n),0!==v.cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new l({r:g,s:v,recoveryParam:b})}}}}}},f.prototype.verify=function(t,e,n,i){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,i),e=new l(e,"hex");var o=e.r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var f=this.g.mulAdd(u,n.getPublic(),c);return!f.isInfinity()&&0===f.getX().umod(this.n).cmp(o)}f=this.g.jmulAdd(u,n.getPublic(),c);return!f.isInfinity()&&f.eqXToP(o)},f.prototype.recoverPubKey=function(t,e,n,i){u((3&n)===n,"The recovery param is more than two bits"),e=new l(e,i);var o=this.n,a=new r(t),s=e.r,c=e.s,f=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=e.r.invm(o),p=o.sub(a).mul(h).umod(o),m=c.mul(h).umod(o);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(t,e,n,r){if(e=new l(e,r),null!==e.recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},b9b5:function(t,e,n){"use strict";var r=n("9d8a").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},b9c7:function(t,e,n){n("e507"),t.exports=n("5524").Object.assign},ba01:function(t,e,n){t.exports=n("051b")},bac2:function(t,e,n){var r={ECB:n("0145"),CBC:n("c119"),CFB:n("3505"),CFB8:n("62c9"),CFB1:n("5239"),OFB:n("5165"),CTR:n("6ade"),GCM:n("6ade")},i=n("e85f");for(var o in i)i[o].module=r[i[o].mode];t.exports=i},bb34:function(t,e,n){"use strict";var r=n("80af"),i=n("f3a3"),o=i.assert;function a(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=a,a.fromPublic=function(t,e,n){return e instanceof a?e:new a(t,{pub:e,pubEnc:n})},a.fromPrivate=function(t,e,n){return e instanceof a?e:new a(t,{priv:e,privEnc:n})},a.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"}},a.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},a.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},a.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)},a.prototype.derive=function(t){return t.mul(this.priv).getX()},a.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},a.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},bb44:function(t,e,n){"use strict";var r=n("c3c0"),i=n("edc9"),o=r.rotl32,a=r.sum32,s=r.sum32_3,u=r.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function h(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(l,c),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],b=n,y=r,w=i,_=c,x=l,C=0;C<80;C++){var S=a(o(u(n,f(C,r,i,c),t[p[C]+e],d(C)),g[C]),l);n=l,l=c,c=o(i,10),i=r,r=S,S=a(o(u(b,f(79-C,y,w,_),t[m[C]+e],h(C)),v[C]),x),b=x,x=_,_=o(w,10),w=y,y=S}S=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],l,b),this.h[3]=s(this.h[4],n,y),this.h[4]=s(this.h[0],r,w),this.h[0]=S},l.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.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,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(12).Buffer}catch(M){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],h=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(t);p=p.idivn(h),n=p.isZero()?m+n:c[d-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new v;return r.mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):g(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,y),i(x,y),i(C,y),C.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}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 _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},bc3a:function(t,e,n){t.exports=n("cee4")},bd9d:function(t,e){function n(t){var e,n=t.length;while(n--){if(e=t.readUInt8(n),255!==e){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}t.exports=n},be7f:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},i=function(t){return function(e){return typeof e===t}},o=function(t){return function(e){return t===e}},a=r("string"),s=r("array"),u=o(null),c=i("boolean"),l=i("function"),f=function(t){var e=t.getParam("link_assume_external_targets",!1);return c(e)&&e?1:!a(e)||"http"!==e&&"https"!==e?0:e},d=function(t){return t.getParam("link_context_toolbar",!1,"boolean")},h=function(t){return t.getParam("link_list")},p=function(t){return t.getParam("default_link_target")},m=function(t){return t.getParam("target_list",!0)},g=function(t){return t.getParam("rel_list",[],"array")},v=function(t){return t.getParam("link_class_list",[],"array")},b=function(t){return t.getParam("link_title",!0,"boolean")},y=function(t){return t.getParam("allow_unsafe_link_target",!1,"boolean")},w=function(t){return t.getParam("link_quicklink",!1,"boolean")},_=function(t){return t.getParam("link_default_protocol","http","string")},x=function(){},C=function(t){return function(){return t}},S=C(!1),k=C(!0),M=function(){return E},E=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:S,isSome:S,isNone:k,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:C(null),getOrUndefined:C(void 0),or:n,orThunk:e,map:M,each:x,bind:M,exists:S,forall:k,filter:M,equals:t,equals_:t,toArray:function(){return[]},toString:C("none()")};return r}(),O=function(t){var e=C(t),n=function(){return i},r=function(e){return e(t)},i={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:k,isNone:S,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return O(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?i:E},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(S,(function(e){return n(t,e)}))}};return i},T=function(t){return null===t||void 0===t?E:O(t)},A={some:O,none:M,from:T},D=Array.prototype.indexOf,N=Array.prototype.push,R=function(t,e){return D.call(t,e)},P=function(t,e){return R(t,e)>-1},I=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},B=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];e(i,n)}},L=function(t,e,n){return B(t,(function(t){n=e(n,t)})),n},z=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!s(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);N.apply(e,t[n])}return e},j=function(t,e){return z(I(t,e))},F=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return A.none()},$=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},H=function(t,e){return t?A.some(e):A.none()},V=tinymce.util.Tools.resolve("tinymce.util.Tools"),U=function(t){return a(t.value)?t.value:""},q=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},W=function(t,e){var n=[];return V.each(t,(function(t){var r=q(t);if(void 0!==t.menu){var i=W(t.menu,e);n.push({text:r,items:i})}else{var o=e(t);n.push({text:r,value:o})}})),n},K=function(t){return void 0===t&&(t=U),function(e){return A.from(e).map((function(e){return W(e,t)}))}},G=function(t){return K(U)(t)},Y=function(t,e){return function(n){return{name:t,type:"listbox",label:e,items:n}}},X={sanitize:G,sanitizeWith:K,createUi:Y,getValue:U},Z=function(){return Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Z.apply(this,arguments)},J=Object.keys,Q=Object.hasOwnProperty,tt=function(t,e){for(var n=J(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];e(a,o)}},et=function(t){return function(e,n){t[n]=e}},nt=function(t,e,n,r){var i={};return tt(t,(function(t,i){(e(t,i)?n:r)(t,i)})),i},rt=function(t,e){var n={};return nt(t,e,et(n),x),n},it=function(t,e){return Q.call(t,e)},ot=function(t,e){return it(t,e)&&void 0!==t[e]&&null!==t[e]},at=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),st=function(t){return t&&"a"===t.nodeName.toLowerCase()},ut=function(t){return st(t)&&!!ft(t)},ct=function(t,e){if(t.collapsed)return[];var n=t.cloneContents(),r=new at(n.firstChild,n),i=[],o=n.firstChild;do{e(o)&&i.push(o)}while(o=r.next());return i},lt=function(t){return/^\w+:/i.test(t)},ft=function(t){var e=t.getAttribute("data-mce-href");return e||t.getAttribute("href")},dt=function(t,e){var n=["noopener"],r=t?t.split(/\s+/):[],i=function(t){return V.trim(t.sort().join(" "))},o=function(t){return t=a(t),t.length>0?t.concat(n):n},a=function(t){return t.filter((function(t){return-1===V.inArray(n,t)}))},s=e?o(r):a(r);return s.length>0?i(s):""},ht=function(t){return t.replace(/\uFEFF/g,"")},pt=function(t,e){return e=e||t.selection.getNode(),yt(e)?t.dom.select("a[href]",e)[0]:t.dom.getParent(e,"a[href]")},mt=function(t,e){var n=e?e.innerText||e.textContent:t.getContent({format:"text"});return ht(n)},gt=function(t){return V.grep(t,ut).length>0},vt=function(t){return ct(t,ut).length>0},bt=function(t){var e=t.schema.getTextInlineElements(),n=function(t){return 1===t.nodeType&&!st(t)&&!it(e,t.nodeName.toLowerCase())},r=ct(t.selection.getRng(),n);return 0===r.length},yt=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},wt=function(t){return L(["title","rel","class","target"],(function(e,n){return t[n].each((function(t){e[n]=t.length>0?t:null})),e}),{href:t.href})},_t=function(t,e){return"http"!==e&&"https"!==e||lt(t)?t:e+"://"+t},xt=function(t,e){var n=Z({},e);if(!(g(t).length>0)&&!1===y(t)){var r=dt(n.rel,"_blank"===n.target);n.rel=r||null}return A.from(n.target).isNone()&&!1===m(t)&&(n.target=p(t)),n.href=_t(n.href,f(t)),n},Ct=function(t,e,n,r){n.each((function(t){e.hasOwnProperty("innerText")?e.innerText=t:e.textContent=t})),t.dom.setAttribs(e,r),t.selection.select(e)},St=function(t,e,n,r){yt(e)?Nt(t,e,r):n.fold((function(){t.execCommand("mceInsertLink",!1,r)}),(function(e){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(e)))}))},kt=function(t,e,n){var r=t.selection.getNode(),i=pt(t,r),o=xt(t,wt(n));t.undoManager.transact((function(){n.href===e.href&&e.attach(),i?(t.focus(),Ct(t,i,n.text,o)):St(t,r,n.text,o)}))},Mt=function(t){var e=t.dom,n=t.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=e.getParent(i.startContainer,"a[href]",t.getBody()),a=e.getParent(i.endContainer,"a[href]",t.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),t.execCommand("unlink"),n.moveToBookmark(r)},Et=function(t){t.undoManager.transact((function(){var e=t.selection.getNode();yt(e)?Dt(t,e):Mt(t),t.focus()}))},Ot=function(t){var e=t.class,n=t.href,r=t.rel,i=t.target,o=t.text,a=t.title;return rt({class:e.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(t,e){return!1===u(t)}))},Tt=function(t,e,n){t.hasPlugin("rtc",!0)?t.execCommand("createlink",!1,Ot(n)):kt(t,e,n)},At=function(t){t.hasPlugin("rtc",!0)?t.execCommand("unlink"):Et(t)},Dt=function(t,e){var n=t.dom.select("img",e)[0];if(n){var r=t.dom.getParents(n,"a[href]",e)[0];r&&(r.parentNode.insertBefore(n,r),t.dom.remove(r))}},Nt=function(t,e,n){var r=t.dom.select("img",e)[0];if(r){var i=t.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Rt=function(t){return ot(t,"items")},Pt=function(t,e){return F(e,(function(e){return Rt(e)?Pt(t,e.items):H(e.value===t,e)}))},It=function(t,e,n,r){var i=r[e],o=t.length>0;return void 0!==i?Pt(i,n).map((function(e){return{url:{value:e.value,meta:{text:o?t:e.text,attach:x}},text:o?t:e.text}})):A.none()},Bt=function(t,e){return"link"===e?t.link:"anchor"===e?t.anchor:A.none()},Lt=function(t,e){var n={text:t.text,title:t.title},r=function(t){return H(n.title.length<=0,A.from(t.meta.title).getOr(""))},i=function(t){return H(n.text.length<=0,A.from(t.meta.text).getOr(t.value))},o=function(t){var e=i(t.url),n=r(t.url);return e.isSome()||n.isSome()?A.some(Z(Z({},e.map((function(t){return{text:t}})).getOr({})),n.map((function(t){return{title:t}})).getOr({}))):A.none()},a=function(t,r){var i=Bt(e,r.name).getOr([]);return It(n.text,r.name,i,t)},s=function(t,e){var r=e.name;return"url"===r?o(t()):P(["anchor","link"],r)?a(t(),e):"text"===r||"title"===r?(n[r]=t()[r],A.none()):A.none()};return{onChange:s}},zt={init:Lt,getDelta:It},jt=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ft=tinymce.util.Tools.resolve("tinymce.util.Promise"),$t=function(t,e,n){var r=t.selection.getRng();jt.setEditorTimeout(t,(function(){t.windowManager.confirm(e,(function(e){t.selection.setRng(r),n(e)}))}))},Ht=function(t){var e=t.href,n=e.indexOf("@")>0&&-1===e.indexOf("/")&&-1===e.indexOf("mailto:");return n?A.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return Z(Z({},t),{href:"mailto:"+e})}}):A.none()},Vt=function(t,e){return function(n){var r=n.href,i=1===t&&!lt(r)||0===t&&/^\s*www(\.|\d\.)/i.test(r);return i?A.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+e+":// prefix?",preprocess:function(t){return Z(Z({},t),{href:e+"://"+r})}}):A.none()}},Ut=function(t,e){return F([Ht,Vt(f(t),_(t))],(function(t){return t(e)})).fold((function(){return Ft.resolve(e)}),(function(n){return new Ft((function(r){$t(t,n.message,(function(t){r(t?n.preprocess(e):e)}))}))}))},qt={preprocess:Ut},Wt=function(t){var e=t.dom.select("a:not([href])"),n=j(e,(function(t){var e=t.name||t.id;return e?[{text:e,value:"#"+e}]:[]}));return n.length>0?A.some([{text:"None",value:""}].concat(n)):A.none()},Kt={getAnchors:Wt},Gt=function(t){var e=v(t);return e.length>0?X.sanitize(e):A.none()},Yt={getClasses:Gt},Xt=tinymce.util.Tools.resolve("tinymce.util.XHR"),Zt=function(t){try{return A.some(JSON.parse(t))}catch(e){return A.none()}},Jt=function(t){var e=function(e){return t.convertURL(e.value||e.url,"href")},n=h(t);return new Ft((function(t){a(n)?Xt.send({url:n,success:function(e){return t(Zt(e))},error:function(e){return t(A.none())}}):l(n)?n((function(e){return t(A.some(e))})):t(A.from(n))})).then((function(t){return t.bind(X.sanitizeWith(e)).map((function(t){if(t.length>0){var e=[{text:"None",value:""}];return e.concat(t)}return t}))}))},Qt={getLinks:Jt},te=function(t,e){var n=g(t);if(n.length>0){var r=e.is("_blank"),i=!1===y(t),o=function(t){return dt(X.getValue(t),r)},a=i?X.sanitizeWith(o):X.sanitize;return a(n)}return A.none()},ee={getRels:te},ne=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],re=function(t){var e=m(t);return s(e)?X.sanitize(e).orThunk((function(){return A.some(ne)})):!1===e?A.none():A.some(ne)},ie={getTargets:re},oe=function(t,e,n){var r=t.getAttrib(e,n);return null!==r&&r.length>0?A.some(r):A.none()},ae=function(t,e){var n=t.dom,r=bt(t),i=r?A.some(mt(t.selection,e)):A.none(),o=e?A.some(n.getAttrib(e,"href")):A.none(),a=e?A.from(n.getAttrib(e,"target")):A.none(),s=oe(n,e,"rel"),u=oe(n,e,"class"),c=oe(n,e,"title");return{url:o,text:i,title:c,target:a,rel:s,linkClass:u}},se=function(t,e){return Qt.getLinks(t).then((function(n){var r=ae(t,e);return{anchor:r,catalogs:{targets:ie.getTargets(t),rels:ee.getRels(t,r.target),classes:Yt.getClasses(t),anchor:Kt.getAnchors(t),link:n},optNode:A.from(e),flags:{titleEnabled:b(t)}}}))},ue={collect:se},ce=function(t,e){return function(n){var r=n.getData();if(!r.url.value)return At(t),void n.close();var i=function(t){return A.from(r[t]).filter((function(n){return!e.anchor[t].is(n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:function(){}};qt.preprocess(t,o).then((function(e){Tt(t,a,e)})),n.close()}},le=function(t){var e=pt(t);return ue.collect(t,e)},fe=function(t,e){var n=t.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(e).getOr(""),linkClass:n.linkClass.getOr("")}},de=function(t,e,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=t.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=A.from(p(n)),s=fe(t,a),u=t.catalogs,c=zt.init(s,u),l={type:"panel",items:z([r,i,o,$([u.anchor.map(X.createUi("anchor","Anchors")),u.rels.map(X.createUi("rel","Rel")),u.targets.map(X.createUi("target","Open link in...")),u.link.map(X.createUi("link","Link list")),u.classes.map(X.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:l,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(t,e){var n=e.name;c.onChange(t.getData,{name:n}).each((function(e){t.setData(e)}))},onSubmit:e}},he=function(t){var e=le(t);e.then((function(e){var n=ce(t,e);return de(e,n,t)})).then((function(e){t.windowManager.open(e)}))},pe=function(t,e){document.body.appendChild(t),t.dispatchEvent(e),document.body.removeChild(t)},me=function(t){var e=document.createElement("a");e.target="_blank",e.href=t,e.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),pe(e,n)},ge=function(t,e){return t.dom.getParent(e,"a[href]")},ve=function(t){return ge(t,t.selection.getStart())},be=function(t){return!0===t.altKey&&!1===t.shiftKey&&!1===t.ctrlKey&&!1===t.metaKey},ye=function(t,e){if(e){var n=ft(e);if(/^#/.test(n)){var r=t.$(n);r.length&&t.selection.scrollIntoView(r[0],!0)}else me(e.href)}},we=function(t){return function(){he(t)}},_e=function(t){return function(){ye(t,ve(t))}},xe=function(t){t.on("click",(function(n){var r=ge(t,n.target);r&&e.metaKeyPressed(n)&&(n.preventDefault(),ye(t,r))})),t.on("keydown",(function(e){var n=ve(t);n&&13===e.keyCode&&be(e)&&(e.preventDefault(),ye(t,n))}))},Ce=function(t,e){return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}},Se=function(t){return function(e){return Ce(t,(function(){e.setActive(!t.mode.isReadOnly()&&null!==pt(t,t.selection.getNode()))}))}},ke=function(t){return function(e){var n=function(){return e.setDisabled(null===pt(t,t.selection.getNode()))};return n(),Ce(t,n)}},Me=function(t){return function(e){var n=function(e){return gt(e)||vt(t.selection.getRng())},r=t.dom.getParents(t.selection.getStart());return e.setDisabled(!n(r)),Ce(t,(function(t){return e.setDisabled(!n(t.parents))}))}},Ee=function(t){t.addCommand("mceLink",(function(){w(t)?t.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):we(t)()}))},Oe=function(t){t.addShortcut("Meta+K","",(function(){t.execCommand("mceLink")}))},Te=function(t){t.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:we(t),onSetup:Se(t)}),t.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:_e(t),onSetup:ke(t)}),t.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return At(t)},onSetup:Me(t)})},Ae=function(t){t.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:_e(t),onSetup:ke(t)}),t.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:we(t)}),t.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return At(t)},onSetup:Me(t)})},De=function(t){var e="link unlink openlink",n="link";t.ui.registry.addContextMenu("link",{update:function(r){return gt(t.dom.getParents(r,"a"))?e:n}})},Ne=function(t){var e=function(t){t.selection.collapse(!1)},n=function(e){var n=t.selection.getNode();return e.setDisabled(!pt(t,n)),function(){}};t.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Se(t)},label:"Link",predicate:function(e){return!!pt(t,e)&&d(t)},initValue:function(){var e=pt(t);return e?ft(e):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(e){var n=t.selection.getNode();return e.setActive(!!pt(t,n)),Se(t)(e)},onAction:function(n){var r=pt(t),i=n.getValue();if(r)t.undoManager.transact((function(){t.dom.setAttrib(r,"href",i),e(t),n.hide()}));else{var o={href:i,attach:function(){}},a=bt(t),s=a?A.some(mt(t.selection,r)).filter((function(t){return t.length>0})).or(A.from(i)):A.none();Tt(t,o,{href:i,text:s,title:A.none(),rel:A.none(),target:A.none(),class:A.none()}),n.hide()}}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(e){At(t),e.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(e){_e(t)(),e.hide()}}]})};function Re(){t.add("link",(function(t){Te(t),Ae(t),De(t),Ne(t),xe(t),Ee(t),Oe(t)}))}Re()})()},bee2:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c098:function(t,e,n){t.exports=n("d4af")},c119:function(t,e,n){var r=n("8c8a");e.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},c198:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.BlockCipher,i=e.algo,o=[],a=[],s=[],u=[],c=[],l=[],f=[],d=[],h=[],p=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^255&i^99,o[n]=i,a[i]=n;var m=t[n],g=t[m],v=t[g],b=257*t[i]^16843008*i;s[n]=b<<24|b>>>8,u[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,l[n]=b;b=16843009*v^65537*g^257*m^16843008*n;f[i]=b<<24|b>>>8,d[i]=b<<16|b>>>16,h[i]=b<<8|b>>>24,p[i]=b,n?(n=m^t[t[t[v^m]]],r^=t[t[r]]):n=r=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=this._nRounds=n+6,i=4*(r+1),a=this._keySchedule=[],s=0;s<i;s++)s<n?a[s]=e[s]:(l=a[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=l<<8|l>>>24,l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=m[s/n|0]<<24),a[s]=a[s-n]^l);for(var u=this._invKeySchedule=[],c=0;c<i;c++){s=i-c;if(c%4)var l=a[s];else l=a[s-4];u[c]=c<4||s<=4?l:f[o[l>>>24]]^d[o[l>>>16&255]]^h[o[l>>>8&255]]^p[o[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,u,c,l,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,f,d,h,p,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,a,s){for(var u=this._nRounds,c=t[e]^n[0],l=t[e+1]^n[1],f=t[e+2]^n[2],d=t[e+3]^n[3],h=4,p=1;p<u;p++){var m=r[c>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&d]^n[h++],g=r[l>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^n[h++],v=r[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&l]^n[h++],b=r[d>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^n[h++];c=m,l=g,f=v,d=b}m=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[h++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[h++],v=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[h++],b=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[h++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=r._createHelper(g)}(),t.AES}))},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"}}')},c284:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=119)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},119:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-progress",class:["el-progress--"+t.type,t.status?"is-"+t.status:"",{"el-progress--without-text":!t.showText,"el-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:t.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[t._v(t._s(t.content))]):t._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:"#e5e9f2","stroke-width":t.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:t.progressTextSize+"px"}},[t.status?n("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])},i=[];r._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(t){return["line","circle","dashboard"].indexOf(t)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(t){return t>=0&&t<=100}},status:{type:String,validator:function(t){return["success","exception","warning"].indexOf(t)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var t=this.radius,e="dashboard"===this.type;return"\n M 50 50\n m 0 "+(e?"":"-")+t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"-":"")+2*t+"\n a "+t+" "+t+" 0 1 1 0 "+(e?"":"-")+2*t+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var t=-1*this.perimeter*(1-this.rate)/2;return t+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var t=void 0;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(t){return"function"===typeof this.color?this.color(t):"string"===typeof this.color?this.color:this.getLevelColor(t)},getLevelColor:function(t){for(var e=this.getColorArray().sort((function(t,e){return t.percentage-e.percentage})),n=0;n<e.length;n++)if(e[n].percentage>t)return e[n].color;return e[e.length-1].color},getColorArray:function(){var t=this.color,e=100/t.length;return t.map((function(t,n){return"string"===typeof t?{color:t,percentage:(n+1)*e}:t}))}}},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/progress/src/progress.vue";var c=u.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}})},c2ae:function(t,e,n){t.exports=n("e372").PassThrough},c345:function(t,e,n){"use strict";var r=n("c532"),i=["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,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,i=e.algo,o=i.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}e.RC4=r._createHelper(o);var s=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4}))},c3c0:function(t,e,n){"use strict";var r=n("da3e"),i=n("3fb5");function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function a(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n}function s(t){for(var e="",n=0;n<t.length;n++)e+=l(t[n].toString(16));return e}function u(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24;return e>>>0}function c(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=u(i)),n+=f(i.toString(16))}return n}function l(t){return 1===t.length?"0"+t:t}function f(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}function d(t,e,n,i){var o=n-e;r(o%4===0);for(var a=new Array(o/4),s=0,u=e;s<a.length;s++,u+=4){var c;c="big"===i?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=c>>>0}return a}function h(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function p(t,e){return t>>>e|t<<32-e}function m(t,e){return t<<e|t>>>32-e}function g(t,e){return t+e>>>0}function v(t,e,n){return t+e+n>>>0}function b(t,e,n,r){return t+e+n+r>>>0}function y(t,e,n,r,i){return t+e+n+r+i>>>0}function w(t,e,n,r){var i=t[e],o=t[e+1],a=r+o>>>0,s=(a<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=a}function _(t,e,n,r){var i=e+r>>>0,o=(i<e?1:0)+t+n;return o>>>0}function x(t,e,n,r){var i=e+r;return i>>>0}function C(t,e,n,r,i,o,a,s){var u=0,c=e;c=c+r>>>0,u+=c<e?1:0,c=c+o>>>0,u+=c<o?1:0,c=c+s>>>0,u+=c<s?1:0;var l=t+n+i+a+u;return l>>>0}function S(t,e,n,r,i,o,a,s){var u=e+r+o+s;return u>>>0}function k(t,e,n,r,i,o,a,s,u,c){var l=0,f=e;f=f+r>>>0,l+=f<e?1:0,f=f+o>>>0,l+=f<o?1:0,f=f+s>>>0,l+=f<s?1:0,f=f+c>>>0,l+=f<c?1:0;var d=t+n+i+a+u+l;return d>>>0}function M(t,e,n,r,i,o,a,s,u,c){var l=e+r+o+s+c;return l>>>0}function E(t,e,n){var r=e<<32-n|t>>>n;return r>>>0}function O(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}function T(t,e,n){return t>>>n}function A(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}e.inherits=i,e.toArray=a,e.toHex=s,e.htonl=u,e.toHex32=c,e.zero2=l,e.zero8=f,e.join32=d,e.split32=h,e.rotr32=p,e.rotl32=m,e.sum32=g,e.sum32_3=v,e.sum32_4=b,e.sum32_5=y,e.sum64=w,e.sum64_hi=_,e.sum64_lo=x,e.sum64_4_hi=C,e.sum64_4_lo=S,e.sum64_5_hi=k,e.sum64_5_lo=M,e.rotr64_hi=E,e.rotr64_lo=O,e.shr64_hi=T,e.shr64_lo=A},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e){t.exports=!1},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===i.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function l(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function f(t){return"string"===typeof t}function d(t){return"number"===typeof t}function h(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===i.call(t)}function m(t){return"[object File]"===i.call(t)}function g(t){return"[object Blob]"===i.call(t)}function v(t){return"[object Function]"===i.call(t)}function b(t){return h(t)&&v(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function C(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=C(t[n],e):t[n]=e}for(var n=0,r=arguments.length;n<r;n++)x(arguments[n],e);return t}function S(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=S(t[n],e):t[n]="object"===typeof e?S({},e):e}for(var n=0,r=arguments.length;n<r;n++)x(arguments[n],e);return t}function k(t,e,n){return x(e,(function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e})),t}t.exports={isArray:o,isArrayBuffer:u,isBuffer:s,isFormData:c,isArrayBufferView:l,isString:f,isNumber:d,isObject:h,isUndefined:a,isDate:p,isFile:m,isBlob:g,isFunction:v,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:_,forEach:x,merge:C,deepMerge:S,extend:k,trim:w}},c56a:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},c591:function(t,e,n){"use strict";(function(e){var r,i=n("b639"),o=i.Buffer,a={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(a[r]=i[r]);var s=a.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=o[r]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,n){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,n)}),s.alloc||(s.alloc=function(t,e,n){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 r=o(t);return e&&0!==e.length?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(u){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this,n("4362"))},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c901:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c975:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").indexOf,o=n("a640"),a=n("ae40"),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!c||!l},{indexOf:function(t){return u?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc15:function(t,e,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cd91:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},cdd9:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.apply(this,arguments)},n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},i=function(t){return function(e){return typeof e===t}},o=function(t){return function(e){return t===e}},a=r("string"),s=r("object"),u=r("array"),c=o(null),l=i("boolean"),f=i("number"),d=function(){},h=function(t){return function(){return t}},p=h(!1),m=h(!0),g=function(){return v},v=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:p,isSome:p,isNone:m,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:n,orThunk:e,map:g,each:d,bind:g,exists:p,forall:m,filter:g,equals:t,equals_:t,toArray:function(){return[]},toString:h("none()")};return r}(),b=function(t){var e=h(t),n=function(){return i},r=function(e){return e(t)},i={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:m,isNone:p,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return b(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?i:v},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(p,(function(e){return n(t,e)}))}};return i},y=function(t){return null===t||void 0===t?v:b(t)},w={some:b,none:g,from:y},_=Array.prototype.push,x=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);_.apply(e,t[n])}return e},C=function(t,e){return e>=0&&e<t.length?w.some(t[e]):w.none()},S=function(t){return C(t,0)},k=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return w.none()},M=("undefined"!==typeof window?window:Function("return this;")(),function(t,e,n){if(!(a(n)||l(n)||f(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")}),E=function(t,e,n){M(t.dom,e,n)},O=function(t,e){t.dom.removeAttribute(e)},T=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return N(r.childNodes[0])},A=function(t,e){var n=e||document,r=n.createElement(t);return N(r)},D=function(t,e){var n=e||document,r=n.createTextNode(t);return N(r)},N=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},R=function(t,e,n){return w.from(t.dom.elementFromPoint(e,n)).map(N)},P={fromHtml:T,fromTag:A,fromText:D,fromDom:N,fromPoint:R},I=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),B=tinymce.util.Tools.resolve("tinymce.util.Promise"),L=tinymce.util.Tools.resolve("tinymce.util.XHR"),z=function(t){return t.getParam("image_dimensions",!0,"boolean")},j=function(t){return t.getParam("image_advtab",!1,"boolean")},F=function(t){return t.getParam("image_uploadtab",!0,"boolean")},$=function(t){return t.getParam("image_prepend_url","","string")},H=function(t){return t.getParam("image_class_list")},V=function(t){return t.getParam("image_description",!0,"boolean")},U=function(t){return t.getParam("image_title",!1,"boolean")},q=function(t){return t.getParam("image_caption",!1,"boolean")},W=function(t){return t.getParam("image_list",!1)},K=function(t){return!!Y(t)},G=function(t){return!!X(t)},Y=function(t){return t.getParam("images_upload_url","","string")},X=function(t){return t.getParam("images_upload_handler",void 0,"function")},Z=function(t){return t.getParam("images_upload_base_path",void 0,"string")},J=function(t){return t.getParam("images_upload_credentials",!1,"boolean")},Q=function(t){return t.getParam("a11y_advanced_options",!1,"boolean")},tt=function(t){return t.getParam("automatic_uploads",!0,"boolean")},et=function(t,e){return Math.max(parseInt(t,10),parseInt(e,10))},nt=function(t){return new B((function(e){var n=document.createElement("img"),r=function(t){n.parentNode&&n.parentNode.removeChild(n),e(t)};n.onload=function(){var t=et(n.width,n.clientWidth),e=et(n.height,n.clientHeight),i={width:t,height:e};r(B.resolve(i))},n.onerror=function(){r(B.reject("Failed to get image dimensions for: "+t))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=t}))},rt=function(t){return t&&(t=t.replace(/px$/,"")),t},it=function(t){return t.length>0&&/^[0-9]+$/.test(t)&&(t+="px"),t},ot=function(t){if(t.margin){var e=String(t.margin).split(" ");switch(e.length){case 1:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[0],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[0];break;case 2:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[1];break;case 3:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[1];break;case 4:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[3]}delete t.margin}return t},at=function(t,e){var n=W(t);"string"===typeof n?L.send({url:n,success:function(t){e(JSON.parse(t))}}):"function"===typeof n?n(e):e(n)},st=function(t,e,n){var r=function(){n.onload=n.onerror=null,t.selection&&(t.selection.select(n),t.nodeChanged())};n.onload=function(){e.width||e.height||!z(t)||t.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ut=function(t){return new B((function(e,n){var r=new FileReader;r.onload=function(){e(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(t)}))},ct=function(t){return"IMG"===t.nodeName&&(t.hasAttribute("data-mce-object")||t.hasAttribute("data-mce-placeholder"))},lt=I.DOM,ft=function(t){return t.style.marginLeft&&t.style.marginRight&&t.style.marginLeft===t.style.marginRight?rt(t.style.marginLeft):""},dt=function(t){return t.style.marginTop&&t.style.marginBottom&&t.style.marginTop===t.style.marginBottom?rt(t.style.marginTop):""},ht=function(t){return t.style.borderWidth?rt(t.style.borderWidth):""},pt=function(t,e){return t.hasAttribute(e)?t.getAttribute(e):""},mt=function(t,e){return t.style[e]?t.style[e]:""},gt=function(t){return null!==t.parentNode&&"FIGURE"===t.parentNode.nodeName},vt=function(t,e,n){""===n?t.removeAttribute(e):t.setAttribute(e,n)},bt=function(t){var e=lt.create("figure",{class:"image"});lt.insertAfter(e,t),e.appendChild(t),e.appendChild(lt.create("figcaption",{contentEditable:"true"},"Caption")),e.contentEditable="false"},yt=function(t){var e=t.parentNode;lt.insertAfter(t,e),lt.remove(e)},wt=function(t){gt(t)?yt(t):bt(t)},_t=function(t,e){var n=t.getAttribute("style"),r=e(null!==n?n:"");r.length>0?(t.setAttribute("style",r),t.setAttribute("data-mce-style",r)):t.removeAttribute("style")},xt=function(t,e){return function(t,n,r){t.style[n]?(t.style[n]=it(r),_t(t,e)):vt(t,n,r)}},Ct=function(t,e){return t.style[e]?rt(t.style[e]):pt(t,e)},St=function(t,e){var n=it(e);t.style.marginLeft=n,t.style.marginRight=n},kt=function(t,e){var n=it(e);t.style.marginTop=n,t.style.marginBottom=n},Mt=function(t,e){var n=it(e);t.style.borderWidth=n},Et=function(t,e){t.style.borderStyle=e},Ot=function(t){return mt(t,"borderStyle")},Tt=function(t){return"FIGURE"===t.nodeName},At=function(t){return"IMG"===t.nodeName},Dt=function(t){return 0===lt.getAttrib(t,"alt").length&&"presentation"===lt.getAttrib(t,"role")},Nt=function(t){return Dt(t)?"":pt(t,"alt")},Rt=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Pt=function(t,e){var n=document.createElement("img");return vt(n,"style",e.style),(ft(n)||""!==e.hspace)&&St(n,e.hspace),(dt(n)||""!==e.vspace)&&kt(n,e.vspace),(ht(n)||""!==e.border)&&Mt(n,e.border),(Ot(n)||""!==e.borderStyle)&&Et(n,e.borderStyle),t(n.getAttribute("style"))},It=function(t,n){var r=document.createElement("img");if($t(t,e(e({},n),{caption:!1}),r),zt(r,n.alt,n.isDecorative),n.caption){var i=lt.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(lt.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},Bt=function(t,e){return{src:pt(e,"src"),alt:Nt(e),title:pt(e,"title"),width:Ct(e,"width"),height:Ct(e,"height"),class:pt(e,"class"),style:t(pt(e,"style")),caption:gt(e),hspace:ft(e),vspace:dt(e),border:ht(e),borderStyle:mt(e,"borderStyle"),isDecorative:Dt(e)}},Lt=function(t,e,n,r,i){n[r]!==e[r]&&i(t,r,n[r])},zt=function(t,e,n){if(n){lt.setAttrib(t,"role","presentation");var r=P.fromDom(t);E(r,"alt","")}else{if(c(e)){r=P.fromDom(t);O(r,"alt")}else{r=P.fromDom(t);E(r,"alt",e)}"presentation"===lt.getAttrib(t,"role")&<.setAttrib(t,"role","")}},jt=function(t,e,n){n.alt===e.alt&&n.isDecorative===e.isDecorative||zt(t,n.alt,n.isDecorative)},Ft=function(t,e){return function(n,r,i){t(n,i),_t(n,e)}},$t=function(t,e,n){var r=Bt(t,n);Lt(n,r,e,"caption",(function(t,e,n){return wt(t)})),Lt(n,r,e,"src",vt),Lt(n,r,e,"title",vt),Lt(n,r,e,"width",xt("width",t)),Lt(n,r,e,"height",xt("height",t)),Lt(n,r,e,"class",vt),Lt(n,r,e,"style",Ft((function(t,e){return vt(t,"style",e)}),t)),Lt(n,r,e,"hspace",Ft(St,t)),Lt(n,r,e,"vspace",Ft(kt,t)),Lt(n,r,e,"border",Ft(Mt,t)),Lt(n,r,e,"borderStyle",Ft(Et,t)),jt(n,r,e)},Ht=function(t,e){var n=t.dom.styles.parse(e),r=ot(n),i=t.dom.styles.parse(t.dom.styles.serialize(r));return t.dom.styles.serialize(i)},Vt=function(t){var e=t.selection.getNode(),n=t.dom.getParent(e,"figure.image");return n?t.dom.select("img",n)[0]:e&&("IMG"!==e.nodeName||ct(e))?null:e},Ut=function(t,e){var n=t.dom,r=n.getParent(e.parentNode,(function(e){return!!t.schema.getTextBlockElements()[e.nodeName]}),t.getBody());return r?n.split(r,e):e},qt=function(t){var e=Vt(t);return e?Bt((function(e){return Ht(t,e)}),e):Rt()},Wt=function(t,e){var n=It((function(e){return Ht(t,e)}),e);t.dom.setAttrib(n,"data-mce-id","__mcenew"),t.focus(),t.selection.setContent(n.outerHTML);var r=t.dom.select('*[data-mce-id="__mcenew"]')[0];if(t.dom.setAttrib(r,"data-mce-id",null),Tt(r)){var i=Ut(t,r);t.selection.select(i)}else t.selection.select(r)},Kt=function(t,e){t.dom.setAttrib(e,"src",e.getAttribute("src"))},Gt=function(t,e){if(e){var n=t.dom.is(e.parentNode,"figure.image")?e.parentNode:e;t.dom.remove(n),t.focus(),t.nodeChanged(),t.dom.isEmpty(t.getBody())&&(t.setContent(""),t.selection.setCursorLocation())}},Yt=function(t,e){var n=Vt(t);if($t((function(e){return Ht(t,e)}),e,n),Kt(t,n),Tt(n.parentNode)){var r=n.parentNode;Ut(t,r),t.selection.select(n.parentNode)}else t.selection.select(n),st(t,e,n)},Xt=function(t,n){var r=Vt(t);if(r){var i=Bt((function(e){return Ht(t,e)}),r),o=e(e({},i),n);o.src?Yt(t,o):Gt(t,r)}else n.src&&Wt(t,e(e({},Rt()),n))},Zt=Object.prototype.hasOwnProperty,Jt=function(t,e){var n=s(t)&&s(e);return n?te(t,e):e},Qt=function(t){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<e.length;i++){var o=e[i];for(var a in o)Zt.call(o,a)&&(r[a]=t(r[a],o[a]))}return r}},te=Qt(Jt),ee=tinymce.util.Tools.resolve("tinymce.util.Tools"),ne=function(t){return a(t.value)?t.value:""},re=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},ie=function(t,e){var n=[];return ee.each(t,(function(t){var r=re(t);if(void 0!==t.menu){var i=ie(t.menu,e);n.push({text:r,items:i})}else{var o=e(t);n.push({text:r,value:o})}})),n},oe=function(t){return void 0===t&&(t=ne),function(e){return e?w.from(e).map((function(e){return ie(e,t)})):w.none()}},ae=function(t){return oe(ne)(t)},se=function(t){return Object.prototype.hasOwnProperty.call(t,"items")},ue=function(t,e){return k(t,(function(t){return se(t)?ue(t.items,e):t.value===e?w.some(t):w.none()}))},ce=function(t,e){return t.bind((function(t){return ue(t,e)}))},le={sanitizer:oe,sanitize:ae,findEntry:ce},fe=function(t,e){return t?t.replace(/\/$/,"")+"/"+e.replace(/^\//,""):e};function de(t){var e=function(e,n,r,i){var o=new XMLHttpRequest;o.open("POST",t.url),o.withCredentials=t.credentials,o.upload.onprogress=function(t){i(t.loaded/t.total*100)},o.onerror=function(){r("Image upload failed due to a XHR Transport error. Code: "+o.status)},o.onload=function(){if(o.status<200||o.status>=300)r("HTTP Error: "+o.status);else{var e=JSON.parse(o.responseText);e&&"string"===typeof e.location?n(fe(t.basePath,e.location)):r("Invalid JSON: "+o.responseText)}};var a=new FormData;a.append("file",e.blob(),e.filename()),o.send(a)},n=function(t,e){return new B((function(n,r){try{e(t,n,r,d)}catch(i){r(i.message)}}))},r=function(t){return t===e},i=function(e){return!t.url&&r(t.handler)?B.reject("Upload url missing from the settings."):n(e,t.handler)};return t=ee.extend({credentials:!1,handler:e},t),{upload:i}}var he=function(t){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},pe={makeTab:he},me=function(t){var e=le.sanitizer((function(e){return t.convertURL(e.value||e.url,"src")})),n=new B((function(n){at(t,(function(t){n(e(t).map((function(t){return x([[{text:"None",value:""}],t])})))}))})),r=le.sanitize(H(t)),i=j(t),o=F(t),s=K(t),u=G(t),c=qt(t),l=V(t),f=U(t),d=z(t),h=q(t),p=Q(t),m=Y(t),g=Z(t),v=J(t),b=X(t),y=tt(t),_=w.some($(t)).filter((function(t){return a(t)&&t.length>0}));return n.then((function(t){return{image:c,imageList:t,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:u,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:h,url:m,basePath:g,credentials:v,handler:b,prependURL:_,hasAccessibilityOptions:p,automaticUploads:y}}))},ge=function(t){var e={name:"src",type:"urlinput",filetype:"image",label:"Source"},n=t.imageList.map((function(t){return{name:"images",type:"listbox",label:"Image list",items:t}})),r={name:"alt",type:"input",label:"Alternative description",disabled:t.hasAccessibilityOptions&&t.image.isDecorative},i={name:"title",type:"input",label:"Image title"},o={name:"dimensions",type:"sizeinput"},a={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},s=t.classList.map((function(t){return{name:"classes",type:"listbox",label:"Class",items:t}})),u={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]};return x([[e],n.toArray(),t.hasAccessibilityOptions&&t.hasDescription?[a]:[],t.hasDescription?[r]:[],t.hasImageTitle?[i]:[],t.hasDimensions?[o]:[],[{type:"grid",columns:2,items:x([s.toArray(),t.hasImageCaption?[u]:[]])}]])},ve=function(t){return{title:"General",name:"general",items:ge(t)}},be={makeTab:ve,makeItems:ge},ye=function(t){var e=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:e}},we={makeTab:ye},_e=function(t){return{prevImage:le.findEntry(t.imageList,t.image.src),prevAlt:t.image.alt,open:!0}},xe=function(t){return{src:{value:t.src,meta:{}},images:t.src,alt:t.alt,title:t.title,dimensions:{width:t.width,height:t.height},classes:t.class,caption:t.caption,style:t.style,vspace:t.vspace,border:t.border,hspace:t.hspace,borderstyle:t.borderStyle,fileinput:[],isDecorative:t.isDecorative}},Ce=function(t,e){return{src:t.src.value,alt:0===t.alt.length&&e?null:t.alt,title:t.title,width:t.dimensions.width,height:t.dimensions.height,class:t.classes,style:t.style,caption:t.caption,hspace:t.hspace,vspace:t.vspace,border:t.border,borderStyle:t.borderstyle,isDecorative:t.isDecorative}},Se=function(t,e){return/^(?:[a-zA-Z]+:)?\/\//.test(e)?w.none():t.prependURL.bind((function(t){return e.substring(0,t.length)!==t?w.some(t+e):w.none()}))},ke=function(t,e){var n=e.getData();Se(t,n.src.value).each((function(t){e.setData({src:{value:t,meta:n.src.meta}})}))},Me=function(t,e,n){t.hasDescription&&a(n.alt)&&(e.alt=n.alt),t.hasAccessibilityOptions&&(e.isDecorative=n.isDecorative||e.isDecorative||!1),t.hasImageTitle&&a(n.title)&&(e.title=n.title),t.hasDimensions&&(a(n.width)&&(e.dimensions.width=n.width),a(n.height)&&(e.dimensions.height=n.height)),a(n.class)&&le.findEntry(t.classList,n.class).each((function(t){e.classes=t.value})),t.hasImageCaption&&l(n.caption)&&(e.caption=n.caption),t.hasAdvTab&&(a(n.style)&&(e.style=n.style),a(n.vspace)&&(e.vspace=n.vspace),a(n.border)&&(e.border=n.border),a(n.hspace)&&(e.hspace=n.hspace),a(n.borderstyle)&&(e.borderstyle=n.borderstyle))},Ee=function(t,e){var n=e.getData(),r=n.src.meta;if(void 0!==r){var i=te({},n);Me(t,i,r),e.setData(i)}},Oe=function(t,e,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!e.hasDimensions||t.imageSize(o).then((function(t){n.open&&r.setData({dimensions:t})}))},Te=function(t,e,n){var r=n.getData(),i=le.findEntry(t.imageList,r.src.value);e.prevImage=i,n.setData({images:i.map((function(t){return t.value})).getOr("")})},Ae=function(t,e,n,r){ke(e,r),Ee(e,r),Oe(t,e,n,r),Te(e,n,r)},De=function(t,e,n,r){var i=r.getData(),o=le.findEntry(e.imageList,i.images);o.each((function(t){var e=""===i.alt||n.prevImage.map((function(t){return t.text===i.alt})).getOr(!1);e?""===t.value?r.setData({src:t,alt:n.prevAlt}):r.setData({src:t,alt:t.text}):r.setData({src:t})})),n.prevImage=o,Ae(t,e,n,r)},Ne=function(t){var e=t["margin-top"]&&t["margin-bottom"]&&t["margin-top"]===t["margin-bottom"];return e?rt(String(t["margin-top"])):""},Re=function(t){var e=t["margin-right"]&&t["margin-left"]&&t["margin-right"]===t["margin-left"];return e?rt(String(t["margin-right"])):""},Pe=function(t){return t["border-width"]?rt(String(t["border-width"])):""},Ie=function(t){return t["border-style"]?String(t["border-style"]):""},Be=function(t,e,n){return e(t(e(n)))},Le=function(t,e,n){var r=ot(t(n.style)),i=te({},n);return i.vspace=Ne(r),i.hspace=Re(r),i.border=Pe(r),i.borderstyle=Ie(r),i.style=Be(t,e,r),i},ze=function(t,e){var n=e.getData(),r=Le(t.parseStyle,t.serializeStyle,n);e.setData(r)},je=function(t,e,n){var r=te(xe(e.image),n.getData()),i=Pt(t.normalizeCss,Ce(r,!1));n.setData({style:i})},Fe=function(t,e,n,r){var i=r.getData();r.block("Uploading image"),S(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=de({url:e.url,basePath:e.basePath,credentials:e.credentials,handler:e.handler}),s=function(){r.unblock(),URL.revokeObjectURL(o)},u=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),Ae(t,e,n,r)};ut(i).then((function(n){var c=t.createBlobCache(i,o,n);e.automaticUploads?a.upload(c).then((function(t){u(t),s()})).catch((function(e){s(),t.alertErr(e)})):(t.addToBlobCache(c),u(c.blobUri()),r.unblock())}))}))},$e=function(t,e,n){return function(r,i){"src"===i.name?Ae(t,e,n,r):"images"===i.name?De(t,e,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?ze(t,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?je(t,e,r):"fileinput"===i.name?Fe(t,e,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},He=function(t){return function(){t.open=!1}},Ve=function(t){if(t.hasAdvTab||t.hasUploadUrl||t.hasUploadHandler){var e={type:"tabpanel",tabs:x([[be.makeTab(t)],t.hasAdvTab?[pe.makeTab(t)]:[],t.hasUploadTab&&(t.hasUploadUrl||t.hasUploadHandler)?[we.makeTab(t)]:[]])};return e}var n={type:"panel",items:be.makeItems(t)};return n},Ue=function(t){return function(e){var n=_e(e);return{title:"Insert/Edit Image",size:"normal",body:Ve(e),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:xe(e.image),onSubmit:t.onSubmit(e),onChange:$e(t,e,n),onClose:He(n)}}},qe=function(t){return function(e){return function(n){var r=te(xe(e.image),n.getData());t.execCommand("mceUpdateImage",!1,Ce(r,e.hasAccessibilityOptions)),t.editorUpload.uploadImagesAuto(),n.close()}}},We=function(t){return function(e){return nt(t.documentBaseURI.toAbsolute(e)).then((function(t){return{width:String(t.width),height:String(t.height)}}))}},Ke=function(t){return function(e,n,r){return t.editorUpload.blobCache.create({blob:e,blobUri:n,name:e.name?e.name.replace(/\.[^\.]+$/,""):null,filename:e.name,base64:r.split(",")[1]})}},Ge=function(t){return function(e){t.editorUpload.blobCache.add(e)}},Ye=function(t){return function(e){t.windowManager.alert(e)}},Xe=function(t){return function(e){return Ht(t,e)}},Ze=function(t){return function(e){return t.dom.parseStyle(e)}},Je=function(t){return function(e,n){return t.dom.serializeStyle(e,n)}},Qe=function(t){var e={onSubmit:qe(t),imageSize:We(t),addToBlobCache:Ge(t),createBlobCache:Ke(t),alertErr:Ye(t),normalizeCss:Xe(t),parseStyle:Ze(t),serializeStyle:Je(t)},n=function(){me(t).then(Ue(e)).then(t.windowManager.open)};return{open:n}},tn=function(t){t.addCommand("mceImage",Qe(t).open),t.addCommand("mceUpdateImage",(function(e,n){t.undoManager.transact((function(){return Xt(t,n)}))}))},en=function(t){var e=t.attr("class");return e&&/\bimage\b/.test(e)},nn=function(t){return function(e){var n=e.length,r=function(e){e.attr("contenteditable",t?"true":null)};while(n--){var i=e[n];en(i)&&(i.attr("contenteditable",t?"false":null),ee.each(i.getAll("figcaption"),r))}}},rn=function(t){t.on("PreInit",(function(){t.parser.addNodeFilter("figure",nn(!0)),t.serializer.addNodeFilter("figure",nn(!1))}))},on=function(t){t.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Qe(t).open,onSetup:function(e){return t.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",e.setActive).unbind}}),t.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Qe(t).open}),t.ui.registry.addContextMenu("image",{update:function(t){return Tt(t)||At(t)&&!ct(t)?["image"]:[]}})};function an(){t.add("image",(function(t){rn(t),on(t),tn(t)}))}an()})()},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},ce7a:function(t,e,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function u(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=u(s);c.Axios=o,c.create=function(t){return u(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},cf35:function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=O;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("f12a"),s=n("b639").Buffer,u=e.Uint8Array||function(){};function c(t){return s.from(t)}function l(t){return s.isBuffer(t)||t instanceof u}var f,d=n(8);f=d&&d.debuglog?d.debuglog("stream"):function(){};var h,p,m,g=n("22ab"),v=n("9019"),b=n("05f0"),y=b.getHighWaterMark,w=n("d113").codes,_=w.ERR_INVALID_ARG_TYPE,x=w.ERR_STREAM_PUSH_AFTER_EOF,C=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var k=v.errorOrDestroy,M=["error","close","destroy","pause","resume"];function E(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function O(t,e,r){i=i||n("5e7d"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),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&&(h||(h=n("7d72").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("5e7d"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(t,e,n,r,i){f("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,B(t,a);else if(i||(o=N(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=c(e)),r)a.endEmitted?k(t,new S):D(t,a,e,!0);else if(a.ended)k(t,new x);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?D(t,a,e,!1):j(t,a)):D(t,a,e,!1)}else r||(a.reading=!1,j(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function D(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&L(t)),j(t,e)}function N(t,e){var n;return l(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new _("chunk",["string","Buffer","Uint8Array"],e)),n}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=v.destroy,T.prototype._undestroy=v.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=s.from(t,e),e=""),n=!0),A(this,t,e,!1,n)},T.prototype.unshift=function(t){return A(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){h||(h=n("7d72").StringDecoder);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=1073741824;function P(t){return t>=R?t=R:(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 B(t,e){if(f("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,z(t)))}}function L(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(z,t))}function z(t){var e=t._readableState;f("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,W(t)}function j(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var n=e.length;if(f("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function $(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,W(t))}}function H(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function V(t){f("readable nexttick read 0"),t.read(0)}function U(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(q,t,e))}function q(t,e){f("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),W(t),e.flowing&&!e.reading&&t.read(0)}function W(t){var e=t._readableState;f("flow",e.flowing);while(e.flowing&&null!==t.read());}function K(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(Y,e,t))}function Y(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function X(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}T.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):L(this),null;if(t=I(t,e),0===t&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,f("length less than watermark",i)),e.ended||e.reading?(i=!1,f("reading or ended",i)):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=I(n,e))),r=t>0?K(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){k(this,new C("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?c:b;function u(t,e){f("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,h())}function c(){f("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",u);var l=$(n);t.on("drain",l);var d=!1;function h(){f("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function p(e){f("ondata");var r=t.write(e);f("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==X(i.pipes,t))&&!d&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function m(e){f("onerror",e),b(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function g(){t.removeListener("finish",v),b()}function v(){f("onfinish"),t.removeListener("close",g),b()}function b(){f("unpipe"),n.unpipe(t)}return n.on("data",p),E(t,"error",m),t.once("close",g),t.once("finish",v),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={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,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=X(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},T.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,f("on readable",i.length,i.reading),i.length?L(this):i.reading||r.nextTick(V,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(H,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(H,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,U(this,t)),t.paused=!1,this},T.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){f("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("57e2")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=K,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===m&&(m=n("f83c")),m(T,t,e)})}).call(this,n("c8ba"),n("4362"))},cfbd:function(t,e,n){"use strict";const r=n("3fb5"),i=n("bc12"),o=n("6283").DecoderBuffer,a=n("8360"),s=n("8b71");function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){a.call(this,"der",t)}function l(t,e){let n=t.readUInt8(e);if(t.isError(n))return n;const r=s.tagClass[n>>6],i=0===(32&n);if(31===(31&n)){let r=n;n=0;while(128===(128&r)){if(r=t.readUInt8(e),t.isError(r))return r;n<<=7,n|=127&r}}else n&=31;const o=s.tag[n];return{cls:r,primitive:i,tag:n,tagStr:o}}function f(t,e,n){let r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0===(128&r))return r;const i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(let o=0;o<i;o++){r<<=8;const e=t.readUInt8(n);if(t.isError(e))return e;r|=e}return r}t.exports=u,u.prototype.decode=function(t,e){return o.isDecoderBuffer(t)||(t=new o(t,e)),this.tree._decode(t,e)},r(c,a),c.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;const r=t.save(),i=l(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(r),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||n)},c.prototype._decodeTag=function(t,e,n){const r=l(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;let i=f(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!n&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');const o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},c.prototype._skipUntilEnd=function(t,e){for(;;){const n=l(t,e);if(t.isError(n))return n;const r=f(t,n.primitive,e);if(t.isError(r))return r;let i;if(i=n.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===n.tagStr)break}},c.prototype._decodeList=function(t,e,n,r){const i=[];while(!t.isEmpty()){const e=this._peekTag(t,"end");if(t.isError(e))return e;const o=n.decode(t,"der",r);if(t.isError(o)&&e)break;i.push(o)}return i},c.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");let n="";for(let t=0;t<e.length/2;t++)n+=String.fromCharCode(e.readUInt16BE(2*t));return n}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},c.prototype._decodeObjid=function(t,e,n){let r;const i=[];let o=0,a=0;while(!t.isEmpty())a=t.readUInt8(),o<<=7,o|=127&a,0===(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,u=i[0]%40;if(r=n?i:[s,u].concat(i.slice(1)),e){let t=e[r.join(" ")];void 0===t&&(t=e[r.join(".")]),void 0!==t&&(r=t)}return r},c.prototype._decodeTime=function(t,e){const n=t.raw().toString();let r,i,o,a,s,u;if("gentime"===e)r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),u=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),u=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},c.prototype._decodeInt=function(t,e){const n=t.raw();let r=new i(n);return e&&(r=e[r.toString(10)]||r),r},c.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},d010:function(t,e,n){"use strict";function r(t,e,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==t))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d0eb:function(t,e,n){(function(t){(function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(6).Buffer}catch(M){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l<s;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){while(this.length<t)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[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],f=[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 d(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;i=0|t.words[p],o=0|e.words[h],a=i*o+f,l+=a/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],h=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(t);p=p.idivn(h),n=p.isZero()?m+n:c[d-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!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&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){while(this.length<t.length)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)e=(0|n.words[a])-(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)e=(0|n.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],M=8191&k,E=k>>>13,O=0|a[6],T=8191&O,A=O>>>13,D=0|a[7],N=8191&D,R=D>>>13,P=0|a[8],I=8191&P,B=P>>>13,L=0|a[9],z=8191&L,j=L>>>13,F=0|s[0],$=8191&F,H=F>>>13,V=0|s[1],U=8191&V,q=V>>>13,W=0|s[2],K=8191&W,G=W>>>13,Y=0|s[3],X=8191&Y,Z=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,dt=lt>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(f,$),i=Math.imul(f,H),i=i+Math.imul(d,$)|0,o=Math.imul(d,H);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,$),i=Math.imul(p,H),i=i+Math.imul(m,$)|0,o=Math.imul(m,H),r=r+Math.imul(f,U)|0,i=i+Math.imul(f,q)|0,i=i+Math.imul(d,U)|0,o=o+Math.imul(d,q)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,$),i=Math.imul(v,H),i=i+Math.imul(b,$)|0,o=Math.imul(b,H),r=r+Math.imul(p,U)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(m,U)|0,o=o+Math.imul(m,q)|0,r=r+Math.imul(f,K)|0,i=i+Math.imul(f,G)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,G)|0;var bt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,$),i=Math.imul(w,H),i=i+Math.imul(_,$)|0,o=Math.imul(_,H),r=r+Math.imul(v,U)|0,i=i+Math.imul(v,q)|0,i=i+Math.imul(b,U)|0,o=o+Math.imul(b,q)|0,r=r+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,r=r+Math.imul(f,X)|0,i=i+Math.imul(f,Z)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Z)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(C,$),i=Math.imul(C,H),i=i+Math.imul(S,$)|0,o=Math.imul(S,H),r=r+Math.imul(w,U)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(_,U)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(v,K)|0,i=i+Math.imul(v,G)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(m,X)|0,o=o+Math.imul(m,Z)|0,r=r+Math.imul(f,Q)|0,i=i+Math.imul(f,tt)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(M,$),i=Math.imul(M,H),i=i+Math.imul(E,$)|0,o=Math.imul(E,H),r=r+Math.imul(C,U)|0,i=i+Math.imul(C,q)|0,i=i+Math.imul(S,U)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(f,nt)|0,i=i+Math.imul(f,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(T,$),i=Math.imul(T,H),i=i+Math.imul(A,$)|0,o=Math.imul(A,H),r=r+Math.imul(M,U)|0,i=i+Math.imul(M,q)|0,i=i+Math.imul(E,U)|0,o=o+Math.imul(E,q)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(C,G)|0,i=i+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Z)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(f,ot)|0,i=i+Math.imul(f,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,$),i=Math.imul(N,H),i=i+Math.imul(R,$)|0,o=Math.imul(R,H),r=r+Math.imul(T,U)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(A,U)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(M,K)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(S,X)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(f,ut)|0,i=i+Math.imul(f,ct)|0,i=i+Math.imul(d,ut)|0,o=o+Math.imul(d,ct)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(I,$),i=Math.imul(I,H),i=i+Math.imul(B,$)|0,o=Math.imul(B,H),r=r+Math.imul(N,U)|0,i=i+Math.imul(N,q)|0,i=i+Math.imul(R,U)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(T,K)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(A,K)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Z)|0,i=i+Math.imul(E,X)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,r=r+Math.imul(f,ft)|0,i=i+Math.imul(f,dt)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,dt)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(z,$),i=Math.imul(z,H),i=i+Math.imul(j,$)|0,o=Math.imul(j,H),r=r+Math.imul(I,U)|0,i=i+Math.imul(I,q)|0,i=i+Math.imul(B,U)|0,o=o+Math.imul(B,q)|0,r=r+Math.imul(N,K)|0,i=i+Math.imul(N,G)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(M,Q)|0,i=i+Math.imul(M,tt)|0,i=i+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0,r=r+Math.imul(f,pt)|0,i=i+Math.imul(f,mt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,mt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(z,U),i=Math.imul(z,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),r=r+Math.imul(I,K)|0,i=i+Math.imul(I,G)|0,i=i+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=i+Math.imul(M,rt)|0,i=i+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(z,K),i=Math.imul(z,G),i=i+Math.imul(j,K)|0,o=Math.imul(j,G),r=r+Math.imul(I,X)|0,i=i+Math.imul(I,Z)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(N,Q)|0,i=i+Math.imul(N,tt)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=i+Math.imul(M,at)|0,i=i+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(z,X),i=Math.imul(z,Z),i=i+Math.imul(j,X)|0,o=Math.imul(j,Z),r=r+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,r=r+Math.imul(N,nt)|0,i=i+Math.imul(N,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(T,ot)|0,i=i+Math.imul(T,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(M,ct)|0,i=i+Math.imul(E,ut)|0,o=o+Math.imul(E,ct)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(S,ft)|0,o=o+Math.imul(S,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(z,Q),i=Math.imul(z,tt),i=i+Math.imul(j,Q)|0,o=Math.imul(j,tt),r=r+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,i=i+Math.imul(B,nt)|0,o=o+Math.imul(B,rt)|0,r=r+Math.imul(N,ot)|0,i=i+Math.imul(N,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(T,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(M,ft)|0,i=i+Math.imul(M,dt)|0,i=i+Math.imul(E,ft)|0,o=o+Math.imul(E,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(z,nt),i=Math.imul(z,rt),i=i+Math.imul(j,nt)|0,o=Math.imul(j,rt),r=r+Math.imul(I,ot)|0,i=i+Math.imul(I,at)|0,i=i+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(N,ct)|0,i=i+Math.imul(R,ut)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(T,ft)|0,i=i+Math.imul(T,dt)|0,i=i+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0,r=r+Math.imul(M,pt)|0,i=i+Math.imul(M,mt)|0,i=i+Math.imul(E,pt)|0,o=o+Math.imul(E,mt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(z,ot),i=Math.imul(z,at),i=i+Math.imul(j,ot)|0,o=Math.imul(j,at),r=r+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(B,ut)|0,o=o+Math.imul(B,ct)|0,r=r+Math.imul(N,ft)|0,i=i+Math.imul(N,dt)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(T,pt)|0,i=i+Math.imul(T,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Dt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(z,ut),i=Math.imul(z,ct),i=i+Math.imul(j,ut)|0,o=Math.imul(j,ct),r=r+Math.imul(I,ft)|0,i=i+Math.imul(I,dt)|0,i=i+Math.imul(B,ft)|0,o=o+Math.imul(B,dt)|0,r=r+Math.imul(N,pt)|0,i=i+Math.imul(N,mt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,mt)|0;var Nt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(z,ft),i=Math.imul(z,dt),i=i+Math.imul(j,ft)|0,o=Math.imul(j,dt),r=r+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(B,pt)|0,o=o+Math.imul(B,mt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(z,pt),i=Math.imul(z,mt),i=i+Math.imul(j,pt)|0,o=Math.imul(j,mt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=Ct,u[8]=St,u[9]=kt,u[10]=Mt,u[11]=Et,u[12]=Ot,u[13]=Tt,u[14]=At,u[15]=Dt,u[16]=Nt,u[17]=Rt,u[18]=Pt,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,f=0|t.words[l],d=0|e.words[c],h=f*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new v;return r.mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?h(this,t,e):r<1024?m(this,t,e):g(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=n[l+h],m=r[l+h],g=n[l+h+a],v=r[l+h+a],b=f*g-d*v;v=f*v+d*g,g=b,n[l+h]=p+g,r[l+h]=m+v,n[l+h+a]=p-g,r[l+h+a]=m-v,h!==s&&(b=u*f-c*d,d=u*d+c*f,f=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var h=0;h<r;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length;r++,n=n.sqr())if(0!==e[r])break;if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return!1;var o=this.words[n];return!!(o&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)o=(0|this.words[i+n])+s,s=o>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,c=r.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var f=r.clone()._ishlnsubmul(i,1,c);0===f.negative&&(r=f,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++c;var l=n.clone(),f=e.clone();while(!e.isZero()){for(var d=0,h=1;0===(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0){e.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0){e.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0){n.iushrn(f);while(f-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},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){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,y),i(x,y),i(C,y),C.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}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 _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();l=new o(2*l*l).toRed(this);while(0!==this.pow(l,c).cmp(u))l.redIAdd(u);var f=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;while(0!==h.cmp(s)){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var a=r[0],s=0,u=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],f=c-1;f>=0;f--){var d=l>>f&1;a!==r[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,u++,(u===n||0===i&&0===f)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}c=26}return a},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,n("62e4")(t))},d113:function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var a=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);a.prototype.name=n.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"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 s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function u(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function c(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}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,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",u(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=c(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),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=i},d16a:function(t,e,n){var r=n("fc5e"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},d17b:function(t,e,n){t.exports=n("e372").Transform},d1c8:function(t,e,n){"use strict";const r=n("3fb5");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){let e;const n=this._reporterState,r=t instanceof o;if(e=r?t:new o(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(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,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d397:function(t,e,n){"use strict";function r(t){return void 0!==t&&null!==t}function i(t){var e=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return e.test(t)}e.__esModule=!0,e.isDef=r,e.isKorean=i},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d424:function(t,e,n){"use strict";var r=n("3fb5"),i=n("8707").Buffer,o=n("6430"),a=i.alloc(128),s=64;function u(t,e){o.call(this,"digest"),"string"===typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=i.concat([e,a],s));for(var n=this._ipad=i.allocUnsafe(s),r=this._opad=i.allocUnsafe(s),u=0;u<s;u++)n[u]=54^e[u],r[u]=92^e[u];this._hash=[n]}r(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d485:function(t,e,n){t.exports=o;var r=n("faa1").EventEmitter,i=n("3fb5");function o(){r.call(this)}i(o,r),o.Readable=n("e372"),o.Writable=n("2c63"),o.Duplex=n("0960"),o.Transform=n("d17b"),o.PassThrough=n("c2ae"),o.Stream=o,o.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"===typeof t.destroy&&t.destroy())}function c(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",c),t.on("error",c),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function u(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}u.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=u},d4ec:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},d6e6:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Hasher,i=e.x64,o=i.Word,a=i.WordArray,s=e.algo;function u(){return o.create.apply(o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],l=[];(function(){for(var t=0;t<80;t++)l[t]=u()})();var f=s.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],h=r.high,p=r.low,m=i.high,g=i.low,v=o.high,b=o.low,y=a.high,w=a.low,_=s.high,x=s.low,C=u.high,S=u.low,k=f.high,M=f.low,E=d.high,O=d.low,T=h,A=p,D=m,N=g,R=v,P=b,I=y,B=w,L=_,z=x,j=C,F=S,$=k,H=M,V=E,U=O,q=0;q<80;q++){var W,K,G=l[q];if(q<16)K=G.high=0|t[e+2*q],W=G.low=0|t[e+2*q+1];else{var Y=l[q-15],X=Y.high,Z=Y.low,J=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,Q=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),tt=l[q-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=l[q-7],at=ot.high,st=ot.low,ut=l[q-16],ct=ut.high,lt=ut.low;W=Q+st,K=J+at+(W>>>0<Q>>>0?1:0),W+=it,K=K+rt+(W>>>0<it>>>0?1:0),W+=lt,K=K+ct+(W>>>0<lt>>>0?1:0),G.high=K,G.low=W}var ft=L&j^~L&$,dt=z&F^~z&H,ht=T&D^T&R^D&R,pt=A&N^A&P^N&P,mt=(T>>>28|A<<4)^(T<<30|A>>>2)^(T<<25|A>>>7),gt=(A>>>28|T<<4)^(A<<30|T>>>2)^(A<<25|T>>>7),vt=(L>>>14|z<<18)^(L>>>18|z<<14)^(L<<23|z>>>9),bt=(z>>>14|L<<18)^(z>>>18|L<<14)^(z<<23|L>>>9),yt=c[q],wt=yt.high,_t=yt.low,xt=U+bt,Ct=V+vt+(xt>>>0<U>>>0?1:0),St=(xt=xt+dt,Ct=Ct+ft+(xt>>>0<dt>>>0?1:0),xt=xt+_t,Ct=Ct+wt+(xt>>>0<_t>>>0?1:0),xt=xt+W,Ct=Ct+K+(xt>>>0<W>>>0?1:0),gt+pt),kt=mt+ht+(St>>>0<gt>>>0?1:0);V=$,U=H,$=j,H=F,j=L,F=z,z=B+xt|0,L=I+Ct+(z>>>0<B>>>0?1:0)|0,I=R,B=P,R=D,P=N,D=T,N=A,A=xt+St|0,T=Ct+kt+(A>>>0<xt>>>0?1:0)|0}p=r.low=p+A,r.high=h+T+(p>>>0<A>>>0?1:0),g=i.low=g+N,i.high=m+D+(g>>>0<N>>>0?1:0),b=o.low=b+P,o.high=v+R+(b>>>0<P>>>0?1:0),w=a.low=w+B,a.high=y+I+(w>>>0<B>>>0?1:0),x=s.low=x+z,s.high=_+L+(x>>>0<z>>>0?1:0),S=u.low=S+F,u.high=C+j+(S>>>0<F>>>0?1:0),M=f.low=M+H,f.high=k+$+(M>>>0<H>>>0?1:0),O=d.low=O+U,d.high=E+V+(O>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var i=this._hash.toX32();return i},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(f),e.HmacSHA512=r._createHmacHelper(f)}(),t.SHA512}))},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,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),u=o("species"),c=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var p=o(t),m=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),g=m&&!i((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!m||!g||"replace"===t&&(!c||!l||d)||"split"===t&&!h){var v=/./[p],b=n(p,""[t],(function(t,e,n,r,i){return e.exec===a?m&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=b[0],w=b[1];r(String.prototype,t,y),r(RegExp.prototype,p,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}f&&s(RegExp.prototype[p],"sham",!0)}},d7d1:function(t,e,n){"use strict";var r;(function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",u="\\d{3}",c="\\d{4}",l="[^\\s]+",f=/\[([^]*?)\]/gm,d=function(){};function h(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function m(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function g(t,e){t=String(t),e=e||2;while(t.length<e)t="0"+t;return t}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b=["January","February","March","April","May","June","July","August","September","October","November","December"],y=p(b,3),w=p(v,3);o.i18n={dayNamesShort:w,dayNames:v,monthNamesShort:y,monthNames:b,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10)*t%10]}};var _={D:function(t){return t.getDay()},DD:function(t){return g(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return g(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return g(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return g(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return g(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return g(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return g(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return g(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return g(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return g(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return g(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+g(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={d:[s,function(t,e){t.day=e}],Do:[s+l,function(t,e){t.day=parseInt(e,10)}],M:[s,function(t,e){t.month=e-1}],yy:[s,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[s,function(t,e){t.hour=e}],m:[s,function(t,e){t.minute=e}],s:[s,function(t,e){t.second=e}],yyyy:[c,function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:[u,function(t,e){t.millisecond=e}],D:[s,d],ddd:[l,d],MMM:[l,m("monthNamesShort")],MMMM:[l,m("monthNames")],a:[l,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,r=(e+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(t,e,n){var r=n||o.i18n;if("number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=o.masks[e]||e||o.masks["default"];var i=[];return e=e.replace(f,(function(t,e){return i.push(e),"@@@"})),e=e.replace(a,(function(e){return e in _?_[e](t,r):e.slice(1,e.length-1)})),e.replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(t,e,n){var r=n||o.i18n;if("string"!==typeof e)throw new Error("Invalid format in fecha.parse");if(e=o.masks[e]||e,t.length>1e3)return null;var i={},s=[],u=[];e=e.replace(f,(function(t,e){return u.push(e),"@@@"}));var c=h(e).replace(a,(function(t){if(x[t]){var e=x[t];return s.push(e[1]),"("+e[0]+")"}return t}));c=c.replace(/@@@/g,(function(){return u.shift()}));var l=t.match(new RegExp(c,"i"));if(!l)return null;for(var d=1;d<l.length;d++)s[d-1](i,l[d],r);var p,m=new Date;return!0===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12===+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},t.exports?t.exports=o:(r=function(){return o}.call(e,n,e,t),void 0===r||(t.exports=r))})()},d81d:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=n("ae40"),s=o("map"),u=a("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d940:function(t,e,n){"use strict";e.__esModule=!0,e.validateRangeInOneMonth=e.extractTimeFormat=e.extractDateFormat=e.nextYear=e.prevYear=e.nextMonth=e.prevMonth=e.changeYearMonthAndClampDate=e.timeWithinRange=e.limitTimeRange=e.clearMilliseconds=e.clearTime=e.modifyWithTimeString=e.modifyTime=e.modifyDate=e.range=e.getRangeMinutes=e.getMonthDays=e.getPrevMonthLastDays=e.getRangeHours=e.getWeekNumber=e.getStartDateOfMonth=e.nextDate=e.prevDate=e.getFirstDayOfMonth=e.getDayCountOfYear=e.getDayCountOfMonth=e.parseDate=e.formatDate=e.isDateObject=e.isDate=e.toDate=e.getI18nSettings=void 0;var r=n("d7d1"),i=a(r),o=n("4897");function a(t){return t&&t.__esModule?t:{default:t}}var s=["sun","mon","tue","wed","thu","fri","sat"],u=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],c=function(t,e){for(var n=[],r=t;r<=e;r++)n.push(r);return n},l=e.getI18nSettings=function(){return{dayNamesShort:s.map((function(t){return(0,o.t)("el.datepicker.weeks."+t)})),dayNames:s.map((function(t){return(0,o.t)("el.datepicker.weeks."+t)})),monthNamesShort:u.map((function(t){return(0,o.t)("el.datepicker.months."+t)})),monthNames:u.map((function(t,e){return(0,o.t)("el.datepicker.month"+(e+1))})),amPm:["am","pm"]}},f=e.toDate=function(t){return d(t)?new Date(t):null},d=e.isDate=function(t){return null!==t&&void 0!==t&&(!isNaN(new Date(t).getTime())&&!Array.isArray(t))},h=(e.isDateObject=function(t){return t instanceof Date},e.formatDate=function(t,e){return t=f(t),t?i.default.format(t,e||"yyyy-MM-dd",l()):""},e.parseDate=function(t,e){return i.default.parse(t,e||"yyyy-MM-dd",l())}),p=e.getDayCountOfMonth=function(t,e){return 3===e||5===e||8===e||10===e?30:1===e?t%4===0&&t%100!==0||t%400===0?29:28:31},m=(e.getDayCountOfYear=function(t){var e=t%400===0||t%100!==0&&t%4===0;return e?366:365},e.getFirstDayOfMonth=function(t){var e=new Date(t.getTime());return e.setDate(1),e.getDay()},e.prevDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)});e.nextDate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},e.getStartDateOfMonth=function(t,e){var n=new Date(t,e,1),r=n.getDay();return m(n,0===r?7:r)},e.getWeekNumber=function(t){if(!d(t))return null;var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},e.getRangeHours=function(t){var e=[],n=[];if((t||[]).forEach((function(t){var e=t.map((function(t){return t.getHours()}));n=n.concat(c(e[0],e[1]))})),n.length)for(var r=0;r<24;r++)e[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)e[i]=!1;return e},e.getPrevMonthLastDays=function(t,e){if(e<=0)return[];var n=new Date(t.getTime());n.setDate(0);var r=n.getDate();return v(e).map((function(t,n){return r-(e-n-1)}))},e.getMonthDays=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0),n=e.getDate();return v(n).map((function(t,e){return e+1}))};function g(t,e,n,r){for(var i=e;i<n;i++)t[i]=r}e.getRangeMinutes=function(t,e){var n=new Array(60);return t.length>0?t.forEach((function(t){var r=t[0],i=t[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),u=i.getMinutes();o===e&&s!==e?g(n,a,60,!0):o===e&&s===e?g(n,a,u+1,!0):o!==e&&s===e?g(n,0,u+1,!0):o<e&&s>e&&g(n,0,60,!0)})):g(n,0,60,!0),n};var v=e.range=function(t){return Array.apply(null,{length:t}).map((function(t,e){return e}))},b=e.modifyDate=function(t,e,n,r){return new Date(e,n,r,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},y=e.modifyTime=function(t,e,n,r){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n,r,t.getMilliseconds())},w=(e.modifyWithTimeString=function(t,e){return null!=t&&e?(e=h(e,"HH:mm:ss"),y(t,e.getHours(),e.getMinutes(),e.getSeconds())):t},e.clearTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.clearMilliseconds=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0)},e.limitTimeRange=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===e.length)return t;var r=function(t){return i.default.parse(i.default.format(t,n),n)},o=r(t),a=e.map((function(t){return t.map(r)}));if(a.some((function(t){return o>=t[0]&&o<=t[1]})))return t;var s=a[0][0],u=a[0][0];a.forEach((function(t){s=new Date(Math.min(t[0],s)),u=new Date(Math.max(t[1],s))}));var c=o<s?s:u;return b(c,t.getFullYear(),t.getMonth(),t.getDate())}),_=(e.timeWithinRange=function(t,e,n){var r=w(t,e,n);return r.getTime()===t.getTime()},e.changeYearMonthAndClampDate=function(t,e,n){var r=Math.min(t.getDate(),p(e,n));return b(t,e,n,r)});e.prevMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 0===n?_(t,e-1,11):_(t,e,n-1)},e.nextMonth=function(t){var e=t.getFullYear(),n=t.getMonth();return 11===n?_(t,e+1,0):_(t,e,n+1)},e.prevYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n-e,r)},e.nextYear=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.getFullYear(),r=t.getMonth();return _(t,n+e,r)},e.extractDateFormat=function(t){return t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},e.extractTimeFormat=function(t){return t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},e.validateRangeInOneMonth=function(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}},da3e:function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;while(c.length>f)n=i(r,e=c[f++]),void 0!==n&&u(l,e,n);return l}})},dc14:function(t,e,n){"use strict";(function(e,r){var i=n("966d");function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){B(e,t)}}t.exports=y;var a,s=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=b;var u=Object.create(n("3a7c"));u.inherits=n("3fb5");var c={deprecate:n("b7d1")},l=n("429b"),f=n("8707").Buffer,d=r.Uint8Array||function(){};function h(t){return f.from(t)}function p(t){return f.isBuffer(t)||t instanceof d}var m,g=n("4681");function v(){}function b(t,e){a=a||n("b19a"),t=t||{};var r=e instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:u,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 c=!1===t.decodeStrings;this.decodeStrings=!c,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 y(t){if(a=a||n("b19a"),!m.call(y,this)&&!(this instanceof a))return new y(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),l.call(this)}function w(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}function _(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}function x(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=f.from(e,n)),e}function C(t,e,n,r,i,o){if(!n){var a=x(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else S(t,e,!1,s,r,i,o);return u}function S(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function k(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(P,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),P(t,e))}function M(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function E(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(M(n),e)k(t,n,r,e,i);else{var o=D(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||A(t,n),r?s(O,t,n,o,i):O(t,n,o,i)}}function O(t,e,n,r){n||T(t,e),e.pendingcb--,r(),P(t,e)}function T(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function A(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),a=e.corkedRequestsFree;a.entry=n;var s=0,u=!0;while(n)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,S(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{while(n){var c=n.chunk,l=n.encoding,f=n.callback,d=e.objectMode?1:c.length;if(S(t,e,!1,d,c,l,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function D(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function R(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(N,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function P(t,e){var n=D(e);return n&&(R(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function I(t,e,n){e.ending=!0,P(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function B(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}u.inherits(y,l),b.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(b.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!m.call(this,t)||this===y&&(t&&t._writableState instanceof b)}})):m=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&p(t);return o&&!f.isBuffer(t)&&(t=h(t)),"function"===typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=v),r.ended?w(this,n):(o||_(this,r,t,n))&&(r.pendingcb++,i=C(this,r,o,t,e,n)),i},y.prototype.cork=function(){var t=this._writableState;t.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||A(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||I(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n("4362"),n("c8ba"))},dcdc:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=83)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},4:function(t,e){t.exports=n("d010")},83:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-checkbox",class:[t.border&&t.checkboxSize?"el-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),t.trueLabel||t.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=null,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var t=this.$parent;while(t){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},u=s,c=n(0),l=Object(c["a"])(u,r,i,!1,null,null,null);l.options.__file="packages/checkbox/src/checkbox.vue";var f=l.exports;f.install=function(t){t.component(f.name,f)};e["default"]=f}})},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var d=r[f],h=d&&d.prototype;if(h){if(h[u]!==l)try{a(h,u,l)}catch(m){h[u]=l}if(h[c]||a(h,c,f),i[f])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(m){h[p]=o[p]}}}},df2f:function(t,e,n){(function(e,r){t.exports=r(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=n.Hasher,o=e.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1}))},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(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,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},dfe5:function(t,e){},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),u=n("9bf2").f,c=n("e893"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new l(t):void 0===t?l():l(t);return""===t&&(f[e]=!0),e};c(d,l);var h=d.prototype=l.prototype;h.constructor=d;var p=h.toString,m="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(f,t))return"";var n=m?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e07b:function(t,e,n){var r=n("5a76"),i=n("b5ca"),o=n("69f2"),a=n("8707").Buffer,s=n("7d2a"),u=n("9f9d"),c=n("8be6"),l=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,n){var r=h(t),i="sha512"===t||"sha384"===t?128:64;e.length>i?e=r(e):e.length<i&&(e=a.concat([e,l],i));for(var o=a.allocUnsafe(i+f[t]),s=a.allocUnsafe(i+f[t]),u=0;u<i;u++)o[u]=54^e[u],s[u]=92^e[u];var c=a.allocUnsafe(i+n+4);o.copy(c,0,0,i),this.ipad1=c,this.ipad2=o,this.opad=s,this.alg=t,this.blocksize=i,this.hash=r,this.size=f[t]}function h(t){function e(e){return o(t).update(e).digest()}function n(t){return(new i).update(t).digest()}return"rmd160"===t||"ripemd160"===t?n:"md5"===t?r:e}function p(t,e,n,r,i){s(n,r),t=c(t,u,"Password"),e=c(e,u,"Salt"),i=i||"sha1";var o=new d(i,t,e.length),l=a.allocUnsafe(r),h=a.allocUnsafe(e.length+4);e.copy(h,0,0,e.length);for(var p=0,m=f[i],g=Math.ceil(r/m),v=1;v<=g;v++){h.writeUInt32BE(v,e.length);for(var b=o.run(h,o.ipad1),y=b,w=1;w<n;w++){y=o.run(y,o.ipad2);for(var _=0;_<m;_++)b[_]^=y[_]}b.copy(l,p),p+=m}return l}d.prototype.run=function(t,e){t.copy(e,this.blocksize);var n=this.hash(e);return n.copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=p},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e198:function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},e1d3:function(t,e,n){(function(e){var r=n("3337"),i=n("37e6");t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(t,n,r){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(r&&i.length<r){var o=new e(r-i.length);o.fill(0),i=e.concat([o,i])}return n?i.toString(n):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,n,r){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var i=this.curve.keyFromPublic(t).getPublic(),o=i.mul(this.keys.getPrivate()).getX();return s(o,r,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,t)},a.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,n){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var r=new i(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n("b639").Buffer)},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e34a:function(t,e,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("4b8b")((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return c&&p.NEED&&u(t)&&!o(t,r)&&l(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},e372:function(t,e,n){e=t.exports=n("ad71"),e.Stream=e,e.Readable=e,e.Writable=n("dc14"),e.Duplex=n("b19a"),e.Transform=n("27bf"),e.PassThrough=n("780f")},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),u=i((function(){a(1)})),c=!s||u;r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e444:function(t,e){t.exports=!0},e450:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=114)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},10:function(t,e){t.exports=n("f3ad")},114:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["el-input-number",t.inputNumberSize?"el-input-number--"+t.inputNumberSize:"",{"is-disabled":t.inputNumberDisabled},{"is-without-controls":!t.controls},{"is-controls-right":t.controlsAtRight}],on:{dragstart:function(t){t.preventDefault()}}},[t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":t.minDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.decrease(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-down":"minus")})]):t._e(),t.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:t.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":t.maxDisabled},attrs:{role:"button"},on:{keydown:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.increase(e)}}},[n("i",{class:"el-icon-"+(t.controlsAtRight?"arrow-up":"plus")})]):t._e(),n("el-input",{ref:"input",attrs:{value:t.displayValue,placeholder:t.placeholder,disabled:t.inputNumberDisabled,size:t.inputNumberSize,max:t.max,min:t.min,name:t.name,label:t.label},on:{blur:t.handleBlur,focus:t.handleFocus,input:t.handleInput,change:t.handleInputChange},nativeOn:{keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.increase(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.decrease(e))}]}})],1)},i=[];r._withStripped=!0;var o=n(10),a=n.n(o),s=n(22),u=n.n(s),c=n(30),l={name:"ElInputNumber",mixins:[u()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:c["a"]},components:{ElInput:a.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(t){return t>=0&&t===parseInt(t,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(t){var e=void 0===t?t:Number(t);if(void 0!==e){if(isNaN(e))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);e=Math.round(e/this.step)*r*this.step/r}void 0!==this.precision&&(e=this.toPrecision(e,this.precision))}e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var t=this.value,e=this.step,n=this.getPrecision,r=this.precision,i=n(e);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(t),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var t=this.currentValue;if("number"===typeof t){if(this.stepStrictly){var e=this.getPrecision(this.step),n=Math.pow(10,e);t=Math.round(t/this.step)*n*this.step/n}void 0!==this.precision&&(t=t.toFixed(this.precision))}return t}},methods:{toPrecision:function(t,e){return void 0===e&&(e=this.numPrecision),parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e))},getPrecision:function(t){if(void 0===t)return 0;var e=t.toString(),n=e.indexOf("."),r=0;return-1!==n&&(r=e.length-n-1),r},_increase:function(t,e){if("number"!==typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t+n*e)/n)},_decrease:function(t,e){if("number"!==typeof t&&void 0!==t)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*t-n*e)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var t=this.value||0,e=this._increase(t,this.step);this.setCurrentValue(e)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var t=this.value||0,e=this._decrease(t,this.step);this.setCurrentValue(e)}},handleBlur:function(t){this.$emit("blur",t)},handleFocus:function(t){this.$emit("focus",t)},setCurrentValue:function(t){var e=this.currentValue;"number"===typeof t&&void 0!==this.precision&&(t=this.toPrecision(t,this.precision)),t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),e!==t&&(this.userInput=null,this.$emit("input",t),this.$emit("change",t,e),this.currentValue=t)},handleInput:function(t){this.userInput=t},handleInputChange:function(t){var e=""===t?void 0:Number(t);isNaN(e)&&""!==t||this.setCurrentValue(e),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var t=this.$refs.input.$refs.input;t.setAttribute("role","spinbutton"),t.setAttribute("aria-valuemax",this.max),t.setAttribute("aria-valuemin",this.min),t.setAttribute("aria-valuenow",this.currentValue),t.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var t=this.$refs.input.$refs.input;t.setAttribute("aria-valuenow",this.currentValue)}}},f=l,d=n(0),h=Object(d["a"])(f,r,i,!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var p=h.exports;p.install=function(t){t.component(p.name,p)};e["default"]=p},2:function(t,e){t.exports=n("5924")},22:function(t,e){t.exports=n("12f2")},30:function(t,e,n){"use strict";var r=n(2);e["a"]={bind:function(t,e,n){var i=null,o=void 0,a=function(){return n.context[e.expression].apply()},s=function(){Date.now()-o<100&&a(),clearInterval(i),i=null};Object(r["on"])(t,"mousedown",(function(t){0===t.button&&(o=Date.now(),Object(r["once"])(document,"mouseup",s),clearInterval(i),i=setInterval(a,100))}))}}}})},e452:function(t,e,n){"use strict";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(t){for(var e=t.childNodes.length-1;e>=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(e){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[e].concat(o)),t.dispatchEvent?t.dispatchEvent(r):t.fireEvent("on"+e,r),t},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},e.default=r.Utils},e507:function(t,e,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e538:function(t,e,n){var r=n("b622");e.f=r},e562:function(t,e,n){(function(e){(function(){"use strict";var n=function(t){if(null===t)return"null";if(void 0===t)return"undefined";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(t)},i=function(t,e){var n=Array.prototype.slice.call(t);return n.sort(e)},o=function(t,e){return a((function(n,r){return t.eq(e(n),e(r))}))},a=function(t){return{eq:t}},s=a((function(t,e){return t===e})),u=s,c=function(t){return a((function(e,n){if(e.length!==n.length)return!1;for(var r=e.length,i=0;i<r;i++)if(!t.eq(e[i],n[i]))return!1;return!0}))},l=function(t,e){return o(c(t),(function(t){return i(t,e)}))},f=function(t){return a((function(e,n){var r=Object.keys(e),i=Object.keys(n);if(!l(u).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!t.eq(e[s],n[s]))return!1}return!0}))},d=a((function(t,e){if(t===e)return!0;var i=n(t),o=n(e);return i===o&&(r(i)?t===e:"array"===i?c(d).eq(t,e):"object"===i&&f(d).eq(t,e))})),h=function(){},p=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},m=function(t,e){return function(n){return t(e(n))}},g=function(t){return function(){return t}},v=function(t){return t};function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.concat(n);return t.apply(null,i)}}var y=function(t){return function(e){return!t(e)}},w=function(t){return function(){throw new Error(t)}},_=function(t){t()},x=g(!1),C=g(!0),S=function(){return k},k=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:x,isSome:x,isNone:C,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:n,orThunk:e,map:S,each:h,bind:S,exists:x,forall:C,filter:S,equals:t,equals_:t,toArray:function(){return[]},toString:g("none()")};return r}(),M=function(t){var e=g(t),n=function(){return i},r=function(e){return e(t)},i={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:C,isNone:x,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return M(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?i:k},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(x,(function(e){return n(t,e)}))}};return i},E=function(t){return null===t||void 0===t?k:M(t)},O={some:M,none:S,from:E},T=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},A=function(t){return function(e){return T(e)===t}},D=function(t){return function(e){return typeof e===t}},N=function(t){return function(e){return t===e}},R=A("string"),P=A("object"),I=A("array"),B=N(null),L=D("boolean"),z=N(void 0),j=function(t){return null===t||void 0===t},F=function(t){return!j(t)},$=D("function"),H=D("number"),V=Array.prototype.slice,U=Array.prototype.indexOf,q=Array.prototype.push,W=function(t,e){return U.call(t,e)},K=function(t,e){var n=W(t,e);return-1===n?O.none():O.some(n)},G=function(t,e){return W(t,e)>-1},Y=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(e(i,n))return!0}return!1},X=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},Z=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];e(i,n)}},J=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];e(r,n)}},Q=function(t,e){for(var n=[],r=[],i=0,o=t.length;i<o;i++){var a=t[i],s=e(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},tt=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];e(o,r)&&n.push(o)}return n},et=function(t,e,n){return J(t,(function(t){n=e(n,t)})),n},nt=function(t,e,n){return Z(t,(function(t){n=e(n,t)})),n},rt=function(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(e(o,r))return O.some(o);if(n(o,r))break}return O.none()},it=function(t,e){return rt(t,e,x)},ot=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(e(i,n))return O.some(n)}return O.none()},at=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!I(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);q.apply(e,t[n])}return e},st=function(t,e){return at(X(t,e))},ut=function(t,e){for(var n=0,r=t.length;n<r;++n){var i=t[n];if(!0!==e(i,n))return!1}return!0},ct=function(t){var e=V.call(t,0);return e.reverse(),e},lt=function(t,e){return tt(t,(function(t){return!G(e,t)}))},ft=function(t,e){for(var n={},r=0,i=t.length;r<i;r++){var o=t[r];n[String(o)]=e(o,r)}return n},dt=function(t,e){var n=V.call(t,0);return n.sort(e),n},ht=function(t,e){return e>=0&&e<t.length?O.some(t[e]):O.none()},pt=function(t){return ht(t,0)},mt=function(t){return ht(t,t.length-1)},gt=$(Array.from)?Array.from:function(t){return V.call(t)},vt=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return O.none()},bt=Object.keys,yt=Object.hasOwnProperty,wt=function(t,e){for(var n=bt(t),r=0,i=n.length;r<i;r++){var o=n[r],a=t[o];e(a,o)}},_t=function(t,e){return xt(t,(function(t,n){return{k:n,v:e(t,n)}}))},xt=function(t,e){var n={};return wt(t,(function(t,r){var i=e(t,r);n[i.k]=i.v})),n},Ct=function(t){return function(e,n){t[n]=e}},St=function(t,e,n,r){var i={};return wt(t,(function(t,i){(e(t,i)?n:r)(t,i)})),i},kt=function(t,e){var n={},r={};return St(t,e,Ct(n),Ct(r)),{t:n,f:r}},Mt=function(t,e){var n={};return St(t,e,Ct(n),h),n},Et=function(t,e){var n=[];return wt(t,(function(t,r){n.push(e(t,r))})),n},Ot=function(t){return Et(t,(function(t){return t}))},Tt=function(t,e){return At(t,e)?O.from(t[e]):O.none()},At=function(t,e){return yt.call(t,e)},Dt=function(t,e){return At(t,e)&&void 0!==t[e]&&null!==t[e]},Nt=function(t,e,n){return void 0===n&&(n=d),f(n).eq(t,e)},Rt=Array.isArray,Pt=function(t){if(Rt(t))return t;for(var e=[],n=0,r=t.length;n<r;n++)e[n]=t[n];return e},It=function(t,e,n){var r,i;if(!t)return!1;if(n=n||t,void 0!==t.length){for(r=0,i=t.length;r<i;r++)if(!1===e.call(n,t[r],r,t))return!1}else for(r in t)if(t.hasOwnProperty(r)&&!1===e.call(n,t[r],r,t))return!1;return!0},Bt=function(t,e){var n=[];return It(t,(function(r,i){n.push(e(r,i,t))})),n},Lt=function(t,e){var n=[];return It(t,(function(r,i){e&&!e(r,i,t)||n.push(r)})),n},zt=function(t,e){if(t)for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},jt=function(t,e,n,r){for(var i=z(n)?t[0]:n,o=0;o<t.length;o++)i=e.call(r,i,t[o],o);return i},Ft=function(t,e,n){var r,i;for(r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return r;return-1},$t=function(t){return t[t.length-1]},Ht=function(){return Ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ht.apply(this,arguments)};function Vt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function Ut(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var qt=function(t){var e,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,e=t.apply(null,r)),e}},Wt=function(t,e,n,r){var i=t.isiOS()&&!0===/ipad/i.test(n),o=t.isiOS()&&!i,a=t.isiOS()||t.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),c=o||a&&!u,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!c&&!u&&!l;return{isiPad:g(i),isiPhone:g(o),isTablet:g(u),isPhone:g(c),isTouch:g(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:g(l),isDesktop:g(f)}},Kt=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},Gt=function(t,e){var n=Kt(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return Zt(r(1),r(2))},Yt=function(t,e){var n=String(e).toLowerCase();return 0===t.length?Xt():Gt(t,n)},Xt=function(){return Zt(0,0)},Zt=function(t,e){return{major:t,minor:e}},Jt={nu:Zt,detect:Yt,unknown:Xt},Qt=function(t,e){var n=String(e).toLowerCase();return it(t,(function(t){return t.search(n)}))},te=function(t,e){return Qt(t,e).map((function(t){var n=Jt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},ee=function(t,e){return Qt(t,e).map((function(t){var n=Jt.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},ne={detectBrowser:te,detectOs:ee},re=function(t,e){return t.substring(e)},ie=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},oe=function(t,e){return se(t,e)?re(t,e.length):t},ae=function(t,e){return-1!==t.indexOf(e)},se=function(t,e){return ie(t,e,0)},ue=function(t){return function(e){return e.replace(t,"")}},ce=ue(/^\s+|\s+$/g),le=ue(/^\s+/g),fe=ue(/\s+$/g),de=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,he=function(t){return function(e){return ae(e,t)}},pe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return ae(t,"edge/")&&ae(t,"chrome")&&ae(t,"safari")&&ae(t,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,de],search:function(t){return ae(t,"chrome")&&!ae(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return ae(t,"msie")||ae(t,"trident")}},{name:"Opera",versionRegexes:[de,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:he("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:he("firefox")},{name:"Safari",versionRegexes:[de,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(ae(t,"safari")||ae(t,"mobile/"))&&ae(t,"applewebkit")}}],me=[{name:"Windows",search:he("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return ae(t,"iphone")||ae(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:he("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:he("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:he("linux"),versionRegexes:[]},{name:"Solaris",search:he("sunos"),versionRegexes:[]},{name:"FreeBSD",search:he("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:he("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ge={browsers:g(pe),oses:g(me)},ve="Edge",be="Chrome",ye="IE",we="Opera",_e="Firefox",xe="Safari",Ce=function(){return Se({current:void 0,version:Jt.unknown()})},Se=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(ve),isChrome:r(be),isIE:r(ye),isOpera:r(we),isFirefox:r(_e),isSafari:r(xe)}},ke={unknown:Ce,nu:Se,edge:g(ve),chrome:g(be),ie:g(ye),opera:g(we),firefox:g(_e),safari:g(xe)},Me="Windows",Ee="iOS",Oe="Android",Te="Linux",Ae="OSX",De="Solaris",Ne="FreeBSD",Re="ChromeOS",Pe=function(){return Ie({current:void 0,version:Jt.unknown()})},Ie=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(Me),isiOS:r(Ee),isAndroid:r(Oe),isOSX:r(Ae),isLinux:r(Te),isSolaris:r(De),isFreeBSD:r(Ne),isChromeOS:r(Re)}},Be={unknown:Pe,nu:Ie,windows:g(Me),ios:g(Ee),android:g(Oe),linux:g(Te),osx:g(Ae),solaris:g(De),freebsd:g(Ne),chromeos:g(Re)},Le=function(t,e){var n=ge.browsers(),r=ge.oses(),i=ne.detectBrowser(n,t).fold(ke.unknown,ke.nu),o=ne.detectOs(r,t).fold(Be.unknown,Be.nu),a=Wt(o,i,t,e);return{browser:i,os:o,deviceType:a}},ze={detect:Le},je=function(t){return window.matchMedia(t).matches},Fe=qt((function(){return ze.detect(navigator.userAgent,je)})),$e=function(){return Fe()},He=navigator.userAgent,Ve=$e(),Ue=Ve.browser,qe=Ve.os,We=Ve.deviceType,Ke=/WebKit/.test(He)&&!Ue.isEdge(),Ge="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Ye=-1!==He.indexOf("Windows Phone"),Xe={opera:Ue.isOpera(),webkit:Ke,ie:!(!Ue.isIE()&&!Ue.isEdge())&&Ue.version.major,gecko:Ue.isFirefox(),mac:qe.isOSX()||qe.isiOS(),iOS:We.isiPad()||We.isiPhone(),android:qe.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ue.isIE()?document.documentMode||7:10,fileApi:Ge,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ue.isIE(),desktop:We.isDesktop(),windowsPhone:Ye,browser:{current:Ue.current,version:Ue.version,isChrome:Ue.isChrome,isEdge:Ue.isEdge,isFirefox:Ue.isFirefox,isIE:Ue.isIE,isOpera:Ue.isOpera,isSafari:Ue.isSafari},os:{current:qe.current,version:qe.version,isAndroid:qe.isAndroid,isChromeOS:qe.isChromeOS,isFreeBSD:qe.isFreeBSD,isiOS:qe.isiOS,isLinux:qe.isLinux,isOSX:qe.isOSX,isSolaris:qe.isSolaris,isWindows:qe.isWindows},deviceType:{isDesktop:We.isDesktop,isiPad:We.isiPad,isiPhone:We.isiPhone,isPhone:We.isPhone,isTablet:We.isTablet,isTouch:We.isTouch,isWebView:We.isWebView}},Ze=/^\s*|\s*$/g,Je=function(t){return null===t||void 0===t?"":(""+t).replace(Ze,"")},Qe=function(t,e){return e?!("array"!==e||!Rt(t))||typeof t===e:void 0!==t},tn=function(t,e,n){var r;t=t||[],e=e||",","string"===typeof t&&(t=t.split(e)),n=n||{},r=t.length;while(r--)n[t[r]]={};return n},en=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},nn=function(t,e,n){var r,i,o,a=this,s=0;t=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(t);var u=t[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(t[3].replace(/\.\w+$/,""),n);if(!c[u]){if("static"===t[2])return c[u]=e,void(this.onCreate&&this.onCreate(t[2],t[3],c[u]));e[u]||(e[u]=function(){},s=1),c[u]=e[u],a.extend(c[u].prototype,e),t[5]&&(r=a.resolve(t[5]).prototype,i=t[5].match(/\.(\w+)$/i)[1],o=c[u],c[u]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},c[u].prototype[u]=c[u],a.each(r,(function(t,e){c[u].prototype[e]=r[e]})),a.each(e,(function(t,e){r[e]?c[u].prototype[e]=function(){return this.parent=r[e],t.apply(this,arguments)}:e!==u&&(c[u].prototype[e]=t)}))),a.each(e.static,(function(t,e){c[u][e]=t}))}},rn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];void 0!==a&&(t[o]=a)}}return t},on=function(t,e,n,r){r=r||this,t&&(n&&(t=t[n]),It(t,(function(t,i){if(!1===e.call(r,t,i,n))return!1;on(t,e,n,r)})))},an=function(t,e){var n,r;for(e=e||window,t=t.split("."),n=0;n<t.length;n++)r=t[n],e[r]||(e[r]={}),e=e[r];return e},sn=function(t,e){var n,r;for(e=e||window,t=t.split("."),n=0,r=t.length;n<r;n++)if(e=e[t[n]],!e)break;return e},un=function(t,e){return!t||Qe(t,"array")?t:Bt(t.split(e||","),Je)},cn=function(t){var e=Xe.cacheSuffix;return e&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t},ln={trim:Je,isArray:Rt,is:Qe,toArray:Pt,makeMap:tn,each:It,map:Bt,grep:Lt,inArray:zt,hasOwn:en,extend:rn,create:nn,walk:on,createNS:an,resolve:sn,explode:un,_addCacheSuffix:cn},fn=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return pn(r.childNodes[0])},dn=function(t,e){var n=e||document,r=n.createElement(t);return pn(r)},hn=function(t,e){var n=e||document,r=n.createTextNode(t);return pn(r)},pn=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},mn=function(t,e,n){return O.from(t.dom.elementFromPoint(e,n)).map(pn)},gn={fromHtml:fn,fromTag:dn,fromText:hn,fromDom:pn,fromPoint:mn},vn=function(t,e){var n=[],r=function(t){return n.push(t),e(t)},i=e(t);do{i=i.bind(r)}while(i.isSome());return n},bn=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},yn=function(t,e){return bn(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},wn=8,_n=9,xn=11,Cn=1,Sn=3,kn=function(t,e){var n=t.dom;if(n.nodeType!==Cn)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},Mn=function(t){return t.nodeType!==Cn&&t.nodeType!==_n&&t.nodeType!==xn||0===t.childElementCount},En=function(t,e){var n=void 0===e?document:e.dom;return Mn(n)?[]:X(n.querySelectorAll(t),gn.fromDom)},On=function(t,e){var n=void 0===e?document:e.dom;return Mn(n)?O.none():O.from(n.querySelector(t)).map(gn.fromDom)},Tn=function(t,e){return t.dom===e.dom},An=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},Dn=function(t,e){return yn(t.dom,e.dom)},Nn=function(t,e){return $e().browser.isIE()?Dn(t,e):An(t,e)},Rn=("undefined"!==typeof window?window:Function("return this;")(),function(t){var e=t.dom.nodeName;return e.toLowerCase()}),Pn=function(t){return t.dom.nodeType},In=function(t){return function(e){return Pn(e)===t}},Bn=function(t){return Pn(t)===wn||"#comment"===Rn(t)},Ln=In(Cn),zn=In(Sn),jn=In(_n),Fn=In(xn),$n=function(t){return gn.fromDom(t.dom.ownerDocument)},Hn=function(t){return jn(t)?t:$n(t)},Vn=function(t){return gn.fromDom(Hn(t).dom.documentElement)},Un=function(t){return gn.fromDom(Hn(t).dom.defaultView)},qn=function(t){return O.from(t.dom.parentNode).map(gn.fromDom)},Wn=function(t,e){var n=$(e)?e:x,r=t.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=gn.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Kn=function(t){var e=function(e){return tt(e,(function(e){return!Tn(t,e)}))};return qn(t).map(Jn).map(e).getOr([])},Gn=function(t){return O.from(t.dom.previousSibling).map(gn.fromDom)},Yn=function(t){return O.from(t.dom.nextSibling).map(gn.fromDom)},Xn=function(t){return ct(vn(t,Gn))},Zn=function(t){return vn(t,Yn)},Jn=function(t){return X(t.dom.childNodes,gn.fromDom)},Qn=function(t,e){var n=t.dom.childNodes;return O.from(n[e]).map(gn.fromDom)},tr=function(t){return Qn(t,0)},er=function(t){return Qn(t,t.dom.childNodes.length-1)},nr=function(t){return t.dom.childNodes.length},rr=function(t){var e=t.dom.head;if(null===e||void 0===e)throw new Error("Head is not available yet");return gn.fromDom(e)},ir=function(t){return Fn(t)},or=$(Element.prototype.attachShadow)&&$(Node.prototype.getRootNode),ar=g(or),sr=or?function(t){return gn.fromDom(t.dom.getRootNode())}:Hn,ur=function(t){return ir(t)?t:rr(Hn(t))},cr=function(t){var e=sr(t);return ir(e)?O.some(e):O.none()},lr=function(t){return gn.fromDom(t.dom.host)},fr=function(t){if(ar()&&F(t.target)){var e=gn.fromDom(t.target);if(Ln(e)&&dr(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return pt(n)}}return O.from(t.target)},dr=function(t){return F(t.dom.shadowRoot)},hr=function(t,e){var n=qn(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},pr=function(t,e){var n=Yn(t);n.fold((function(){var n=qn(t);n.each((function(t){gr(t,e)}))}),(function(t){hr(t,e)}))},mr=function(t,e){var n=tr(t);n.fold((function(){gr(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},gr=function(t,e){t.dom.appendChild(e.dom)},vr=function(t,e){hr(t,e),gr(e,t)},br=function(t,e){Z(e,(function(e){hr(t,e)}))},yr=function(t,e){Z(e,(function(e){gr(t,e)}))},wr=function(t){t.dom.textContent="",Z(Jn(t),(function(t){_r(t)}))},_r=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},xr=function(t){var e=Jn(t);e.length>0&&br(t,e),_r(t)},Cr=function(t){var e=zn(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return cr(gn.fromDom(e)).fold((function(){return n.body.contains(e)}),m(Cr,lr))},Sr=function(t,e){var n=function(n,r){return Sr(t+n,e+r)};return{left:t,top:e,translate:n}},kr=Sr,Mr=function(t){var e=t.getBoundingClientRect();return kr(e.left,e.top)},Er=function(t,e){return void 0!==t?t:void 0!==e?e:0},Or=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,i=e.documentElement;if(n===t.dom)return kr(n.offsetLeft,n.offsetTop);var o=Er(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Er(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Er(i.clientTop,n.clientTop),u=Er(i.clientLeft,n.clientLeft);return Tr(t).translate(a-u,o-s)},Tr=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?kr(r.offsetLeft,r.offsetTop):Cr(t)?Mr(e):kr(0,0)},Ar=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return kr(n,r)},Dr=function(t,e,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(t,e)},Nr=function(t,e){var n=$e().browser.isSafari();n&&$(t.dom.scrollIntoViewIfNeeded)?t.dom.scrollIntoViewIfNeeded(!1):t.dom.scrollIntoView(e)},Rr=function(t){var e=void 0===t?window:t;return O.from(e["visualViewport"])},Pr=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Ir=function(t){var e=void 0===t?window:t,n=e.document,r=Ar(gn.fromDom(n));return Rr(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,i=t.clientHeight;return Pr(r.left,r.top,n,i)}),(function(t){return Pr(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},Br=function(t){return function(e){return!!e&&e.nodeType===t}},Lr=function(t){return!!t&&!Object.getPrototypeOf(t)},zr=Br(1),jr=function(t){var e=t.map((function(t){return t.toLowerCase()}));return function(t){if(t&&t.nodeName){var n=t.nodeName.toLowerCase();return G(e,n)}return!1}},Fr=function(t,e){var n=e.toLowerCase().split(" ");return function(e){var r,i;if(zr(e))for(r=0;r<n.length;r++){var o=e.ownerDocument.defaultView.getComputedStyle(e,null);if(i=o?o.getPropertyValue(t):null,i===n[r])return!0}return!1}},$r=function(t){return function(e){return zr(e)&&e.hasAttribute(t)}},Hr=function(t,e){return function(n){return zr(n)&&n.getAttribute(t)===e}},Vr=function(t){return zr(t)&&t.hasAttribute("data-mce-bogus")},Ur=function(t){return zr(t)&&"all"===t.getAttribute("data-mce-bogus")},qr=function(t){return zr(t)&&"TABLE"===t.tagName},Wr=function(t){return function(e){if(zr(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},Kr=jr(["textarea","input"]),Gr=Br(3),Yr=Br(8),Xr=Br(9),Zr=Br(11),Jr=jr(["br"]),Qr=jr(["img"]),ti=Wr("true"),ei=Wr("false"),ni=jr(["td","th"]),ri=jr(["video","audio","object","embed"]),ii=function(t){return void 0!==t.style&&$(t.style.getPropertyValue)},oi=function(t,e,n){if(!(R(n)||L(n)||H(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ai=function(t,e,n){oi(t.dom,e,n)},si=function(t,e){var n=t.dom;wt(e,(function(t,e){oi(n,e,t)}))},ui=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},ci=function(t,e){return O.from(ui(t,e))},li=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},fi=function(t,e){t.dom.removeAttribute(e)},di=function(t){return nt(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},hi=function(t,e,n){if(!R(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);ii(t)&&t.style.setProperty(e,n)},pi=function(t,e){var n=t.dom;wt(e,(function(t,e){hi(n,e,t)}))},mi=function(t,e){var n=t.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(e);return""!==i||Cr(t)?i:gi(n,e)},gi=function(t,e){return ii(t)?t.style.getPropertyValue(e):""},vi=function(t,e){var n=t.dom,r=gi(n,e);return O.from(r).filter((function(t){return t.length>0}))},bi=function(t){var e={},n=t.dom;if(ii(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);e[i]=n.style[i]}return e},yi=function(t){return t.dom.offsetWidth},wi=$e().browser,_i=function(t){return it(t,Ln)},xi=function(t){return wi.isFirefox()&&"table"===Rn(t)?_i(Jn(t)).filter((function(t){return"caption"===Rn(t)})).bind((function(t){return _i(Zn(t)).map((function(e){var n=e.dom.offsetTop,r=t.dom.offsetTop,i=t.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Ci=function(t,e){return t.children&&G(t.children,e)},Si=function(t,e,n){var r,i,o=0,a=0,s=t.ownerDocument;if(n=n||t,e){if(n===t&&e.getBoundingClientRect&&"static"===mi(gn.fromDom(t),"position"))return i=e.getBoundingClientRect(),o=i.left+(s.documentElement.scrollLeft||t.scrollLeft)-s.documentElement.clientLeft,a=i.top+(s.documentElement.scrollTop||t.scrollTop)-s.documentElement.clientTop,{x:o,y:a};r=e;while(r&&r!==n&&r.nodeType&&!Ci(r,n))o+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;r=e.parentNode;while(r&&r!==n&&r.nodeType&&!Ci(r,n))o-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=xi(gn.fromDom(e))}return{x:o,y:a}},ki={},Mi={exports:ki};(function(t,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof t&&t.amd)t([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function t(e,n,r){function o(s,u){if(!n[s]){if(!e[s]){var c="function"==typeof i&&i;if(!u&&c)return c(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[s]={exports:{}};e[s][0].call(f.exports,(function(t){var n=e[s][1][t];return o(n||t)}),f,f.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return t}()({1:[function(t,e,n){var r,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(t){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(t){i=s}})();var l,f=[],d=!1,h=-1;function p(){d&&l&&(d=!1,l.length?f=l.concat(f):h=-1,f.length&&m())}function m(){if(!d){var t=u(p);d=!0;var e=f.length;while(e){l=f,f=[];while(++h<e)l&&l[h].run();h=-1,e=f.length}l=null,d=!1,c(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new g(t,e)),1!==f.length||d||u(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(t,e,n){(function(t){(function(n){var r=setTimeout;function i(){}function o(t,e){return function(){t.apply(e,arguments)}}function a(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function s(t,e){while(3===t._state)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void c(e.promise,i)}u(e.promise,r)}else(1===t._state?u:c)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void l(t);if("function"===typeof n)return void d(o(n,e),t)}t._state=1,t._value=e,l(t)}catch(r){c(t,r)}}function c(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&a._immediateFn((function(){t._handled||a._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)s(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,u(e,t))}),(function(t){n||(n=!0,c(e,t))}))}catch(r){if(n)return;n=!0,c(e,r)}}a.prototype["catch"]=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(i);return s(this,new f(t,e,n)),n},a.all=function(t){var e=Array.prototype.slice.call(t);return new a((function(t,n){if(0===e.length)return t([]);var r=e.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){i(o,t)}),n)}e[o]=a,0===--r&&t(e)}catch(u){n(u)}}for(var o=0;o<e.length;o++)i(o,e[o])}))},a.resolve=function(t){return t&&"object"===typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)}))},a._immediateFn="function"===typeof t?function(e){t(e)}:function(t){r(t,0)},a._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},a._setImmediateFn=function(t){a._immediateFn=t},a._setUnhandledRejectionFn=function(t){a._unhandledRejectionFn=t},"undefined"!==typeof e&&e.exports?e.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,e,n){(function(e,r){var i=t("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"===typeof e?e:function(t){var e=u++,r=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,i((function(){s[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"===typeof r?r:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e,n){var r=t("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();e.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,ki,Mi,void 0);var Ei=Mi.exports.boltExport,Oi=function(t){var e=O.none(),n=[],r=function(t){return Oi((function(e){i((function(n){e(t(n))}))}))},i=function(t){a()?u(t):n.push(t)},o=function(t){a()||(e=O.some(t),s(n),n=[])},a=function(){return e.isSome()},s=function(t){Z(t,u)},u=function(t){e.each((function(e){setTimeout((function(){t(e)}),0)}))};return t(o),{get:i,map:r,isReady:a}},Ti=function(t){return Oi((function(e){e(t)}))},Ai={nu:Oi,pure:Ti},Di=function(t){setTimeout((function(){throw t}),0)},Ni=function(t){var e=function(e){t().then(e,Di)},n=function(e){return Ni((function(){return t().then(e)}))},r=function(e){return Ni((function(){return t().then((function(t){return e(t).toPromise()}))}))},i=function(e){return Ni((function(){return t().then((function(){return e.toPromise()}))}))},o=function(){return Ai.nu(e)},a=function(){var e=null;return Ni((function(){return null===e&&(e=t()),e}))},s=t;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:e}},Ri=function(t){return Ni((function(){return new Ei(t)}))},Pi=function(t){return Ni((function(){return Ei.resolve(t)}))},Ii={nu:Ri,pure:Pi},Bi=function(t,e){return e((function(e){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=t.length&&e(n)}};0===t.length?e([]):Z(t,(function(t,e){t.get(i(e))}))}))},Li=function(t){return Bi(t,Ii.nu)},zi=function(t){var e=function(e){return t===e},n=function(e){return zi(t)},r=function(e){return zi(t)},i=function(e){return zi(e(t))},o=function(e){return zi(t)},a=function(e){e(t)},s=function(e){return e(t)},u=function(e,n){return n(t)},c=function(e){return e(t)},l=function(e){return e(t)},f=function(){return O.some(t)};return{is:e,isValue:C,isError:x,getOr:g(t),getOrThunk:g(t),getOrDie:g(t),or:n,orThunk:r,fold:u,map:i,mapError:o,each:a,bind:s,exists:c,forall:l,toOptional:f}},ji=function(t){var e=function(t){return t()},n=function(){return w(String(t))()},r=function(t){return t},i=function(t){return t()},o=function(e){return ji(t)},a=function(e){return ji(e(t))},s=function(e){return ji(t)},u=function(e,n){return e(t)};return{is:x,isValue:x,isError:C,getOr:v,getOrThunk:e,getOrDie:n,or:r,orThunk:i,fold:u,map:o,mapError:a,each:h,bind:s,exists:x,forall:C,toOptional:O.none}},Fi=function(t,e){return t.fold((function(){return ji(e)}),zi)},$i={value:zi,error:ji,fromOption:Fi},Hi=function(t){if(!I(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return Z(t,(function(r,i){var o=bt(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!I(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){var n=arguments.length;if(n!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+n);for(var r=new Array(n),o=0;o<r.length;o++)r[o]=arguments[o];var u=function(t){var n=bt(t);if(e.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+n.join(","));var i=ut(e,(function(t){return G(n,t)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,r)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[i];return e.apply(null,r)},match:u,log:function(t){console.log(t,{constructors:e,constructor:a,params:r})}}}})),n},Vi={generate:Hi},Ui=(Vi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(t){return t.fold(v,v)});function qi(t,e,n,r,i){return t(n,r)?O.some(n):$(i)&&i(n)?O.none():e(n,r,i)}var Wi,Ki=function(t,e,n){var r=t.dom,i=$(n)?n:x;while(r.parentNode){r=r.parentNode;var o=gn.fromDom(r);if(e(o))return O.some(o);if(i(o))break}return O.none()},Gi=function(t,e,n){var r=function(t,e){return e(t)};return qi(r,Ki,t,e,n)},Yi=function(t,e){var n=t.dom;return n.parentNode?Xi(gn.fromDom(n.parentNode),(function(n){return!Tn(t,n)&&e(n)})):O.none()},Xi=function(t,e){var n=function(t){return e(gn.fromDom(t))},r=it(t.dom.childNodes,n);return r.map(gn.fromDom)},Zi=function(t,e,n){return Ki(t,(function(t){return kn(t,e)}),n)},Ji=function(t,e){return On(e,t)},Qi=function(t,e,n){var r=function(t,e){return kn(t,e)};return qi(r,Zi,t,e,n)},to=function(){function t(t,e){return function(){t.apply(e,arguments)}}var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=function(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,t(o,this),t(a,this))},r=n.immediateFn||"function"===typeof setImmediate&&setImmediate||function(t){setTimeout(t,1)};function i(t){var e=this;null!==this._state?r((function(){var n=e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void t.reject(i)}t.resolve(r)}else(e._state?t.resolve:t.reject)(e._value)})):this._deferreds.push(t)}function o(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if("function"===typeof n)return void c(t(n,e),t(o,this),t(a,this))}this._state=!0,this._value=e,s.call(this)}catch(r){a.call(this,r)}}function a(t){this._state=!1,this._value=t,s.call(this)}function s(){for(var t=0,e=this._deferreds.length;t<e;t++)i.call(this,this._deferreds[t]);this._deferreds=null}function u(t,e,n,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r}function c(t,e,n){var r=!1;try{t((function(t){r||(r=!0,e(t))}),(function(t){r||(r=!0,n(t))}))}catch(i){if(r)return;r=!0,n(i)}}return n.prototype.catch=function(t){return this.then(null,t)},n.prototype.then=function(t,e){var r=this;return new n((function(n,o){i.call(r,new u(t,e,n,o))}))},n.all=function(){var t=Array.prototype.slice.call(1===arguments.length&&e(arguments[0])?arguments[0]:arguments);return new n((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){i(o,t)}),n)}t[o]=a,0===--r&&e(t)}catch(u){n(u)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},n.resolve=function(t){return t&&"object"===typeof t&&t.constructor===n?t:new n((function(e){e(t)}))},n.reject=function(t){return new n((function(e,n){n(t)}))},n.race=function(t){return new n((function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)}))},n},eo=window.Promise?window.Promise:to(),no=function(t,e){var n,r=window.requestAnimationFrame,i=["ms","moz","webkit"],o=function(t){window.setTimeout(t,0)};for(n=0;n<i.length&&!r;n++)r=window[i[n]+"RequestAnimationFrame"];r||(r=o),r(t,e)},ro=function(t,e){return"number"!==typeof e&&(e=0),setTimeout(t,e)},io=function(t,e){return"number"!==typeof e&&(e=1),setInterval(t,e)},oo=function(t){return clearTimeout(t)},ao=function(t){return clearInterval(t)},so=function(t,e){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=ro((function(){t.apply(this,r)}),e)};return r.stop=function(){clearTimeout(n)},r},uo={requestAnimationFrame:function(t,e){Wi?Wi.then(t):Wi=new eo((function(t){e||(e=document.body),no(t,e)})).then(t)},setTimeout:ro,setInterval:io,setEditorTimeout:function(t,e,n){return ro((function(){t.removed||e()}),n)},setEditorInterval:function(t,e,n){var r=io((function(){t.removed?clearInterval(r):e()}),n);return r},debounce:so,throttle:so,clearInterval:ao,clearTimeout:oo};function co(t,e){void 0===e&&(e={});var n=0,r={},i=gn.fromDom(t),o=Hn(i),a=e.maxLoadTime||5e3,s=function(t){e.referrerPolicy=t},u=function(t){gr(ur(i),t)},c=function(t){var e=ur(i);Ji(e,"#"+t).each(_r)},l=function(t){return Tt(r,t).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,i,s){var c,f=ln._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var h=function(t,e){var n=t.length;while(n--)t[n]();d.status=e,d.passed=[],d.failed=[],c&&(c.onload=null,c.onerror=null,c=null)},p=function(){return h(d.passed,2)},m=function(){return h(d.failed,3)},g=function(t,e){t()||(Date.now()-y<a?uo.setTimeout(e):m())},v=function(){g((function(){var e=t.styleSheets,n=e.length;while(n--){var r=e[n],i=r.ownerNode;if(i&&i.id===c.id)return p(),!0}return!1}),v)};if(i&&d.passed.push(i),s&&d.failed.push(s),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var b=gn.fromTag("link",o.dom);si(b,{rel:"stylesheet",type:"text/css",id:d.id});var y=Date.now();e.contentCssCors&&ai(b,"crossOrigin","anonymous"),e.referrerPolicy&&ai(b,"referrerpolicy",e.referrerPolicy),c=b.dom,c.onload=v,c.onerror=m,u(b),ai(b,"href",f)}else m();else p()},d=function(t){return Ii.nu((function(e){f(t,p(e,g($i.value(t))),p(e,g($i.error(t))))}))},h=function(t,e,n){Li(X(t,d)).get((function(t){var r=Q(t,(function(t){return t.isValue()}));r.fail.length>0?n(r.fail.map(Ui)):e(r.pass.map(Ui))}))},m=function(t){var e=ln._addCacheSuffix(t);Tt(r,e).each((function(t){var n=--t.count;0===n&&(delete r[e],c(t.id))}))},v=function(t){Z(t,(function(t){m(t)}))};return{load:f,loadAll:h,unload:m,unloadAll:v,_setReferrerPolicy:s}}var lo=function(){var t=new WeakMap,e=function(e,n){var r=sr(e),i=r.dom;return O.from(t.get(i)).getOrThunk((function(){var e=co(i,n);return t.set(i,e),e}))};return{forElement:e}},fo=lo(),ho=function(){function t(t,e){this.node=t,this.rootNode=e,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return t.prototype.current=function(){return this.node},t.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},t.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},t.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},t.prototype.findSibling=function(t,e,n,r){var i,o;if(t){if(!r&&t[e])return t[e];if(t!==this.rootNode){if(i=t[n],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},t.prototype.findPreviousNode=function(t,e,n,r){var i,o,a;if(t){if(i=t[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[e];a;a=a[e])if(!a[e])return a;return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},t}(),po=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],mo=["td","th"],go=["thead","tbody","tfoot"],vo=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],bo=["h1","h2","h3","h4","h5","h6"],yo=["li","dd","dt"],wo=["ul","ol","dl"],_o=["pre","script","textarea","style"],xo=function(t){var e;return function(n){return e=e||ft(t,C),e.hasOwnProperty(Rn(n))}},Co=xo(bo),So=xo(po),ko=function(t){return"table"===Rn(t)},Mo=function(t){return Ln(t)&&!So(t)},Eo=function(t){return Ln(t)&&"br"===Rn(t)},Oo=xo(vo),To=xo(wo),Ao=xo(yo),Do=xo(go),No=xo(mo),Ro=xo(_o),Po=function(t,e,n){return Zi(t,e,n).isSome()},Io="\ufeff",Bo=" ",Lo=function(t){return t===Io},zo=function(t){return t.replace(/\uFEFF/g,"")},jo=Io,Fo=Lo,$o=zo,Ho=zr,Vo=Gr,Uo=function(t){return Vo(t)&&(t=t.parentNode),Ho(t)&&t.hasAttribute("data-mce-caret")},qo=function(t){return Vo(t)&&Fo(t.data)},Wo=function(t){return Uo(t)||qo(t)},Ko=function(t){return t.firstChild!==t.lastChild||!Jr(t.firstChild)},Go=function(t,e){var n,r=t.ownerDocument,i=r.createTextNode(jo),o=t.parentNode;if(e){if(n=t.previousSibling,Vo(n)){if(Wo(n))return n;if(ta(n))return n.splitText(n.data.length-1)}o.insertBefore(i,t)}else{if(n=t.nextSibling,Vo(n)){if(Wo(n))return n;if(Qo(n))return n.splitText(1),n}t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i)}return i},Yo=function(t){var e=t.container();return!!Gr(e)&&(e.data.charAt(t.offset())===jo||t.isAtStart()&&qo(e.previousSibling))},Xo=function(t){var e=t.container();return!!Gr(e)&&(e.data.charAt(t.offset()-1)===jo||t.isAtEnd()&&qo(e.nextSibling))},Zo=function(){var t=document.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},Jo=function(t,e,n){var r=e.ownerDocument,i=r.createElement(t);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(Zo());var o=e.parentNode;return n?o.insertBefore(i,e):e.nextSibling?o.insertBefore(i,e.nextSibling):o.appendChild(i),i},Qo=function(t){return Vo(t)&&t.data[0]===jo},ta=function(t){return Vo(t)&&t.data[t.data.length-1]===jo},ea=function(t){var e=t.getElementsByTagName("br"),n=e[e.length-1];Vr(n)&&n.parentNode.removeChild(n)},na=function(t){return t&&t.hasAttribute("data-mce-caret")?(ea(t),t.removeAttribute("data-mce-caret"),t.removeAttribute("data-mce-bogus"),t.removeAttribute("style"),t.removeAttribute("_moz_abspos"),t):null},ra=function(t){return Uo(t.startContainer)},ia=ti,oa=ei,aa=Jr,sa=Gr,ua=jr(["script","style","textarea"]),ca=jr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),la=jr(["table"]),fa=Wo,da=function(t){return!fa(t)&&(sa(t)?!ua(t.parentNode):ca(t)||aa(t)||la(t)||pa(t))},ha=function(t){return zr(t)&&"true"===t.getAttribute("unselectable")},pa=function(t){return!1===ha(t)&&oa(t)},ma=function(t,e){for(t=t.parentNode;t&&t!==e;t=t.parentNode){if(pa(t))return!1;if(ia(t))return!0}return!0},ga=function(t){return!!pa(t)&&!0!==nt(gt(t.getElementsByTagName("*")),(function(t,e){return t||ia(e)}),!1)},va=function(t){return ca(t)||ga(t)},ba=function(t,e){return da(t)&&ma(t,e)},ya=/^[ \t\r\n]*$/,wa=function(t){return ya.test(t)},_a=function(t,e){var n=gn.fromDom(e),r=gn.fromDom(t);return Po(r,"pre,code",b(Tn,n))},xa=function(t,e){return Gr(t)&&wa(t.data)&&!1===_a(t,e)},Ca=function(t){return zr(t)&&"A"===t.nodeName&&!t.hasAttribute("href")&&(t.hasAttribute("name")||t.hasAttribute("id"))},Sa=function(t,e){return da(t)&&!1===xa(t,e)||Ca(t)||ka(t)},ka=$r("data-mce-bookmark"),Ma=$r("data-mce-bogus"),Ea=Hr("data-mce-bogus","all"),Oa=function(t,e){var n,r=0;if(Sa(t,t))return!1;if(n=t.firstChild,!n)return!0;var i=new ho(n,t);do{if(e){if(Ea(n)){n=i.next(!0);continue}if(Ma(n)){n=i.next();continue}}if(Jr(n))r++,n=i.next();else{if(Sa(n,t))return!1;n=i.next()}}while(n);return r<=1},Ta=function(t,e){return void 0===e&&(e=!0),Oa(t.dom,e)},Aa=function(t){return"span"===t.nodeName.toLowerCase()},Da=function(t,e){return F(t)&&(Sa(t,e)||Mo(gn.fromDom(t)))},Na=function(t,e){var n=new ho(t,e).prev(!1),r=new ho(t,e).next(!1),i=z(n)||Da(n,e),o=z(r)||Da(r,e);return i&&o},Ra=function(t){return Aa(t)&&"bookmark"===t.getAttribute("data-mce-type")},Pa=function(t,e){return Gr(t)&&t.data.length>0&&Na(t,e)},Ia=function(t){return!!zr(t)&&t.childNodes.length>0},Ba=function(t){return Zr(t)||Xr(t)},La=function(t,e,n){var r=n||e;if(zr(e)&&Ra(e))return e;for(var i=e.childNodes,o=i.length-1;o>=0;o--)La(t,i[o],r);if(zr(e)){var a=e.childNodes;1===a.length&&Ra(a[0])&&e.parentNode.insertBefore(a[0],e)}return Ba(e)||Sa(e,r)||Ia(e)||Pa(e,r)||t.remove(e),e},za=ln.makeMap,ja=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fa=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$a=/[<>&\"\']/g,Ha=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Va={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Ua={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},qa={"<":"<",">":">","&":"&",""":'"',"'":"'"},Wa=function(t){var e=gn.fromTag("div").dom;return e.innerHTML=t,e.textContent||e.innerText||t},Ka=function(t,e){var n,r,i,o={};if(t){for(t=t.split(","),e=e||10,n=0;n<t.length;n+=2)r=String.fromCharCode(parseInt(t[n],e)),Ua[r]||(i="&"+t[n+1]+";",o[r]=i,o[i]=r);return o}},Ga=Ka("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),Ya=function(t,e){return t.replace(e?ja:Fa,(function(t){return Ua[t]||t}))},Xa=function(t){return(""+t).replace($a,(function(t){return Ua[t]||t}))},Za=function(t,e){return t.replace(e?ja:Fa,(function(t){return t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":Ua[t]||"&#"+t.charCodeAt(0)+";"}))},Ja=function(t,e,n){return n=n||Ga,t.replace(e?ja:Fa,(function(t){return Ua[t]||n[t]||t}))},Qa=function(t,e){var n=Ka(e)||Ga,r=function(t,e){return t.replace(e?ja:Fa,(function(t){return void 0!==Ua[t]?Ua[t]:void 0!==n[t]?n[t]:t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":"&#"+t.charCodeAt(0)+";"}))},i=function(t,e){return Ja(t,e,n)},o=za(t.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?e?i:Ja:o.numeric?Za:Ya},ts=function(t){return t.replace(Ha,(function(t,e){return e?(e="x"===e.charAt(0).toLowerCase()?parseInt(e.substr(1),16):parseInt(e,10),e>65535?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):Va[e]||String.fromCharCode(e)):qa[t]||Ga[t]||Wa(t)}))},es={encodeRaw:Ya,encodeAllRaw:Xa,encodeNumeric:Za,encodeNamed:Ja,getEncodeFunc:Qa,decode:ts},ns={},rs={},is=ln.makeMap,os=ln.each,as=ln.extend,ss=ln.explode,us=ln.inArray,cs=function(t,e){return t=ln.trim(t),t?t.split(e||" "):[]},ls=function(t){var e,n,r,i,o,a,s={},u=function(t,n,r){var i,o,a,u=function(t,e){var n,r,i={};for(n=0,r=t.length;n<r;n++)i[t[n]]=e||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=cs(r));var c=cs(t);i=c.length;while(i--)o=cs([e,n].join(" ")),a={attributes:u(o),attributesOrder:o,children:u(r,rs)},s[c[i]]=a},c=function(t,e){var n,r,i,o,a=cs(t);n=a.length;var u=cs(e);while(n--)for(r=s[a[n]],i=0,o=u.length;i<o;i++)r.attributes[u[i]]={},r.attributesOrder.push(u[i])};return ns[t]?ns[t]:(e="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==t&&(e+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==t&&(e+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),os(cs(a),(function(t){u(t,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),os(cs(o),(function(t){u(t,"",i)}))),i=i||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),u("address dt dd div caption","",i),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),u("blockquote","cite",i),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",i),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",i),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",i),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),u("param","name value"),u("map","name",[i,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===t?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",i),u("th","colspan rowspan headers scope abbr",i),u("form","accept-charset action autocomplete enctype method name novalidate target",i),u("fieldset","disabled form name",[i,"legend"].join(" ")),u("label","form for",r),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===t?i:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[i,"li"].join(" ")),u("noscript","",i),"html4"!==t&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",i),u("mark rt rp summary bdi","",r),u("canvas","width height",i),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",i),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[i,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",i),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[i,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==t&&(c("script","language xml:space"),c("style","xml:space"),c("object","declare classid code codebase codetype archive standby align border hspace vspace"),c("embed","align name hspace vspace"),c("param","valuetype type"),c("a","charset name rev shape coords"),c("br","clear"),c("applet","codebase archive code object alt name width height align hspace vspace"),c("img","name longdesc align border hspace vspace"),c("iframe","longdesc frameborder marginwidth marginheight scrolling align"),c("font basefont","size color face"),c("input","usemap align"),c("select"),c("textarea"),c("h1 h2 h3 h4 h5 h6 div p legend caption","align"),c("ul","type compact"),c("li","type"),c("ol dl menu dir","compact"),c("pre","width xml:space"),c("hr","align noshade size width"),c("isindex","prompt"),c("table","summary width frame rules cellspacing cellpadding align bgcolor"),c("col","width align char charoff valign"),c("colgroup","width align char charoff valign"),c("thead","align char charoff valign"),c("tr","align char charoff valign bgcolor"),c("th","axis align char charoff valign nowrap bgcolor width height"),c("form","accept"),c("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),c("tfoot","align char charoff valign"),c("tbody","align char charoff valign"),c("area","nohref"),c("body","background bgcolor text link vlink alink")),"html4"!==t&&(c("input button select textarea","autofocus"),c("input textarea","placeholder"),c("a","download"),c("link script img","crossorigin"),c("img","loading"),c("iframe","sandbox seamless allowfullscreen loading")),os(cs("a form meter progress dfn"),(function(t){s[t]&&delete s[t].children[t]})),delete s.caption.children.table,delete s.script,ns[t]=s,s)},fs=function(t,e){var n;return t&&(n={},"string"===typeof t&&(t={"*":t}),os(t,(function(t,r){n[r]=n[r.toUpperCase()]="map"===e?is(t,/[, ]/):ss(t,/[, ]/)}))),n};function ds(t){var e={},n={},r=[],i={},o={},a=function(e,n,r){var i=t[e];return i?i=is(i,/[, ]/,is(i.toUpperCase(),/[, ]/)):(i=ns[e],i||(i=is(n," ",is(n.toUpperCase()," ")),i=as(i,r),ns[e]=i)),i};t=t||{};var s=ls(t.schema);!1===t.verify_html&&(t.valid_elements="*[*]");var u=fs(t.valid_styles),c=fs(t.invalid_styles,"map"),l=fs(t.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",h),v=a("move_caret_before_on_enter_elements",m+" table",h),b=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),y=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",b),w=a("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");os((t.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(t){o[t]=new RegExp("</"+t+"[^>]*>","gi")}));var _=function(t){return new RegExp("^"+t.replace(/([?+*])/g,".$1")+"$")},x=function(t){var n,i,o,a,s,u,c,l,f,d,h,p,m,g,v,b,y,w,x=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(t){var k=cs(t,",");for(e["@"]&&(b=e["@"].attributes,y=e["@"].attributesOrder),n=0,i=k.length;n<i;n++)if(s=x.exec(k[n]),s){if(g=s[1],f=s[2],v=s[3],l=s[5],p={},m=[],u={attributes:p,attributesOrder:m},"#"===g&&(u.paddEmpty=!0),"-"===g&&(u.removeEmpty=!0),"!"===s[4]&&(u.removeEmptyAttrs=!0),b&&(wt(b,(function(t,e){p[e]=t})),m.push.apply(m,y)),l)for(l=cs(l,"|"),o=0,a=l.length;o<a;o++)if(s=C.exec(l[o]),s){if(c={},h=s[1],d=s[2].replace(/[\\:]:/g,":"),g=s[3],w=s[4],"!"===h&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(d),c.required=!0),"-"===h){delete p[d],m.splice(us(m,d),1);continue}g&&("="===g&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:d,value:w}),c.defaultValue=w),":"===g&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:d,value:w}),c.forcedValue=w),"<"===g&&(c.validValues=is(w,"?"))),S.test(d)?(u.attributePatterns=u.attributePatterns||[],c.pattern=_(d),u.attributePatterns.push(c)):(p[d]||m.push(d),p[d]=c)}b||"@"!==f||(b=p,y=m),v&&(u.outputName=f,e[v]=u),S.test(f)?(u.pattern=_(f),r.push(u)):e[f]=u}}},C=function(t){e={},r=[],x(t),os(s,(function(t,e){n[e]=t.children}))},S=function(t){var r=/^(~)?(.+)$/;t&&(ns.text_block_elements=ns.block_elements=null,os(cs(t,","),(function(t){var o=r.exec(t),a="~"===o[1],s=a?"span":"div",u=o[2];if(n[u]=n[s],i[u]=s,a||(y[u.toUpperCase()]={},y[u]={}),!e[u]){var c=e[s];c=as({},c),delete c.removeEmptyAttrs,delete c.removeEmpty,e[u]=c}os(n,(function(t,e){t[s]&&(n[e]=t=as({},n[e]),t[u]=t[s])}))})))},k=function(e){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;ns[t.schema]=null,e&&os(cs(e,","),(function(t){var e,i,o=r.exec(t);o&&(i=o[1],e=i?n[o[2]]:n[o[2]]={"#comment":{}},e=n[o[2]],os(cs(o[3],"|"),(function(t){"-"===i?delete e[t]:e[t]={}})))}))},M=function(t){var n,i=e[t];if(i)return i;n=r.length;while(n--)if(i=r[n],i.pattern.test(t))return i};t.valid_elements?C(t.valid_elements):(os(s,(function(t,r){e[r]={attributes:t.attributes,attributesOrder:t.attributesOrder},n[r]=t.children})),"html5"!==t.schema&&os(cs("strong/b em/i"),(function(t){var n=cs(t,"/");e[n[1]].outputName=n[0]})),os(cs("ol ul sub sup blockquote span font a table tbody strong em b i"),(function(t){e[t]&&(e[t].removeEmpty=!0)})),os(cs("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(t){e[t].paddEmpty=!0})),os(cs("span"),(function(t){e[t].removeEmptyAttrs=!0}))),S(t.custom_elements),k(t.valid_children),x(t.extended_valid_elements),k("+ol[ul|ol],+ul[ul|ol]"),os({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(t,n){e[n]&&(e[n].parentsRequired=cs(t))})),t.invalid_elements&&os(ss(t.invalid_elements),(function(t){e[t]&&delete e[t]})),M("span")||x("span[!data-mce-type|*]");var E=function(){return u},O=function(){return c},T=function(){return l},A=function(){return p},D=function(){return y},N=function(){return b},R=function(){return w},P=function(){return h},I=function(){return d},B=function(){return g},L=function(){return v},z=function(){return f},j=function(){return o},F=function(t,e){var r=n[t.toLowerCase()];return!(!r||!r[e.toLowerCase()])},$=function(t,e){var n,r,i=M(t);if(i){if(!e)return!0;if(i.attributes[e])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(t))return!0}}return!1},H=function(){return i};return{children:n,elements:e,getValidStyles:E,getValidClasses:T,getBlockElements:D,getInvalidStyles:O,getShortEndedElements:P,getTextBlockElements:N,getTextInlineElements:R,getBoolAttrs:A,getElementRule:M,getSelfClosingElements:I,getNonEmptyElements:B,getMoveCaretBeforeOnEnterElements:L,getWhiteSpaceElements:z,getSpecialElements:j,isValidChild:F,isValid:$,getCustomElements:H,addValidElements:x,setValidElements:C,addCustomElements:S,addValidChildren:k}}var hs,ps,ms,gs,vs,bs,ys,ws,_s,xs,Cs,Ss,ks,Ms,Es,Os,Ts,As,Ds=function(t,e,n,r){var i=function(t){return t=parseInt(t,10).toString(16),t.length>1?t:"0"+t};return"#"+i(e)+i(n)+i(r)},Ns=function(t,e){var n,r,i,o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,s=/\s*([^:]+):\s*([^;]+);?/g,u=/\s+$/,c={},l=Io;t=t||{},e&&(r=e.getValidStyles(),i=e.getInvalidStyles());var f=("\\\" \\' \\; \\: ; : "+l).split(" ");for(n=0;n<f.length;n++)c[f[n]]=l+n,c[l+n]=f[n];return{toHex:function(t){return t.replace(o,Ds)},parse:function(e){var r,i,f,d,h={},p=t.url_converter,m=t.url_converter_scope||this,g=function(t,e,r){var i=h[t+"-top"+e];if(i){var o=h[t+"-right"+e];if(o){var a=h[t+"-bottom"+e];if(a){var s=h[t+"-left"+e];if(s){var u=[i,o,a,s];n=u.length-1;while(n--)if(u[n]!==u[n+1])break;n>-1&&r||(h[t+e]=-1===n?u[0]:u.join(" "),delete h[t+"-top"+e],delete h[t+"-right"+e],delete h[t+"-bottom"+e],delete h[t+"-left"+e])}}}}},v=function(t){var e,n=h[t];if(n){n=n.split(" "),e=n.length;while(e--)if(n[e]!==n[0])return!1;return h[t]=n[0],!0}},b=function(t,e,n,r){v(e)&&v(n)&&v(r)&&(h[t]=h[e]+" "+h[n]+" "+h[r],delete h[e],delete h[n],delete h[r])},y=function(t){return d=!0,c[t]},w=function(t,e){return d&&(t=t.replace(/\uFEFF[0-9]/g,(function(t){return c[t]}))),e||(t=t.replace(/\\([\'\";:])/g,"$1")),t},_=function(t){return String.fromCharCode(parseInt(t.slice(1),16))},x=function(t){return t.replace(/\\[0-9a-f]+/gi,_)},C=function(e,n,r,i,o,a){if(o=o||a,o)return o=w(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=w(n||r||i),!t.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!t.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return p&&(n=p.call(m,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(e){e=e.replace(/[\u0000-\u001F]/g,""),e=e.replace(/\\[\"\';:\uFEFF]/g,y).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(t){return t.replace(/[;:]/g,y)}));while(r=s.exec(e))if(s.lastIndex=r.index+r[0].length,i=r[1].replace(u,"").toLowerCase(),f=r[2].replace(u,""),i&&f){if(i=x(i),f=x(f),-1!==i.indexOf(l)||-1!==i.indexOf('"'))continue;if(!t.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===i&&"700"===f?f="bold":"color"!==i&&"background-color"!==i||(f=f.toLowerCase()),f=f.replace(o,Ds),f=f.replace(a,C),h[i]=d?w(f,!0):f}g("border","",!0),g("border","-width"),g("border","-color"),g("border","-style"),g("padding",""),g("margin",""),b("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(t,e){var n="",o=function(e){var i,o=r[e];if(o)for(var a=0,s=o.length;a<s;a++)e=o[a],i=t[e],i&&(n+=(n.length>0?" ":"")+e+": "+i+";")},a=function(t,e){var n=i["*"];return(!n||!n[t])&&(n=i[e],!(n&&n[t]))};return e&&r?(o("*"),o(e)):wt(t,(function(t,r){!t||i&&!a(r,e)||(n+=(n.length>0?" ":"")+r+": "+t+";")})),n}}},Rs="mce-data-",Ps=/^(?:mouse|contextmenu)|click/,Is={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},Bs=function(t){return t.isDefaultPrevented===zs||t.isDefaultPrevented===Ls},Ls=function(){return!1},zs=function(){return!0},js=function(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r||!1):t.attachEvent&&t.attachEvent("on"+e,n)},Fs=function(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r||!1):t.detachEvent&&t.detachEvent("on"+e,n)},$s=function(t){return Ps.test(t.type)},Hs=function(t,e){var n,r=e||{};for(n in t)Is[n]||(r[n]=t[n]);if(r.target||(r.target=r.srcElement||document),r.composedPath&&(r.composedPath=function(){return t.composedPath()}),t&&$s(t)&&void 0===t.pageX&&void 0!==t.clientX){var i=r.target.ownerDocument||document,o=i.documentElement,a=i.body;r.pageX=t.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),r.pageY=t.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}return r.preventDefault=function(){r.isDefaultPrevented=zs,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},r.stopPropagation=function(){r.isPropagationStopped=zs,t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=zs,r.stopPropagation()},!1===Bs(r)&&(r.isDefaultPrevented=Ls,r.isPropagationStopped=Ls,r.isImmediatePropagationStopped=Ls),"undefined"===typeof r.metaKey&&(r.metaKey=!1),r},Vs=function(t,e,n){var r=t.document,i={type:"ready"};if(n.domLoaded)e(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Fs(t,"DOMContentLoaded",a),Fs(t,"load",a),n.domLoaded||(n.domLoaded=!0,e(i)),t=null};o()?a():js(t,"DOMContentLoaded",a),n.domLoaded||js(t,"load",a)}},Us=function(){function t(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Rs+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return t.prototype.bind=function(t,e,n,r){var i,o,a,s,u,c,l,f=this,d=window,h=function(t){f.executeHandlers(Hs(t||d.event),i)};if(t&&3!==t.nodeType&&8!==t.nodeType){t[f.expando]?i=t[f.expando]:(i=f.count++,t[f.expando]=i,f.events[i]={}),r=r||t;var p=e.split(" ");a=p.length;while(a--)s=p[a],c=h,u=l=!1,"DOMContentLoaded"===s&&(s="ready"),f.domLoaded&&"ready"===s&&"complete"===t.readyState?n.call(r,Hs({type:s})):(f.hasMouseEnterLeave||(u=f.mouseEnterLeave[s],u&&(c=function(t){var e=t.currentTarget,n=t.relatedTarget;if(n&&e.contains)n=e.contains(n);else while(n&&n!==e)n=n.parentNode;n||(t=Hs(t||d.event),t.type="mouseout"===t.type?"mouseleave":"mouseenter",t.target=e,f.executeHandlers(t,i))})),f.hasFocusIn||"focusin"!==s&&"focusout"!==s||(l=!0,u="focusin"===s?"focus":"blur",c=function(t){t=Hs(t||d.event),t.type="focus"===t.type?"focusin":"focusout",f.executeHandlers(t,i)}),o=f.events[i][s],o?"ready"===s&&f.domLoaded?n(Hs({type:s})):o.push({func:n,scope:r}):(f.events[i][s]=o=[{func:n,scope:r}],o.fakeName=u,o.capture=l,o.nativeHandler=c,"ready"===s?Vs(t,c,f):js(t,u||s,c,l)));return t=o=null,n}},t.prototype.unbind=function(t,e,n){var r,i,o,a,s;if(!t||3===t.nodeType||8===t.nodeType)return this;var u=t[this.expando];if(u){if(s=this.events[u],e){var c=e.split(" ");i=c.length;while(i--)if(a=c[i],r=s[a],r){if(n){o=r.length;while(o--)if(r[o].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,s[a]=r}}n&&0!==r.length||(delete s[a],Fs(t,r.fakeName||a,r.nativeHandler,r.capture))}}else wt(s,(function(e,n){Fs(t,e.fakeName||n,e.nativeHandler,e.capture)})),s={};for(a in s)if(At(s,a))return this;delete this.events[u];try{delete t[this.expando]}catch(h){t[this.expando]=null}}return this},t.prototype.fire=function(t,e,n){var r;if(!t||3===t.nodeType||8===t.nodeType)return this;var i=Hs(null,n);i.type=e,i.target=t;do{r=t[this.expando],r&&this.executeHandlers(i,r),t=t.parentNode||t.ownerDocument||t.defaultView||t.parentWindow}while(t&&!i.isPropagationStopped());return this},t.prototype.clean=function(t){var e,n;if(!t||3===t.nodeType||8===t.nodeType)return this;if(t[this.expando]&&this.unbind(t),t.getElementsByTagName||(t=t.document),t&&t.getElementsByTagName){this.unbind(t),n=t.getElementsByTagName("*"),e=n.length;while(e--)t=n[e],t[this.expando]&&this.unbind(t)}return this},t.prototype.destroy=function(){this.events={}},t.prototype.cancel=function(t){return t&&(t.preventDefault(),t.stopImmediatePropagation()),!1},t.prototype.executeHandlers=function(t,e){var n=this.events[e],r=n&&n[t.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,t)&&t.preventDefault(),t.isImmediatePropagationStopped())return}},t.Event=new t,t}(),qs="sizzle"+-new Date,Ws=window.document,Ks=0,Gs=0,Ys=Tu(),Xs=Tu(),Zs=Tu(),Js=function(t,e){return t===e&&(xs=!0),0},Qs="undefined",tu=1<<31,eu={}.hasOwnProperty,nu=[],ru=nu.pop,iu=nu.push,ou=nu.push,au=nu.slice,su=nu.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},uu="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cu="[\\x20\\t\\r\\n\\f]",lu="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",fu="\\["+cu+"*("+lu+")(?:"+cu+"*([*^$|!~]?=)"+cu+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+lu+"))|)"+cu+"*\\]",du=":("+lu+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+fu+")*)|.*)\\)|)",hu=new RegExp("^"+cu+"+|((?:^|[^\\\\])(?:\\\\.)*)"+cu+"+$","g"),pu=new RegExp("^"+cu+"*,"+cu+"*"),mu=new RegExp("^"+cu+"*([>+~]|"+cu+")"+cu+"*"),gu=new RegExp("="+cu+"*([^\\]'\"]*?)"+cu+"*\\]","g"),vu=new RegExp(du),bu=new RegExp("^"+lu+"$"),yu={ID:new RegExp("^#("+lu+")"),CLASS:new RegExp("^\\.("+lu+")"),TAG:new RegExp("^("+lu+"|[*])"),ATTR:new RegExp("^"+fu),PSEUDO:new RegExp("^"+du),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cu+"*(even|odd|(([+-]|)(\\d*)n|)"+cu+"*(?:([+-]|)"+cu+"*(\\d+)|))"+cu+"*\\)|)","i"),bool:new RegExp("^(?:"+uu+")$","i"),needsContext:new RegExp("^"+cu+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cu+"*((?:-\\d)?\\d*)"+cu+"*\\)|)(?=[^-]|$)","i")},wu=/^(?:input|select|textarea|button)$/i,_u=/^h\d$/i,xu=/^[^{]+\{\s*\[native \w/,Cu=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Su=/[+~]/,ku=/'|\\/g,Mu=new RegExp("\\\\([\\da-f]{1,6}"+cu+"?|("+cu+")|.)","ig"),Eu=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{ou.apply(nu=au.call(Ws.childNodes),Ws.childNodes),nu[Ws.childNodes.length].nodeType}catch(gF){ou={apply:nu.length?function(t,e){iu.apply(t,au.call(e))}:function(t,e){var n=t.length,r=0;while(t[n++]=e[r++]);t.length=n-1}}}var Ou=function(t,e,n,r){var i,o,a,s,u,c,l,f,d,h;if((e?e.ownerDocument||e:Ws)!==Ss&&Cs(e),e=e||Ss,n=n||[],!t||"string"!==typeof t)return n;if(1!==(s=e.nodeType)&&9!==s)return[];if(Ms&&!r){if(i=Cu.exec(t))if(a=i[1]){if(9===s){if(o=e.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&As(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return ou.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&hs.getElementsByClassName)return ou.apply(n,e.getElementsByClassName(a)),n}if(hs.qsa&&(!Es||!Es.test(t))){if(f=l=qs,d=e,h=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){c=vs(t),(l=e.getAttribute("id"))?f=l.replace(ku,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",u=c.length;while(u--)c[u]=f+Lu(c[u]);d=Su.test(t)&&Iu(e.parentNode)||e,h=c.join(",")}if(h)try{return ou.apply(n,d.querySelectorAll(h)),n}catch(p){}finally{l||e.removeAttribute("id")}}}return ys(t.replace(hu,"$1"),e,n,r)};function Tu(){var t=[];function e(n,r){return t.push(n+" ")>ps.cacheLength&&delete e[t.shift()],e[n+" "]=r}return e}function Au(t){return t[qs]=!0,t}function Du(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||tu)-(~t.sourceIndex||tu);if(r)return r;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1}function Nu(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function Ru(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function Pu(t){return Au((function(e){return e=+e,Au((function(n,r){var i,o=t([],n.length,e),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Iu(t){return t&&typeof t.getElementsByTagName!==Qs&&t}function Bu(){}function Lu(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function zu(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=Gs++;return e.first?function(e,n,o){while(e=e[r])if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,c=[Ks,o];if(a){while(e=e[r])if((1===e.nodeType||i)&&t(e,n,a))return!0}else while(e=e[r])if(1===e.nodeType||i){if(u=e[qs]||(e[qs]={}),(s=u[r])&&s[0]===Ks&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function ju(t){return t.length>1?function(e,n,r){var i=t.length;while(i--)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Fu(t,e,n){for(var r=0,i=e.length;r<i;r++)Ou(t,e[r],n);return n}function $u(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function Hu(t,e,n,r,i,o){return r&&!r[qs]&&(r=Hu(r)),i&&!i[qs]&&(i=Hu(i,o)),Au((function(o,a,s,u){var c,l,f,d=[],h=[],p=a.length,m=o||Fu(e||"*",s.nodeType?[s]:s,[]),g=!t||!o&&e?m:$u(m,d,t,s,u),v=n?i||(o?t:p||r)?[]:a:g;if(n&&n(g,v,s,u),r){c=$u(v,h),r(c,[],s,u),l=c.length;while(l--)(f=c[l])&&(v[h[l]]=!(g[h[l]]=f))}if(o){if(i||t){if(i){c=[],l=v.length;while(l--)(f=v[l])&&c.push(g[l]=f);i(null,v=[],c,u)}l=v.length;while(l--)(f=v[l])&&(c=i?su.call(o,f):d[l])>-1&&(o[c]=!(a[c]=f))}}else v=$u(v===a?v.splice(p,v.length):v),i?i(null,a,v,u):ou.apply(a,v)}))}function Vu(t){for(var e,n,r,i=t.length,o=ps.relative[t[0].type],a=o||ps.relative[" "],s=o?1:0,u=zu((function(t){return t===e}),a,!0),c=zu((function(t){return su.call(e,t)>-1}),a,!0),l=[function(t,n,r){return!o&&(r||n!==ws)||((e=n).nodeType?u(t,n,r):c(t,n,r))}];s<i;s++)if(n=ps.relative[t[s].type])l=[zu(ju(l),n)];else{if(n=ps.filter[t[s].type].apply(null,t[s].matches),n[qs]){for(r=++s;r<i;r++)if(ps.relative[t[r].type])break;return Hu(s>1&&ju(l),s>1&&Lu(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(hu,"$1"),n,s<r&&Vu(t.slice(s,r)),r<i&&Vu(t=t.slice(r)),r<i&&Lu(t))}l.push(n)}return ju(l)}function Uu(t,e){var n=e.length>0,r=t.length>0,i=function(i,o,a,s,u){var c,l,f,d=0,h="0",p=i&&[],m=[],g=ws,v=i||r&&ps.find.TAG("*",u),b=Ks+=null==g?1:Math.random()||.1,y=v.length;for(u&&(ws=o!==Ss&&o);h!==y&&null!=(c=v[h]);h++){if(r&&c){l=0;while(f=t[l++])if(f(c,o,a)){s.push(c);break}u&&(Ks=b)}n&&((c=!f&&c)&&d--,i&&p.push(c))}if(d+=h,n&&h!==d){l=0;while(f=e[l++])f(p,m,o,a);if(i){if(d>0)while(h--)p[h]||m[h]||(m[h]=ru.call(s));m=$u(m)}ou.apply(s,m),u&&!i&&m.length>0&&d+e.length>1&&Ou.uniqueSort(s)}return u&&(Ks=b,ws=g),p};return n?Au(i):i}hs=Ou.support={},gs=Ou.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},Cs=Ou.setDocument=function(t){var e,n=t?t.ownerDocument||t:Ws,r=n.defaultView;function i(t){try{return t.top}catch(e){}return null}return n!==Ss&&9===n.nodeType&&n.documentElement?(Ss=n,ks=n.documentElement,Ms=!gs(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){Cs()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){Cs()}))),hs.attributes=!0,hs.getElementsByTagName=!0,hs.getElementsByClassName=xu.test(n.getElementsByClassName),hs.getById=!0,ps.find.ID=function(t,e){if(typeof e.getElementById!==Qs&&Ms){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},ps.filter.ID=function(t){var e=t.replace(Mu,Eu);return function(t){return t.getAttribute("id")===e}},ps.find.TAG=hs.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==Qs)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},ps.find.CLASS=hs.getElementsByClassName&&function(t,e){if(Ms)return e.getElementsByClassName(t)},Os=[],Es=[],hs.disconnectedMatch=!0,Es=Es.length&&new RegExp(Es.join("|")),Os=Os.length&&new RegExp(Os.join("|")),e=xu.test(ks.compareDocumentPosition),As=e||xu.test(ks.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},Js=e?function(t,e){if(t===e)return xs=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!hs.sortDetached&&e.compareDocumentPosition(t)===r?t===n||t.ownerDocument===Ws&&As(Ws,t)?-1:e===n||e.ownerDocument===Ws&&As(Ws,e)?1:_s?su.call(_s,t)-su.call(_s,e):0:4&r?-1:1)}:function(t,e){if(t===e)return xs=!0,0;var r,i=0,o=t.parentNode,a=e.parentNode,s=[t],u=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:_s?su.call(_s,t)-su.call(_s,e):0;if(o===a)return Du(t,e);r=t;while(r=r.parentNode)s.unshift(r);r=e;while(r=r.parentNode)u.unshift(r);while(s[i]===u[i])i++;return i?Du(s[i],u[i]):s[i]===Ws?-1:u[i]===Ws?1:0},n):Ss},Ou.matches=function(t,e){return Ou(t,null,null,e)},Ou.matchesSelector=function(t,e){if((t.ownerDocument||t)!==Ss&&Cs(t),e=e.replace(gu,"='$1']"),hs.matchesSelector&&Ms&&(!Os||!Os.test(e))&&(!Es||!Es.test(e)))try{var n=Ts.call(t,e);if(n||hs.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(gF){}return Ou(e,Ss,null,[t]).length>0},Ou.contains=function(t,e){return(t.ownerDocument||t)!==Ss&&Cs(t),As(t,e)},Ou.attr=function(t,e){(t.ownerDocument||t)!==Ss&&Cs(t);var n=ps.attrHandle[e.toLowerCase()],r=n&&eu.call(ps.attrHandle,e.toLowerCase())?n(t,e,!Ms):void 0;return void 0!==r?r:hs.attributes||!Ms?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},Ou.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},Ou.uniqueSort=function(t){var e,n=[],r=0,i=0;if(xs=!hs.detectDuplicates,_s=!hs.sortStable&&t.slice(0),t.sort(Js),xs){while(e=t[i++])e===t[i]&&(r=n.push(i));while(r--)t.splice(n[r],1)}return _s=null,t},ms=Ou.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=ms(t)}else if(3===i||4===i)return t.nodeValue}else while(e=t[r++])n+=ms(e);return n},ps=Ou.selectors={cacheLength:50,createPseudo:Au,match:yu,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Mu,Eu),t[3]=(t[3]||t[4]||t[5]||"").replace(Mu,Eu),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Ou.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Ou.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return yu.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&vu.test(n)&&(e=vs(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Mu,Eu).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Ys[t+" "];return e||(e=new RegExp("(^|"+cu+")"+t+"("+cu+"|$)"))&&Ys(t,(function(t){return e.test("string"===typeof t.className&&t.className||typeof t.getAttribute!==Qs&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=Ou.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,d,h,p,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),b=!u&&!s;if(g){if(o){while(m){f=e;while(f=f[m])if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&b){l=g[qs]||(g[qs]={}),c=l[t]||[],h=c[0]===Ks&&c[1],d=c[0]===Ks&&c[2],f=h&&g.childNodes[h];while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if(1===f.nodeType&&++d&&f===e){l[t]=[Ks,h,d];break}}else if(b&&(c=(e[qs]||(e[qs]={}))[t])&&c[0]===Ks)d=c[1];else while(f=++h&&f&&f[m]||(d=h=0)||p.pop())if((s?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(b&&((f[qs]||(f[qs]={}))[t]=[Ks,d]),f===e))break;return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(t,e){var n,r=ps.pseudos[t]||ps.setFilters[t.toLowerCase()]||Ou.error("unsupported pseudo: "+t);return r[qs]?r(e):r.length>1?(n=[t,t,"",e],ps.setFilters.hasOwnProperty(t.toLowerCase())?Au((function(t,n){var i,o=r(t,e),a=o.length;while(a--)i=su.call(t,o[a]),t[i]=!(n[i]=o[a])})):function(t){return r(t,0,n)}):r}},pseudos:{not:Au((function(t){var e=[],n=[],r=bs(t.replace(hu,"$1"));return r[qs]?Au((function(t,e,n,i){var o,a=r(t,null,i,[]),s=t.length;while(s--)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),!n.pop()}})),has:Au((function(t){return function(e){return Ou(t,e).length>0}})),contains:Au((function(t){return t=t.replace(Mu,Eu),function(e){return(e.textContent||e.innerText||ms(e)).indexOf(t)>-1}})),lang:Au((function(t){return bu.test(t||"")||Ou.error("unsupported lang: "+t),t=t.replace(Mu,Eu).toLowerCase(),function(e){var n;do{if(n=Ms?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=window.location&&window.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===ks},focus:function(t){return t===Ss.activeElement&&(!Ss.hasFocus||Ss.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!ps.pseudos.empty(t)},header:function(t){return _u.test(t.nodeName)},input:function(t){return wu.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:Pu((function(){return[0]})),last:Pu((function(t,e){return[e-1]})),eq:Pu((function(t,e,n){return[n<0?n+e:n]})),even:Pu((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:Pu((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:Pu((function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t})),gt:Pu((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},ps.pseudos.nth=ps.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(t){ps.pseudos[t]=Nu(t)})),Z(["submit","reset"],(function(t){ps.pseudos[t]=Ru(t)})),Bu.prototype=ps.filters=ps.pseudos,ps.setFilters=new Bu,vs=Ou.tokenize=function(t,e){var n,r,i,o,a,s,u,c=Xs[t+" "];if(c)return e?0:c.slice(0);a=t,s=[],u=ps.preFilter;while(a){for(o in n&&!(r=pu.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=mu.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(hu," ")}),a=a.slice(n.length)),ps.filter)ps.filter.hasOwnProperty(o)&&(!(r=yu[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return e?a.length:a?Ou.error(t):Xs(t,s).slice(0)},bs=Ou.compile=function(t,e){var n,r=[],i=[],o=Zs[t+" "];if(!o){e||(e=vs(t)),n=e.length;while(n--)o=Vu(e[n]),o[qs]?r.push(o):i.push(o);o=Zs(t,Uu(i,r)),o.selector=t}return o},ys=Ou.select=function(t,e,n,r){var i,o,a,s,u,c="function"===typeof t&&t,l=!r&&vs(t=c.selector||t);if(n=n||[],1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&hs.getById&&9===e.nodeType&&Ms&&ps.relative[o[1].type]){if(e=(ps.find.ID(a.matches[0].replace(Mu,Eu),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}i=yu.needsContext.test(t)?0:o.length;while(i--){if(a=o[i],ps.relative[s=a.type])break;if((u=ps.find[s])&&(r=u(a.matches[0].replace(Mu,Eu),Su.test(o[0].type)&&Iu(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&Lu(o),!t)return ou.apply(n,r),n;break}}}return(c||bs(t,l))(r,e,!Ms,n,Su.test(t)&&Iu(e.parentNode)||e),n},hs.sortStable=qs.split("").sort(Js).join("")===qs,hs.detectDuplicates=!!xs,Cs(),hs.sortDetached=!0;var qu=document,Wu=Array.prototype.push,Ku=Array.prototype.slice,Gu=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Yu=Us.Event,Xu=ln.makeMap("children,contents,next,prev"),Zu=function(t){return"undefined"!==typeof t},Ju=function(t){return"string"===typeof t},Qu=function(t){return t&&t===t.window},tc=function(t,e){e=e||qu;var n,r=e.createElement("div"),i=e.createDocumentFragment();r.innerHTML=t;while(n=r.firstChild)i.appendChild(n);return i},ec=function(t,e,n,r){var i;if(Ju(e))e=tc(e,gc(t[0]));else if(e.length&&!e.nodeType){if(e=wc.makeArray(e),r)for(i=e.length-1;i>=0;i--)ec(t,e[i],n,r);else for(i=0;i<e.length;i++)ec(t,e[i],n,r);return t}if(e.nodeType){i=t.length;while(i--)n.call(t[i],e)}return t},nc=function(t,e){return t&&e&&-1!==(" "+t.className+" ").indexOf(" "+e+" ")},rc=function(t,e,n){var r,i;return e=wc(e)[0],t.each((function(){var t=this;n&&r===t.parentNode||(r=t.parentNode,i=e.cloneNode(!1),t.parentNode.insertBefore(i,t)),i.appendChild(t)})),t},ic=ln.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),oc=ln.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),ac={for:"htmlFor",class:"className",readonly:"readOnly"},sc={float:"cssFloat"},uc={},cc={},lc=function(t,e){return new wc.fn.init(t,e)},fc=function(t,e){var n;if(e.indexOf)return e.indexOf(t);n=e.length;while(n--)if(e[n]===t)return n;return-1},dc=/^\s*|\s*$/g,hc=function(t){return null===t||void 0===t?"":(""+t).replace(dc,"")},pc=function(t,e){var n,r,i,o;if(t)if(n=t.length,void 0===n){for(r in t)if(t.hasOwnProperty(r)&&(o=t[r],!1===e.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=t[i],!1===e.call(o,i,o))break;return t},mc=function(t,e){var n=[];return pc(t,(function(t,r){e(r,t)&&n.push(r)})),n},gc=function(t){return t?9===t.nodeType?t:t.ownerDocument:qu};lc.fn=lc.prototype={constructor:lc,selector:"",context:null,length:0,init:function(t,e){var n,r,i=this;if(!t)return i;if(t.nodeType)return i.context=i[0]=t,i.length=1,i;if(e&&e.nodeType)i.context=e;else{if(e)return wc(t).attr(e);i.context=e=document}if(Ju(t)){if(i.selector=t,n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:Gu.exec(t),!n)return wc(e).find(t);if(n[1]){r=tc(t,gc(e)).firstChild;while(r)Wu.call(i,r),r=r.nextSibling}else{if(r=gc(e).getElementById(n[2]),!r)return i;if(r.id!==n[2])return i.find(t);i.length=1,i[0]=r}}else this.add(t,!1);return i},toArray:function(){return ln.toArray(this)},add:function(t,e){var n,r,i=this;if(Ju(t))return i.add(wc(t));if(!1!==e)for(n=wc.unique(i.toArray().concat(wc.makeArray(t))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else Wu.apply(i,wc.makeArray(t));return i},attr:function(t,e){var n,r=this;if("object"===typeof t)pc(t,(function(t,e){r.attr(t,e)}));else{if(!Zu(e)){if(r[0]&&1===r[0].nodeType){if(n=uc[t],n&&n.get)return n.get(r[0],t);if(oc[t])return r.prop(t)?t:void 0;e=r[0].getAttribute(t,2),null===e&&(e=void 0)}return e}this.each((function(){var n;if(1===this.nodeType){if(n=uc[t],n&&n.set)return void n.set(this,e);null===e?this.removeAttribute(t,2):this.setAttribute(t,e,2)}}))}return r},removeAttr:function(t){return this.attr(t,null)},prop:function(t,e){var n=this;if(t=ac[t]||t,"object"===typeof t)pc(t,(function(t,e){n.prop(t,e)}));else{if(!Zu(e))return n[0]&&n[0].nodeType&&t in n[0]?n[0][t]:e;this.each((function(){1===this.nodeType&&(this[t]=e)}))}return n},css:function(t,e){var n,r,i=this,o=function(t){return t.replace(/-(\D)/g,(function(t,e){return e.toUpperCase()}))},a=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t}))};if("object"===typeof t)pc(t,(function(t,e){i.css(t,e)}));else if(Zu(e))t=o(t),"number"!==typeof e||ic[t]||(e=e.toString()+"px"),i.each((function(){var n=this.style;if(r=cc[t],r&&r.set)r.set(this,e);else{try{this.style[sc[t]||t]=e}catch(i){}null!==e&&""!==e||(n.removeProperty?n.removeProperty(a(t)):n.removeAttribute(t))}}));else{if(n=i[0],r=cc[t],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(t)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(t))}catch(s){return}}return i},remove:function(){var t,e=this,n=this.length;while(n--)t=e[n],Yu.clean(t),t.parentNode&&t.parentNode.removeChild(t);return this},empty:function(){var t,e=this,n=this.length;while(n--){t=e[n];while(t.firstChild)t.removeChild(t.firstChild)}return this},html:function(t){var e,n=this;if(Zu(t)){e=n.length;try{while(e--)n[e].innerHTML=t}catch(r){wc(n[e]).empty().append(t)}return n}return n[0]?n[0].innerHTML:""},text:function(t){var e,n=this;if(Zu(t)){e=n.length;while(e--)"innerText"in n[e]?n[e].innerText=t:n[0].textContent=t;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return ec(this,arguments,(function(t){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(t)}))},prepend:function(){return ec(this,arguments,(function(t){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(t,this.firstChild)}),!0)},before:function(){var t=this;return t[0]&&t[0].parentNode?ec(t,arguments,(function(t){this.parentNode.insertBefore(t,this)})):t},after:function(){var t=this;return t[0]&&t[0].parentNode?ec(t,arguments,(function(t){this.parentNode.insertBefore(t,this.nextSibling)}),!0):t},appendTo:function(t){return wc(t).append(this),this},prependTo:function(t){return wc(t).prepend(this),this},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){return rc(this,t)},wrapAll:function(t){return rc(this,t,!0)},wrapInner:function(t){return this.each((function(){wc(this).contents().wrapAll(t)})),this},unwrap:function(){return this.parent().each((function(){wc(this).replaceWith(this.childNodes)}))},clone:function(){var t=[];return this.each((function(){t.push(this.cloneNode(!0))})),wc(t)},addClass:function(t){return this.toggleClass(t,!0)},removeClass:function(t){return this.toggleClass(t,!1)},toggleClass:function(t,e){var n=this;return"string"!==typeof t||(-1!==t.indexOf(" ")?pc(t.split(" "),(function(){n.toggleClass(this,e)})):n.each((function(n,r){var i=nc(r,t);if(i!==e){var o=r.className;i?r.className=hc((" "+o+" ").replace(" "+t+" "," ")):r.className+=o?" "+t:t}}))),n},hasClass:function(t){return nc(this[0],t)},each:function(t){return pc(this,t)},on:function(t,e){return this.each((function(){Yu.bind(this,t,e)}))},off:function(t,e){return this.each((function(){Yu.unbind(this,t,e)}))},trigger:function(t){return this.each((function(){"object"===typeof t?Yu.fire(this,t.type,t):Yu.fire(this,t)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new wc(Ku.apply(this,arguments))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(t){var e,n,r=[];for(e=0,n=this.length;e<n;e++)wc.find(t,this[e],r);return wc(r)},filter:function(t){return wc("function"===typeof t?mc(this.toArray(),(function(e,n){return t(n,e)})):wc.filter(t,this.toArray()))},closest:function(t){var e=[];return t instanceof wc&&(t=t[0]),this.each((function(n,r){while(r){if("string"===typeof t&&wc(r).is(t)){e.push(r);break}if(r===t){e.push(r);break}r=r.parentNode}})),wc(e)},offset:function(t){var e,n,r,i,o=0,a=0;return t?this.css(t):(e=this[0],e&&(n=e.ownerDocument,r=n.documentElement,e.getBoundingClientRect&&(i=e.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:Wu,sort:Array.prototype.sort,splice:Array.prototype.splice},ln.extend(lc,{extend:ln.extend,makeArray:function(t){return Qu(t)||t.nodeType?[t]:ln.toArray(t)},inArray:fc,isArray:ln.isArray,each:pc,trim:hc,grep:mc,find:Ou,expr:Ou.selectors,unique:Ou.uniqueSort,text:Ou.getText,contains:Ou.contains,filter:function(t,e,n){var r=e.length;n&&(t=":not("+t+")");while(r--)1!==e[r].nodeType&&e.splice(r,1);return e=1===e.length?wc.find.matchesSelector(e[0],t)?[e[0]]:[]:wc.find.matches(t,e),e}});var vc=function(t,e,n){var r=[],i=t[e];"string"!==typeof n&&n instanceof wc&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&wc(i).is(n))break}1===i.nodeType&&r.push(i),i=i[e]}return r},bc=function(t,e,n,r){var i=[];for(r instanceof wc&&(r=r[0]);t;t=t[e])if(!n||t.nodeType===n){if(void 0!==r){if(t===r)break;if("string"===typeof r&&wc(t).is(r))break}i.push(t)}return i},yc=function(t,e,n){for(t=t[e];t;t=t[e])if(t.nodeType===n)return t;return null};pc({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return vc(t,"parentNode")},next:function(t){return yc(t,"nextSibling",1)},prev:function(t){return yc(t,"previousSibling",1)},children:function(t){return bc(t.firstChild,"nextSibling",1)},contents:function(t){return ln.toArray(("iframe"===t.nodeName?t.contentDocument||t.contentWindow.document:t).childNodes)}},(function(t,e){lc.fn[t]=function(n){var r=this,i=[];r.each((function(){var t=e.call(i,this,n,i);t&&(wc.isArray(t)?i.push.apply(i,t):i.push(t))})),this.length>1&&(Xu[t]||(i=wc.unique(i)),0===t.indexOf("parents")&&(i=i.reverse()));var o=wc(i);return n?o.filter(n):o}})),pc({parentsUntil:function(t,e){return vc(t,"parentNode",e)},nextUntil:function(t,e){return bc(t,"nextSibling",1,e).slice(1)},prevUntil:function(t,e){return bc(t,"previousSibling",1,e).slice(1)}},(function(t,e){lc.fn[t]=function(n,r){var i=this,o=[];i.each((function(){var t=e.call(o,this,n,o);t&&(wc.isArray(t)?o.push.apply(o,t):o.push(t))})),this.length>1&&(o=wc.unique(o),0!==t.indexOf("parents")&&"prevUntil"!==t||(o=o.reverse()));var a=wc(o);return r?a.filter(r):a}})),lc.fn.is=function(t){return!!t&&this.filter(t).length>0},lc.fn.init.prototype=lc.fn,lc.overrideDefaults=function(t){var e,n=function(r,i){return e=e||t(),0===arguments.length&&(r=e.element),i||(i=e.context),new n.fn.init(r,i)};return wc.extend(n,this),n},lc.attrHooks=uc,lc.cssHooks=cc;var wc=lc,_c=ln.each,xc=ln.grep,Cc=Xe.ie,Sc=/^([a-z0-9],?)+$/i,kc=function(t,e,n){var r=e.keep_values,i={set:function(t,r,i){e.url_converter&&(r=e.url_converter.call(e.url_converter_scope||n(),r,i,t[0])),t.attr("data-mce-"+i,r).attr(i,r)},get:function(t,e){return t.attr("data-mce-"+e)||t.attr(e)}},o={style:{set:function(e,n){null===n||"object"!==typeof n?(r&&e.attr("data-mce-style",n),null!==n&&"string"===typeof n?(e.removeAttr("style"),e.css(t.parse(n))):e.attr("style",n)):e.css(n)},get:function(e){var n=e.attr("data-mce-style")||e.attr("style");return n=t.serialize(t.parse(n),e[0].nodeName),n}}};return r&&(o.href=o.src=i),o},Mc=function(t,e){var n=e.attr("style"),r=t.serialize(t.parse(n),e[0].nodeName);r||(r=null),e.attr("data-mce-style",r)},Ec=function(t,e){var n,r,i=0;if(t)for(n=t.nodeType,t=t.previousSibling;t;t=t.previousSibling)r=t.nodeType,(!e||3!==r||r!==n&&t.nodeValue.length)&&(i++,n=r);return i};function Oc(t,e){var n=this;void 0===e&&(e={});var r={},i=window,o={},a=0,s=!0,u=!0,c=fo.forElement(gn.fromDom(t),{contentCssCors:e.contentCssCors,referrerPolicy:e.referrerPolicy}),l=[],f=e.schema?e.schema:ds({}),d=Ns({url_converter:e.url_converter,url_converter_scope:e.url_converter_scope},e.schema),p=e.ownEvents?new Us:Us.Event,m=f.getBlockElements(),g=wc.overrideDefaults((function(){return{context:t,element:Dt.getRoot()}})),v=function(t){if("string"===typeof t)return!!m[t];if(t){var e=t.nodeType;if(e)return!(1!==e||!m[t.nodeName])}return!1},b=function(e){return e&&t&&R(e)?t.getElementById(e):e},y=function(t){return g("string"===typeof t?b(t):t)},w=function(t,e,n){var r,i,o=y(t);return o.length&&(r=Nt[e],i=r&&r.get?r.get(o,e):o.attr(e)),"undefined"===typeof i&&(i=n||""),i},_=function(t){var e=b(t);return e?e.attributes:[]},x=function(t,n,r){""===r&&(r=null);var i=y(t),o=i.attr(n);if(i.length){var a=Nt[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&e.onSetAttrib&&e.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},C=function(e,n){if(!Cc||1!==e.nodeType||n)return e.cloneNode(n);var r=t.createElement(e.nodeName);return _c(_(e),(function(t){x(r,t.nodeName,w(e,t.nodeName))})),r},S=function(){return e.root_element||t.body},k=function(t){var e=Ir(t);return{x:e.x,y:e.y,w:e.width,h:e.height}},M=function(e,n){return Si(t.body,b(e),n)},E=function(t,n,r){var i=R(n)?y(t).css(n,r):y(t).css(n);e.update_styles&&Mc(d,i)},O=function(t,n){var r=y(t).css(n);e.update_styles&&Mc(d,r)},T=function(t,e,n){var r=y(t);return n?r.css(e):(e=e.replace(/-(\D)/g,(function(t,e){return e.toUpperCase()})),"float"===e&&(e=Xe.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[e]:void 0)},A=function(t){var e,n;return t=b(t),e=T(t,"width"),n=T(t,"height"),-1===e.indexOf("px")&&(e=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(e,10)||t.offsetWidth||t.clientWidth,h:parseInt(n,10)||t.offsetHeight||t.clientHeight}},D=function(t){t=b(t);var e=M(t),n=A(t);return{x:e.x,y:e.y,w:n.w,h:n.h}},N=function(t,e){var n;if(!t)return!1;if(!Array.isArray(t)){if("*"===e)return 1===t.nodeType;if(Sc.test(e)){var r=e.toLowerCase().split(/,/),i=t.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(t.nodeType&&1!==t.nodeType)return!1}var o=Array.isArray(t)?t:[t];return Ou(e,o[0].ownerDocument||o[0],null,o).length>0},P=function(t,e,n,r){var i,o=[],a=b(t);r=void 0===r,n=n||("BODY"!==S().nodeName?S().parentNode:null),ln.is(e,"string")&&(i=e,e="*"===e?function(t){return 1===t.nodeType}:function(t){return N(t,i)});while(a){if(a===n||j(a.nodeType)||Xr(a)||Zr(a))break;if(!e||"function"===typeof e&&e(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},I=function(t,e,n){var r=P(t,e,n,!1);return r&&r.length>0?r[0]:null},B=function(t,e,n){var r=e;if(t)for("string"===typeof e&&(r=function(t){return N(t,e)}),t=t[n];t;t=t[n])if("function"===typeof r&&r(t))return t;return null},L=function(t,e){return B(t,e,"nextSibling")},z=function(t,e){return B(t,e,"previousSibling")},F=function(n,r){return Ou(n,b(r)||e.root_element||t,[])},$=function(t,e,r){var i,o="string"===typeof t?b(t):t;if(!o)return!1;if(ln.isArray(o)&&(o.length||0===o.length))return i=[],_c(o,(function(t,n){t&&i.push(e.call(r,"string"===typeof t?b(t):t,n))})),i;var a=r||n;return e.call(a,o)},H=function(t,e){y(t).each((function(t,n){_c(e,(function(t,e){x(n,e,t)}))}))},V=function(t,e){var n=y(t);Cc?n.each((function(t,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+e,n.removeChild(n.firstChild)}catch(r){wc("<div></div>").html("<br>"+e).contents().slice(1).appendTo(n)}return e}})):n.html(e)},U=function(e,n,r,i,o){return $(e,(function(e){var a="string"===typeof n?t.createElement(n):n;return H(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&V(a,i)),o?a:e.appendChild(a)}))},q=function(e,n,r){return U(t.createElement(e),e,n,r,!0)},W=es.decode,K=es.encodeAllRaw,G=function(t,e,n){var r,i="";for(r in i+="<"+t,e)e.hasOwnProperty(r)&&null!==e[r]&&"undefined"!==typeof e[r]&&(i+=" "+r+'="'+K(e[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+t+">":i+" />"},Y=function(e){var n,r=t.createElement("div"),i=t.createDocumentFragment();i.appendChild(r),e&&(r.innerHTML=e);while(n=r.firstChild)i.appendChild(n);return i.removeChild(r),i},X=function(t,e){var n=y(t);return e?n.each((function(){var t;while(t=this.firstChild)3===t.nodeType&&0===t.data.length?this.removeChild(t):this.parentNode.insertBefore(t,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},J=function(t){return $(t,(function(t){var e,n=t.attributes;for(e=n.length-1;e>=0;e--)t.removeAttributeNode(n.item(e))}))},Q=function(t){return d.parse(t)},tt=function(t,e){return d.serialize(t,e)},et=function(e){var n,i;if(Dt!==Oc.DOM&&t===document){if(r[e])return;r[e]=!0}i=t.getElementById("mceDefaultStyles"),i||(i=t.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",n=t.getElementsByTagName("head")[0],n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=e:i.appendChild(t.createTextNode(e))},nt=function(t){t||(t=""),Z(t.split(","),(function(t){o[t]=!0,c.load(t,h)}))},rt=function(t,e,n){y(t).toggleClass(e,n).each((function(){""===this.className&&wc(this).attr("class",null)}))},it=function(t,e){y(t).addClass(e)},ot=function(t,e){rt(t,e,!1)},at=function(t,e){return y(t).hasClass(e)},st=function(t){y(t).show()},ut=function(t){y(t).hide()},ct=function(t){return"none"===y(t).css("display")},lt=function(t){return(t||"mce_")+a++},ft=function(t){var e="string"===typeof t?b(t):t;return zr(e)?e.outerHTML:wc("<div></div>").append(wc(e).clone()).html()},dt=function(t,e){y(t).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=e)}catch(t){}X(wc(this).html(e),!0)}))},ht=function(t,e){var n=b(e);return $(t,(function(t){var e=n.parentNode,r=n.nextSibling;return r?e.insertBefore(t,r):e.appendChild(t),t}))},pt=function(t,e,n){return $(e,(function(e){return ln.is(e,"array")&&(t=t.cloneNode(!0)),n&&_c(xc(e.childNodes),(function(e){t.appendChild(e)})),e.parentNode.replaceChild(t,e)}))},mt=function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=q(e),_c(_(t),(function(e){x(n,e.nodeName,w(t,e.nodeName))})),pt(n,t,!0)),n||t},gt=function(t,e){var n,r=t;while(r){n=e;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&t.ownerDocument?t.ownerDocument.documentElement:r},vt=function(t){return d.toHex(ln.trim(t))},bt=function(t){if(zr(t)){var e="a"===t.nodeName.toLowerCase()&&!w(t,"href")&&w(t,"id");if(w(t,"name")||w(t,"data-mce-bookmark")||e)return!0}return!1},yt=function(t,e){var n,r,i=0;if(bt(t))return!1;if(t=t.firstChild,t){var o=new ho(t,t.parentNode),a=f?f.getWhiteSpaceElements():{};e=e||(f?f.getNonEmptyElements():null);do{if(n=t.nodeType,zr(t)){var s=t.getAttribute("data-mce-bogus");if(s){t=o.next("all"===s);continue}if(r=t.nodeName.toLowerCase(),e&&e[r]){if("br"===r){i++,t=o.next();continue}return!1}if(bt(t))return!1}if(8===n)return!1;if(3===n&&!wa(t.nodeValue))return!1;if(3===n&&t.parentNode&&a[t.parentNode.nodeName]&&wa(t.nodeValue))return!1;t=o.next()}while(t)}return i<=1},_t=function(){return t.createRange()},xt=function(t,e,n){var r,i,o,a=_t();if(t&&e)return a.setStart(t.parentNode,Ec(t)),a.setEnd(e.parentNode,Ec(e)),r=a.extractContents(),a=_t(),a.setStart(e.parentNode,Ec(e)+1),a.setEnd(t.parentNode,Ec(t)+1),i=a.extractContents(),o=t.parentNode,o.insertBefore(La(Dt,r),t),n?o.insertBefore(n,t):o.insertBefore(e,t),o.insertBefore(La(Dt,i),t),X(t),n||e},Ct=function(n,r,o,a){if(ln.isArray(n)){var s=n.length,u=[];while(s--)u[s]=Ct(n[s],r,o,a);return u}!e.collect||n!==t&&n!==i||l.push([n,r,o,a]);var c=p.bind(n,r,o,a||Dt);return c},St=function(e,n,r){if(ln.isArray(e)){var o=e.length,a=[];while(o--)a[o]=St(e[o],n,r);return a}if(l.length>0&&(e===t||e===i)){o=l.length;while(o--){var s=l[o];e!==s[0]||n&&n!==s[1]||r&&r!==s[2]||p.unbind(s[0],s[1],s[2])}}return p.unbind(e,n,r)},kt=function(t,e,n){return p.fire(t,e,n)},Mt=function(t){if(t&&zr(t)){var e=t.getAttribute("data-mce-contenteditable");return e&&"inherit"!==e?e:"inherit"!==t.contentEditable?t.contentEditable:null}return null},Et=function(t){for(var e=S(),n=null;t&&t!==e;t=t.parentNode)if(n=Mt(t),null!==n)break;return n},Ot=function(){if(l.length>0){var t=l.length;while(t--){var e=l[t];p.unbind(e[0],e[1],e[2])}}wt(o,(function(t,e){c.unload(e),delete o[e]})),Ou.setDocument&&Ou.setDocument()},Tt=function(t,e){while(t){if(e===t)return!0;t=t.parentNode}return!1},At=function(t){return"startContainer: "+t.startContainer.nodeName+", startOffset: "+t.startOffset+", endContainer: "+t.endContainer.nodeName+", endOffset: "+t.endOffset},Dt={doc:t,settings:e,win:i,files:o,stdMode:s,boxModel:u,styleSheetLoader:c,boundEvents:l,styles:d,schema:f,events:p,isBlock:v,$:g,$$:y,root:null,clone:C,getRoot:S,getViewPort:k,getRect:D,getSize:A,getParent:I,getParents:P,get:b,getNext:L,getPrev:z,select:F,is:N,add:U,create:q,createHTML:G,createFragment:Y,remove:X,setStyle:E,getStyle:T,setStyles:O,removeAllAttribs:J,setAttrib:x,setAttribs:H,getAttrib:w,getPos:M,parseStyle:Q,serializeStyle:tt,addStyle:et,loadCSS:nt,addClass:it,removeClass:ot,hasClass:at,toggleClass:rt,show:st,hide:ut,isHidden:ct,uniqueId:lt,setHTML:V,getOuterHTML:ft,setOuterHTML:dt,decode:W,encode:K,insertAfter:ht,replace:pt,rename:mt,findCommonAncestor:gt,toHex:vt,run:$,getAttribs:_,isEmpty:yt,createRng:_t,nodeIndex:Ec,split:xt,bind:Ct,unbind:St,fire:kt,getContentEditable:Mt,getContentEditableParent:Et,destroy:Ot,isChildOf:Tt,dumpRng:At},Nt=kc(d,e,(function(){return Dt}));return Dt}(function(t){t.DOM=t(document),t.nodeIndex=Ec})(Oc||(Oc={}));var Tc=Oc,Ac=Tc.DOM,Dc=ln.each,Nc=ln.grep,Rc=0,Pc=1,Ic=2,Bc=3,Lc=function(){function t(t){void 0===t&&(t={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=t}return t.prototype._setReferrerPolicy=function(t){this.settings.referrerPolicy=t},t.prototype.loadScript=function(t,e,n){var r,i=Ac,o=function(){i.remove(u),r&&(r.onerror=r.onload=r=null)},a=function(){o(),e()},s=function(){o(),$(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+t)},u=i.uniqueId();r=document.createElement("script"),r.id=u,r.type="text/javascript",r.src=ln._addCacheSuffix(t),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},t.prototype.isDone=function(t){return this.states[t]===Ic},t.prototype.markDone=function(t){this.states[t]=Ic},t.prototype.add=function(t,e,n,r){var i=this.states[t];this.queue.push(t),void 0===i&&(this.states[t]=Rc),e&&(this.scriptLoadedCallbacks[t]||(this.scriptLoadedCallbacks[t]=[]),this.scriptLoadedCallbacks[t].push({success:e,failure:r,scope:n||this}))},t.prototype.load=function(t,e,n,r){return this.add(t,e,n,r)},t.prototype.remove=function(t){delete this.states[t],delete this.scriptLoadedCallbacks[t]},t.prototype.loadQueue=function(t,e,n){this.loadScripts(this.queue,t,e,n)},t.prototype.loadScripts=function(t,e,n,r){var i=this,o=[],a=function(t,e){Dc(i.scriptLoadedCallbacks[e],(function(e){$(e[t])&&e[t].call(e.scope)})),i.scriptLoadedCallbacks[e]=void 0};i.queueLoadedCallbacks.push({success:e,failure:r,scope:n||this});var s=function(){var e=Nc(t);if(t.length=0,Dc(e,(function(t){i.states[t]!==Ic?i.states[t]!==Bc?i.states[t]!==Pc&&(i.states[t]=Pc,i.loading++,i.loadScript(t,(function(){i.states[t]=Ic,i.loading--,a("success",t),s()}),(function(){i.states[t]=Bc,i.loading--,o.push(t),a("failure",t),s()}))):a("failure",t):a("success",t)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Dc(n,(function(t){0===o.length?$(t.success)&&t.success.call(t.scope):$(t.failure)&&t.failure.call(t.scope,o)}))}};s()},t.ScriptLoader=new t,t}(),zc=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},jc=function(t){return P(t)&&At(t,"raw")},Fc=function(t){return I(t)&&t.length>1},$c={},Hc=zc("en"),Vc=function(){return Tt($c,Hc.get())},Uc=function(){return _t($c,(function(t){return Ht({},t)}))},qc=function(t){t&&Hc.set(t)},Wc=function(){return Hc.get()},Kc=function(t,e){var n=$c[t];n||($c[t]=n={}),wt(e,(function(t,e){n[e.toLowerCase()]=t}))},Gc=function(t){var e=Vc().getOr({}),n=function(t){return $(t)?Object.prototype.toString.call(t):r(t)?"":""+t},r=function(t){return""===t||null===t||void 0===t},i=function(t){var r=n(t);return Tt(e,r.toLowerCase()).map(n).getOr(r)},o=function(t){return t.replace(/{context:\w+}$/,"")};if(r(t))return"";if(jc(t))return n(t.raw);if(Fc(t)){var a=t.slice(1),s=i(t[0]).replace(/\{([0-9]+)\}/g,(function(t,e){return At(a,e)?n(a[e]):t}));return o(s)}return o(i(t))},Yc=function(){return Vc().bind((function(t){return Tt(t,"_dir")})).exists((function(t){return"rtl"===t}))},Xc=function(t){return At($c,t)},Zc={getData:Uc,setCode:qc,getCode:Wc,add:Kc,translate:Gc,isRtl:Yc,hasCode:Xc};function Jc(){var t=this,e=[],n={},r={},i=[],o=function(t,e){var n=tt(i,(function(n){return n.name===t&&n.state===e}));Z(n,(function(t){return t.callback()}))},a=function(t){if(r[t])return r[t].instance},s=function(t){var e;return r[t]&&(e=r[t].dependencies),e||[]},u=function(t,e){!1!==Jc.languageLoad&&m(t,(function(){var r=Zc.getCode(),i=","+(e||"")+",";!r||e&&-1===i.indexOf(","+r+",")||Lc.ScriptLoader.add(n[t]+"/langs/"+r+".js")}),"loaded")},c=function(t,n,i){var a=n;return e.push(a),r[t]={instance:a,dependencies:i},o(t,"added"),a},l=function(t){delete n[t],delete r[t]},f=function(t,e){return"object"===typeof e?e:"string"===typeof t?{prefix:"",resource:e,suffix:""}:{prefix:t.prefix,resource:e,suffix:t.suffix}},d=function(e,n){var r=t.urls[e];Z(n,(function(t){Lc.ScriptLoader.add(r+"/"+t)}))},h=function(t,e,n,r){var i=s(t);Z(i,(function(t){var n=f(e,t);p(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Lc))},p=function(t,e,i,a,s){if(!n[t]){var u="string"===typeof e?e:e.prefix+e.resource+e.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=Jc.baseURL+"/"+u),n[t]=u.substring(0,u.lastIndexOf("/"));var c=function(){o(t,"loaded"),h(t,e,i,a)};r[t]?c():Lc.ScriptLoader.add(u,c,a,s)}},m=function(t,e,o){void 0===o&&(o="added"),At(r,t)&&"added"===o||At(n,t)&&"loaded"===o?e():i.push({name:t,state:o,callback:e})};return{items:e,urls:n,lookup:r,_listeners:i,get:a,dependencies:s,requireLangPack:u,add:c,remove:l,createUrl:f,addComponents:d,load:p,waitFor:m}}(function(t){t.PluginManager=t(),t.ThemeManager=t()})(Jc||(Jc={}));var Qc=Jc,tl=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null===n&&(n=setTimeout((function(){t.apply(null,r),n=null}),e))};return{cancel:r,throttle:i}},el=function(t,e){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((function(){t.apply(null,r),n=null}),e)};return{cancel:r,throttle:i}},nl=function(t,e){var n=ui(t,e);return void 0===n||""===n?[]:n.split(" ")},rl=function(t,e,n){var r=nl(t,e),i=r.concat([n]);return ai(t,e,i.join(" ")),!0},il=function(t,e,n){var r=tt(nl(t,e),(function(t){return t!==n}));return r.length>0?ai(t,e,r.join(" ")):fi(t,e),!1},ol=function(t){return void 0!==t.dom.classList},al=function(t){return nl(t,"class")},sl=function(t,e){return rl(t,"class",e)},ul=function(t,e){return il(t,"class",e)},cl=function(t,e){ol(t)?t.dom.classList.add(e):sl(t,e)},ll=function(t){var e=ol(t)?t.dom.classList:al(t);0===e.length&&fi(t,"class")},fl=function(t,e){if(ol(t)){var n=t.dom.classList;n.remove(e)}else ul(t,e);ll(t)},dl=function(t,e){return ol(t)&&t.dom.classList.contains(e)},hl=function(t,e){var n=[];return Z(Jn(t),(function(t){e(t)&&(n=n.concat([t])),n=n.concat(hl(t,e))})),n},pl=function(t,e){return En(e,t)},ml=g("mce-annotation"),gl=g("data-mce-annotation"),vl=g("data-mce-annotation-uid"),bl=function(t,e){var n=t.selection.getRng(),r=gn.fromDom(n.startContainer),i=gn.fromDom(t.getBody()),o=e.fold((function(){return"."+ml()}),(function(t){return"["+gl()+'="'+t+'"]'})),a=Qn(r,n.startOffset).getOr(r),s=Qi(a,o,(function(t){return Tn(t,i)})),u=function(t,e){return li(t,e)?O.some(ui(t,e)):O.none()};return s.bind((function(e){return u(e,""+vl()).bind((function(n){return u(e,""+gl()).map((function(e){var r=wl(t,n);return{uid:n,name:e,elements:r}}))}))}))},yl=function(t){return Ln(t)&&dl(t,ml())},wl=function(t,e){var n=gn.fromDom(t.getBody());return pl(n,"["+vl()+'="'+e+'"]')},_l=function(t,e){var n=gn.fromDom(t.getBody()),r=pl(n,"["+gl()+'="'+e+'"]'),i={};return Z(r,(function(t){var e=ui(t,vl()),n=i.hasOwnProperty(e)?i[e]:[];i[e]=n.concat([t])})),i},xl=function(t,e){var n=zc({}),r=function(){return{listeners:[],previous:zc(O.none())}},i=function(t,e){o(t,(function(t){return e(t),t}))},o=function(t,e){var i=n.get(),o=i.hasOwnProperty(t)?i[t]:r(),a=e(o);i[t]=a,n.set(i)},a=function(t,e,n){i(t,(function(r){Z(r.listeners,(function(r){return r(!0,t,{uid:e,nodes:X(n,(function(t){return t.dom}))})}))}))},s=function(t){i(t,(function(e){Z(e.listeners,(function(e){return e(!1,t)}))}))},u=el((function(){var e=n.get(),r=dt(bt(e));Z(r,(function(e){o(e,(function(n){var r=n.previous.get();return bl(t,O.some(e)).fold((function(){r.isSome()&&(s(e),n.previous.set(O.none()))}),(function(t){var e=t.uid,i=t.name,o=t.elements;r.is(e)||(a(i,e,o),n.previous.set(O.some(e)))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);t.on("remove",(function(){u.cancel()})),t.on("NodeChange",(function(){u.throttle()}));var c=function(t,e){o(t,(function(t){return{previous:t.previous,listeners:t.listeners.concat([e])}}))};return{addListener:c}},Cl=function(t,e){var n=function(t){return O.from(t.attr(gl())).bind(e.lookup)};t.on("init",(function(){t.serializer.addNodeFilter("span",(function(t){Z(t,(function(t){n(t).each((function(e){!1===e.persistent&&t.unwrap()}))}))}))}))},Sl=function(){var t={},e=function(e,n){t[e]={name:e,settings:n}},n=function(e){return t.hasOwnProperty(e)?O.from(t[e]).map((function(t){return t.settings})):O.none()};return{register:e,lookup:n}},kl=0,Ml=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return kl++,t+"_"+r+kl+String(n)},El=function(t,e){Z(e,(function(e){cl(t,e)}))},Ol=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,Jn(gn.fromDom(r))},Tl=function(t){return t.dom.innerHTML},Al=function(t,e){var n=$n(t),r=n.dom,i=gn.fromDom(r.createDocumentFragment()),o=Ol(e,r);yr(i,o),wr(t),gr(t,i)},Dl=function(t,e){return gn.fromDom(t.dom.cloneNode(e))},Nl=function(t){return Dl(t,!1)},Rl=function(t){return Dl(t,!0)},Pl=function(t,e,n){void 0===n&&(n=x);var r=new ho(t,e),i=function(t){var e;do{e=r[t]()}while(e&&!Gr(e)&&!n(e));return O.from(e).filter(Gr)};return{current:function(){return O.from(r.current()).filter(Gr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Il=function(t,e){var n=e||function(e){return t.isBlock(e)||Jr(e)||ei(e)},r=function(t,e,n,i){if(Gr(t)){var o=i(t,e,t.data);if(-1!==o)return O.some({container:t,offset:o})}return n().bind((function(t){return r(t.container,t.offset,n,i)}))},i=function(t,e,i,o){var a=Pl(t,o,n);return r(t,e,(function(){return a.prev().map((function(t){return{container:t,offset:t.length}}))}),i).getOrNull()},o=function(t,e,i,o){var a=Pl(t,o,n);return r(t,e,(function(){return a.next().map((function(t){return{container:t,offset:0}}))}),i).getOrNull()};return{backwards:i,forwards:o}},Bl=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},Ll=function(t,e,n){return t.isSome()&&e.isSome()?O.some(n(t.getOrDie(),e.getOrDie())):O.none()},zl=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?O.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):O.none()},jl=function(t,e){return t?O.some(e):O.none()},Fl=Math.round,$l=function(t){return t?{left:Fl(t.left),top:Fl(t.top),bottom:Fl(t.bottom),right:Fl(t.right),width:Fl(t.width),height:Fl(t.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Hl=function(t,e){return t=$l(t),e||(t.left=t.left+t.width),t.right=t.left,t.width=0,t},Vl=function(t,e){return t.left===e.left&&t.top===e.top&&t.bottom===e.bottom&&t.right===e.right},Ul=function(t,e,n){return t>=0&&t<=Math.min(e.height,n.height)/2},ql=function(t,e){var n=Math.min(e.height/2,t.height/2);return t.bottom-n<e.top||!(t.top>e.bottom)&&Ul(e.top-t.bottom,t,e)},Wl=function(t,e){return t.top>e.bottom||!(t.bottom<e.top)&&Ul(e.bottom-t.top,t,e)},Kl=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom},Gl=function(t){var e=t.startContainer,n=t.startOffset;return e.hasChildNodes()&&t.endOffset===n+1?e.childNodes[n]:null},Yl=function(t,e){return 1===t.nodeType&&t.hasChildNodes()&&(e>=t.childNodes.length&&(e=t.childNodes.length-1),t=t.childNodes[e]),t},Xl=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Zl=function(t){return"string"===typeof t&&t.charCodeAt(0)>=768&&Xl.test(t)},Jl=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var n=0;n<t.length;n++)if(t[n](e))return!0;return!1}},Ql=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}},tf=zr,ef=da,nf=Fr("display","block table"),rf=Fr("float","left right"),of=Ql(tf,ef,y(rf)),af=y(Fr("white-space","pre pre-line pre-wrap")),sf=Gr,uf=Jr,cf=Tc.nodeIndex,lf=Yl,ff=function(t){return"createRange"in t?t.createRange():Tc.DOM.createRng()},df=function(t){return t&&/[\r\n\t ]/.test(t)},hf=function(t){return!!t.setStart&&!!t.setEnd},pf=function(t){var e,n=t.startContainer,r=t.startOffset;return!!(df(t.toString())&&af(n.parentNode)&&Gr(n)&&(e=n.data,df(e[r-1])||df(e[r+1])))},mf=function(t){var e=t.ownerDocument,n=ff(e),r=e.createTextNode(Bo),i=t.parentNode;i.insertBefore(r,t),n.setStart(r,0),n.setEnd(r,1);var o=$l(n.getBoundingClientRect());return i.removeChild(r),o},gf=function(t){var e=t.startContainer,n=t.endContainer,r=t.startOffset,i=t.endOffset;if(e===n&&Gr(n)&&0===r&&1===i){var o=t.cloneRange();return o.setEndAfter(n),bf(o)}return null},vf=function(t){return 0===t.left&&0===t.right&&0===t.top&&0===t.bottom},bf=function(t){var e,n=t.getClientRects();return e=n.length>0?$l(n[0]):$l(t.getBoundingClientRect()),!hf(t)&&uf(t)&&vf(e)?mf(t):vf(e)&&hf(t)?gf(t):e},yf=function(t,e){var n=Hl(t,e);return n.width=1,n.right=n.left+1,n},wf=function(t){var e,n,r=[],i=function(t){0!==t.height&&(r.length>0&&Vl(t,r[r.length-1])||r.push(t))},o=function(t,e){var n=ff(t.ownerDocument);if(e<t.data.length){if(Zl(t.data[e]))return r;if(Zl(t.data[e-1])&&(n.setStart(t,e),n.setEnd(t,e+1),!pf(n)))return i(yf(bf(n),!1)),r}e>0&&(n.setStart(t,e-1),n.setEnd(t,e),pf(n)||i(yf(bf(n),!1))),e<t.data.length&&(n.setStart(t,e),n.setEnd(t,e+1),pf(n)||i(yf(bf(n),!0)))};if(sf(t.container()))return o(t.container(),t.offset()),r;if(tf(t.container()))if(t.isAtEnd())n=lf(t.container(),t.offset()),sf(n)&&o(n,n.data.length),of(n)&&!uf(n)&&i(yf(bf(n),!1));else{if(n=lf(t.container(),t.offset()),sf(n)&&o(n,0),of(n)&&t.isAtEnd())return i(yf(bf(n),!1)),r;e=lf(t.container(),t.offset()-1),of(e)&&!uf(e)&&(nf(e)||nf(n)||!of(n))&&i(yf(bf(e),!1)),of(n)&&i(yf(bf(n),!0))}return r};function _f(t,e,n){var r=function(){return sf(t),0===e},i=function(){return sf(t)?e>=t.data.length:e>=t.childNodes.length},o=function(){var n=ff(t.ownerDocument);return n.setStart(t,e),n.setEnd(t,e),n},a=function(){return n||(n=wf(_f(t,e))),n},s=function(){return a().length>0},u=function(n){return n&&t===n.container()&&e===n.offset()},c=function(n){return lf(t,n?e-1:e)};return{container:g(t),offset:g(e),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:u,getNode:c}}(function(t){t.fromRangeStart=function(e){return t(e.startContainer,e.startOffset)},t.fromRangeEnd=function(e){return t(e.endContainer,e.endOffset)},t.after=function(e){return t(e.parentNode,cf(e)+1)},t.before=function(e){return t(e.parentNode,cf(e))},t.isAbove=function(t,e){return Ll(pt(e.getClientRects()),mt(t.getClientRects()),ql).getOr(!1)},t.isBelow=function(t,e){return Ll(mt(e.getClientRects()),pt(t.getClientRects()),Wl).getOr(!1)},t.isAtStart=function(t){return!!t&&t.isAtStart()},t.isAtEnd=function(t){return!!t&&t.isAtEnd()},t.isTextPosition=function(t){return!!t&&Gr(t.container())},t.isElementPosition=function(e){return!1===t.isTextPosition(e)}})(_f||(_f={}));var xf,Cf=_f,Sf=function(t,e){Gr(e)&&0===e.data.length&&t.remove(e)},kf=function(t,e,n){e.insertNode(n),Sf(t,n.previousSibling),Sf(t,n.nextSibling)},Mf=function(t,e,n){var r=O.from(n.firstChild),i=O.from(n.lastChild);e.insertNode(n),r.each((function(e){return Sf(t,e.previousSibling)})),i.each((function(e){return Sf(t,e.nextSibling)}))},Ef=function(t,e,n){Zr(n)?Mf(t,e,n):kf(t,e,n)},Of=Gr,Tf=Vr,Af=Tc.nodeIndex,Df=function(t){var e=t.parentNode;return Tf(e)?Df(e):e},Nf=function(t){return t?jt(t.childNodes,(function(t,e){return Tf(e)&&"BR"!==e.nodeName?t=t.concat(Nf(e)):t.push(e),t}),[]):[]},Rf=function(t,e){while(t=t.previousSibling){if(!Of(t))break;e+=t.data.length}return e},Pf=function(t){return function(e){return t===e}},If=function(t){var e,n;e=Nf(Df(t)),n=Ft(e,Pf(t),t),e=e.slice(0,n+1);var r=jt(e,(function(t,n,r){return Of(n)&&Of(e[r-1])&&t++,t}),0);return e=Lt(e,jr([t.nodeName])),n=Ft(e,Pf(t),t),n-r},Bf=function(t){var e;return e=Of(t)?"text()":t.nodeName.toLowerCase(),e+"["+If(t)+"]"},Lf=function(t,e,n){var r=[];for(e=e.parentNode;e!==t;e=e.parentNode){if(n&&n(e))break;r.push(e)}return r},zf=function(t,e){var n,r,i,o,a,s=[];return n=e.container(),r=e.offset(),Of(n)?i=Rf(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(Bf(n)),a=Lf(t,n),a=Lt(a,y(Vr)),s=s.concat(Bt(a,(function(t){return Bf(t)}))),s.reverse().join("/")+","+i},jf=function(t,e,n){var r=Nf(t);return r=Lt(r,(function(t,e){return!Of(t)||!Of(r[e-1])})),r=Lt(r,jr([e])),r[n]},Ff=function(t,e){var n,r=t,i=0;while(Of(r)){if(n=r.data.length,e>=i&&e<=i+n){t=r,e-=i;break}if(!Of(r.nextSibling)){t=r,e=n;break}i+=n,r=r.nextSibling}return Of(t)&&e>t.data.length&&(e=t.data.length),Cf(t,e)},$f=function(t,e){var n;if(!e)return null;var r=e.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=jt(i,(function(t,e){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(e);return n?("text()"===n[1]&&(n[1]="#text"),jf(t,n[1],parseInt(n[2],10))):null}),t);return o?Of(o)?Ff(o,parseInt(n,10)):(n="after"===n?Af(o)+1:Af(o),Cf(o.parentNode,n)):null},Hf=ei,Vf=function(t,e,n){var r,i;for(i=t(e.data.slice(0,n)).length,r=e.previousSibling;r&&Gr(r);r=r.previousSibling)i+=t(r.data).length;return i},Uf=function(t,e,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],u=[],c=0,l=t.getRoot();for(Gr(a)?u.push(n?Vf(e,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(c=1,s=Math.max(0,o.length-1)),u.push(t.nodeIndex(o[s],n)+c));a&&a!==l;a=a.parentNode)u.push(t.nodeIndex(a,n));return u},qf=function(t,e,n,r){var i=e.dom,o={};return o.start=Uf(i,t,n,r,!0),e.isCollapsed()||(o.end=Uf(i,t,n,r,!1)),o},Wf=function(t,e,n){var r=0;return ln.each(t.select(e),(function(t){if("all"!==t.getAttribute("data-mce-bogus"))return t!==n&&void r++})),r},Kf=function(t,e){var n,r,i,o=e?"start":"end";n=t[o+"Container"],r=t[o+"Offset"],zr(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(e?r:r-1,i.length-1)],n&&(r=e?0:n.childNodes.length,t["set"+(e?"Start":"End")](n,r)))},Gf=function(t){return Kf(t,!0),Kf(t,!1),t},Yf=function(t,e){var n;if(zr(t)&&(t=Yl(t,e),Hf(t)))return t;if(Wo(t)){if(Gr(t)&&Uo(t)&&(t=t.parentNode),n=t.previousSibling,Hf(n))return n;if(n=t.nextSibling,Hf(n))return n}},Xf=function(t){return Yf(t.startContainer,t.startOffset)||Yf(t.endContainer,t.endOffset)},Zf=function(t,e,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Hf(r)||"IMG"===i)return{name:i,index:Wf(n.dom,i,r)};var a=Xf(o);return a?(i=a.tagName,{name:i,index:Wf(n.dom,i,a)}):qf(t,n,e,o)},Jf=function(t){var e=t.getRng();return{start:zf(t.dom.getRoot(),Cf.fromRangeStart(e)),end:zf(t.dom.getRoot(),Cf.fromRangeEnd(e))}},Qf=function(t){return{rng:t.getRng()}},td=function(t,e,n){var r={"data-mce-type":"bookmark",id:e,style:"overflow:hidden;line-height:0px"};return n?t.create("span",r,""):t.create("span",r)},ed=function(t,e){var n=t.dom,r=t.getRng(),i=n.uniqueId(),o=t.isCollapsed(),a=t.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:Wf(n,s,a)};var u=Gf(r.cloneRange());if(!o){u.collapse(!1);var c=td(n,i+"_end",e);Ef(n,u,c)}r=Gf(r),r.collapse(!0);var l=td(n,i+"_start",e);return Ef(n,r,l),t.moveToBookmark({id:i,keep:!0}),{id:i}},nd=function(t,e,n){return 2===e?Zf($o,n,t):3===e?Jf(t):e?Qf(t):ed(t,!1)},rd=b(Zf,v,!0),id=Tc.DOM,od="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",ad=function(t,e,n){var r=t.getParam(e,n);if(-1!==r.indexOf("=")){var i=t.getParam(e,"","hash");return i.hasOwnProperty(t.id)?i[t.id]:n}return r},sd=function(t){return t.getParam("iframe_attrs",{})},ud=function(t){return t.getParam("doctype","<!DOCTYPE html>")},cd=function(t){return t.getParam("document_base_url","")},ld=function(t){return ad(t,"body_id","tinymce")},fd=function(t){return ad(t,"body_class","")},dd=function(t){return t.getParam("content_security_policy","")},hd=function(t){return t.getParam("br_in_pre",!0)},pd=function(t){if(t.getParam("force_p_newlines",!1))return"p";var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},md=function(t){return t.getParam("forced_root_block_attrs",{})},gd=function(t){return t.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},vd=function(t){return t.getParam("no_newline_selector","")},bd=function(t){return t.getParam("keep_styles",!0)},yd=function(t){return t.getParam("end_container_on_empty_block",!1)},wd=function(t){return ln.explode(t.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},_d=function(t){return ln.explode(t.getParam("font_size_classes",""))},xd=function(t){return t.getParam("images_dataimg_filter",C,"function")},Cd=function(t){return t.getParam("automatic_uploads",!0,"boolean")},Sd=function(t){return t.getParam("images_reuse_filename",!1,"boolean")},kd=function(t){return t.getParam("images_replace_blob_uris",!0,"boolean")},Md=function(t){return t.getParam("icons","","string")},Ed=function(t){return t.getParam("icons_url","","string")},Od=function(t){return t.getParam("images_upload_url","","string")},Td=function(t){return t.getParam("images_upload_base_path","","string")},Ad=function(t){return t.getParam("images_upload_credentials",!1,"boolean")},Dd=function(t){return t.getParam("images_upload_handler",null,"function")},Nd=function(t){return t.getParam("content_css_cors",!1,"boolean")},Rd=function(t){return t.getParam("referrer_policy","","string")},Pd=function(t){return t.getParam("language","en","string")},Id=function(t){return t.getParam("language_url","","string")},Bd=function(t){return t.getParam("indent_use_margin",!1)},Ld=function(t){return t.getParam("indentation","40px","string")},zd=function(t){var e=t.getParam("content_css");return R(e)?X(e.split(","),ce):I(e)?e:!1===e||t.inline?[]:["default"]},jd=function(t){return t.getParam("directionality",Zc.isRtl()?"rtl":void 0)},Fd=function(t){return t.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},$d=function(t){var e=t.getParam("object_resizing");return!1!==e&&!Xe.iOS&&(R(e)?e:"table,img,figure.image,div")},Hd=function(t){return t.getParam("resize_img_proportional",!0,"boolean")},Vd=function(t){return t.getParam("placeholder",id.getAttrib(t.getElement(),"placeholder"),"string")},Ud=function(t){return t.getParam("event_root")},qd=function(t){return t.getParam("service_message")},Wd=function(t){return t.getParam("theme")},Kd=function(t){return t.getParam("validate")},Gd=function(t){return!1!==t.getParam("inline_boundaries")},Yd=function(t){return t.getParam("formats")},Xd=function(t){var e=t.getParam("preview_styles",od);return R(e)?e:""},Zd=function(t){return t.getParam("format_empty_lines",!1,"boolean")},Jd=function(t){return t.getParam("custom_ui_selector","","string")},Qd=function(t){return t.getParam("theme_url")},th=function(t){return t.getParam("inline")},eh=function(t){return t.getParam("hidden_input")},nh=function(t){return t.getParam("submit_patch")},rh=function(t){return"xml"===t.getParam("encoding")},ih=function(t){return t.getParam("add_form_submit_trigger")},oh=function(t){return t.getParam("add_unload_trigger")},ah=function(t){return""!==pd(t)},sh=function(t){return t.getParam("custom_undo_redo_levels",0,"number")},uh=function(t){return t.getParam("disable_nodechange")},ch=function(t){return t.getParam("readonly")},lh=function(t){return t.getParam("content_css_cors")},fh=function(t){return t.getParam("plugins","","string")},dh=function(t){return t.getParam("external_plugins")},hh=function(t){return t.getParam("block_unsupported_drop",!0,"boolean")},ph=function(t){return t.getParam("visual",!0,"boolean")},mh=function(t){return t.getParam("visual_table_class","mce-item-table","string")},gh=function(t){return t.getParam("visual_anchor_class","mce-item-anchor","string")},vh=zr,bh=Gr,yh=function(t){var e=t.parentNode;e&&e.removeChild(t)},wh=function(t){var e=$o(t);return{count:t.length-e.length,text:e}},_h=function(t){var e;while(-1!==(e=t.data.lastIndexOf(jo)))t.deleteData(e,1)},xh=function(t,e){return Oh(t),e},Ch=function(t,e){var n=wh(t.data.substr(0,e.offset())),r=wh(t.data.substr(e.offset())),i=n.text+r.text;return i.length>0?(_h(t),Cf(t,e.offset()-n.count)):e},Sh=function(t,e){var n=e.container(),r=K(gt(n.childNodes),t).map((function(t){return t<e.offset()?Cf(n,e.offset()-1):e})).getOr(e);return Oh(t),r},kh=function(t,e){return bh(t)&&e.container()===t?Ch(t,e):xh(t,e)},Mh=function(t,e){return e.container()===t.parentNode?Sh(t,e):xh(t,e)},Eh=function(t,e){return Cf.isTextPosition(e)?kh(t,e):Mh(t,e)},Oh=function(t){vh(t)&&Wo(t)&&(Ko(t)?t.removeAttribute("data-mce-caret"):yh(t)),bh(t)&&(_h(t),0===t.data.length&&yh(t))},Th=$e().browser,Ah=ei,Dh=ri,Nh=ni,Rh="*[contentEditable=false],video,audio,embed,object",Ph=function(t,e,n){var r,i,o,a,s,u=Hl(e.getBoundingClientRect(),n);return"BODY"===t.tagName?(r=t.ownerDocument.documentElement,i=t.scrollLeft||r.scrollLeft,o=t.scrollTop||r.scrollTop):(s=t.getBoundingClientRect(),i=t.scrollLeft-s.left,o=t.scrollTop-s.top),u.left+=i,u.right+=i,u.top+=o,u.bottom+=o,u.width=1,a=e.offsetWidth-e.clientWidth,a>0&&(n&&(a*=-1),u.left+=a,u.right+=a),u},Ih=function(t){for(var e=pl(gn.fromDom(t),Rh),n=0;n<e.length;n++){var r=e[n].dom,i=r.previousSibling;if(ta(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,Qo(i)){o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},Bh=function(t,e,n,r){var i,o,a=zc(O.none()),s=pd(t),u=s.length>0?s:"p",c=function(t,r){var i,s;if(l(),Nh(r))return null;if(!n(r))return o=Go(r,t),s=r.ownerDocument.createRange(),zh(o.nextSibling)?(s.setStart(o,0),s.setEnd(o,0)):(s.setStart(o,1),s.setEnd(o,1)),s;o=Jo(u,r,t),i=Ph(e,r,t),wc(o).css("top",i.top);var c=wc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(i).appendTo(e)[0];return a.set(O.some({caret:c,element:r,before:t})),a.get().each((function(e){t&&wc(e.caret).addClass("mce-visual-caret-before")})),f(),s=r.ownerDocument.createRange(),s.setStart(o,0),s.setEnd(o,0),s},l=function(){Ih(e),o&&(Oh(o),o=null),a.get().each((function(t){wc(t.caret).remove(),a.set(O.none())})),i&&(uo.clearInterval(i),i=null)},f=function(){i=uo.setInterval((function(){r()?wc("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):wc("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.get().each((function(t){var n=Ph(e,t.element,t.before);wc(t.caret).css(Ht({},n))}))},h=function(){return uo.clearInterval(i)},p=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:c,hide:l,getCss:p,reposition:d,destroy:h}},Lh=function(){return Th.isIE()||Th.isEdge()||Th.isFirefox()},zh=function(t){return Ah(t)||Dh(t)},jh=function(t){return zh(t)||qr(t)&&Lh()},Fh=ei,$h=ri,Hh=Fr("display","block table table-cell table-caption list-item"),Vh=Wo,Uh=Uo,qh=zr,Wh=da,Kh=function(t){return t>0},Gh=function(t){return t<0},Yh=function(t,e){var n;while(n=t(e))if(!Uh(n))return n;return null},Xh=function(t,e,n,r,i){var o=new ho(t,r),a=Fh(t)||Uh(t);if(Gh(e)){if(a&&(t=Yh(o.prev,!0),n(t)))return t;while(t=Yh(o.prev,i))if(n(t))return t}if(Kh(e)){if(a&&(t=Yh(o.next,!0),n(t)))return t;while(t=Yh(o.next,i))if(n(t))return t}return null},Zh=function(t,e){while(t&&t!==e){if(Hh(t))return t;t=t.parentNode}return null},Jh=function(t,e,n){return Zh(t.container(),n)===Zh(e.container(),n)},Qh=function(t,e){if(!e)return null;var n=e.container(),r=e.offset();return qh(n)?n.childNodes[r+t]:null},tp=function(t,e){var n=e.ownerDocument.createRange();return t?(n.setStartBefore(e),n.setEndBefore(e)):(n.setStartAfter(e),n.setEndAfter(e)),n},ep=function(t,e,n){return Zh(e,t)===Zh(n,t)},np=function(t,e,n){var r,i;i=t?"previousSibling":"nextSibling";while(n&&n!==e){if(r=n[i],Vh(r)&&(r=r[i]),Fh(r)||$h(r)){if(ep(e,r,n))return r;break}if(Wh(r))break;n=n.parentNode}return null},rp=b(tp,!0),ip=b(tp,!1),op=function(t,e,n){var r,i,o,a=b(np,!0,e),s=b(np,!1,e);i=n.startContainer;var u=n.startOffset;if(Uo(i)){if(qh(i)||(i=i.parentNode),o=i.getAttribute("data-mce-caret"),"before"===o&&(r=i.nextSibling,jh(r)))return rp(r);if("after"===o&&(r=i.previousSibling,jh(r)))return ip(r)}if(!n.collapsed)return n;if(Gr(i)){if(Vh(i)){if(1===t){if(r=s(i),r)return rp(r);if(r=a(i),r)return ip(r)}if(-1===t){if(r=a(i),r)return ip(r);if(r=s(i),r)return rp(r)}return n}if(ta(i)&&u>=i.data.length-1)return 1===t&&(r=s(i),r)?rp(r):n;if(Qo(i)&&u<=1)return-1===t&&(r=a(i),r)?ip(r):n;if(u===i.data.length)return r=s(i),r?rp(r):n;if(0===u)return r=a(i),r?ip(r):n}return n},ap=function(t,e){return O.from(Qh(t?0:-1,e)).filter(Fh)},sp=function(t,e,n){var r=op(t,e,n);return-1===t?_f.fromRangeStart(r):_f.fromRangeEnd(r)},up=function(t){return O.from(t.getNode()).map(gn.fromDom)},cp=function(t){return O.from(t.getNode(!0)).map(gn.fromDom)},lp=function(t,e){while(e=t(e))if(e.isVisible())return e;return e},fp=function(t,e){var n=Jh(t,e);return!(n||!Jr(t.getNode()))||n};(function(t){t[t["Backwards"]=-1]="Backwards",t[t["Forwards"]=1]="Forwards"})(xf||(xf={}));var dp=ei,hp=Gr,pp=zr,mp=Jr,gp=da,vp=va,bp=ba,yp=function(t,e){var n=[];while(t&&t!==e)n.push(t),t=t.parentNode;return n},wp=function(t,e){return t.hasChildNodes()&&e<t.childNodes.length?t.childNodes[e]:null},_p=function(t,e){if(Kh(t)){if(gp(e.previousSibling)&&!hp(e.previousSibling))return Cf.before(e);if(hp(e))return Cf(e,0)}if(Gh(t)){if(gp(e.nextSibling)&&!hp(e.nextSibling))return Cf.after(e);if(hp(e))return Cf(e,e.data.length)}return Gh(t)?mp(e)?Cf.before(e):Cf.after(e):Cf.before(e)},xp=function(t,e){var n=e.nextSibling;return n&&gp(n)?hp(n)?Cf(n,0):Cf.before(n):Cp(xf.Forwards,Cf.after(e),t)},Cp=function(t,e,n){var r,i,o,a;if(!pp(n)||!e)return null;if(e.isEqual(Cf.after(n))&&n.lastChild){if(a=Cf.after(n.lastChild),Gh(t)&&gp(n.lastChild)&&pp(n.lastChild))return mp(n.lastChild)?Cf.before(n.lastChild):a}else a=e;var s=a.container(),u=a.offset();if(hp(s)){if(Gh(t)&&u>0)return Cf(s,--u);if(Kh(t)&&u<s.length)return Cf(s,++u);r=s}else{if(Gh(t)&&u>0&&(i=wp(s,u-1),gp(i)))return!vp(i)&&(o=Xh(i,t,bp,i),o)?hp(o)?Cf(o,o.data.length):Cf.after(o):hp(i)?Cf(i,i.data.length):Cf.before(i);if(Kh(t)&&u<s.childNodes.length&&(i=wp(s,u),gp(i)))return mp(i)?xp(n,i):!vp(i)&&(o=Xh(i,t,bp,i),o)?hp(o)?Cf(o,0):Cf.before(o):hp(i)?Cf(i,0):Cf.after(i);r=i||a.getNode()}if((Kh(t)&&a.isAtEnd()||Gh(t)&&a.isAtStart())&&(r=Xh(r,t,C,n,!0),bp(r,n)))return _p(t,r);i=Xh(r,t,bp,n);var c=$t(tt(yp(s,n),dp));return!c||i&&c.contains(i)?i?_p(t,i):null:(a=Kh(t)?Cf.after(c):Cf.before(c),a)},Sp=function(t){return{next:function(e){return Cp(xf.Forwards,e,t)},prev:function(e){return Cp(xf.Backwards,e,t)}}},kp=function(t,e,n){var r=t?Cf.before(n):Cf.after(n);return Np(t,e,r)},Mp=function(t){return Jr(t)?Cf.before(t):Cf.after(t)},Ep=function(t){return Cf.isTextPosition(t)?0===t.offset():da(t.getNode())},Op=function(t){if(Cf.isTextPosition(t)){var e=t.container();return t.offset()===e.data.length}return da(t.getNode(!0))},Tp=function(t,e){return!Cf.isTextPosition(t)&&!Cf.isTextPosition(e)&&t.getNode()===e.getNode(!0)},Ap=function(t){return!Cf.isTextPosition(t)&&Jr(t.getNode())},Dp=function(t,e,n){return t?!Tp(e,n)&&!Ap(e)&&Op(e)&&Ep(n):!Tp(n,e)&&Ep(e)&&Op(n)},Np=function(t,e,n){var r=Sp(e);return O.from(t?r.next(n):r.prev(n))},Rp=function(t,e,n){return Np(t,e,n).bind((function(r){return Jh(n,r,e)&&Dp(t,n,r)?Np(t,e,r):O.some(r)}))},Pp=function(t,e,n,r){return Rp(t,e,n).bind((function(n){return r(n)?Pp(t,e,n,r):O.some(n)}))},Ip=function(t,e){var n=t?e.firstChild:e.lastChild;return Gr(n)?O.some(Cf(n,t?0:n.data.length)):n?da(n)?O.some(t?Cf.before(n):Mp(n)):kp(t,e,n):O.none()},Bp=b(Np,!0),Lp=b(Np,!1),zp=b(Ip,!0),jp=b(Ip,!1),Fp="_mce_caret",$p=function(t){return zr(t)&&t.id===Fp},Hp=function(t,e){while(e&&e!==t){if(e.id===Fp)return e;e=e.parentNode}return null},Vp=function(t){return"string"===typeof t.start},Up=function(t){return t.hasOwnProperty("rng")},qp=function(t){return t.hasOwnProperty("id")},Wp=function(t){return t.hasOwnProperty("name")},Kp=function(t){return ln.isArray(t.start)},Gp=function(t,e){return zr(e)&&t.isBlock(e)&&!e.innerHTML&&!Xe.ie&&(e.innerHTML='<br data-mce-bogus="1" />'),e},Yp=function(t,e){var n,r=t.createRng();return n=$f(t.getRoot(),e.start),r.setStart(n.container(),n.offset()),n=$f(t.getRoot(),e.end),r.setEnd(n.container(),n.offset()),r},Xp=function(t,e){var n=t.ownerDocument.createTextNode(jo);t.appendChild(n),e.setStart(n,0),e.setEnd(n,0)},Zp=function(t){return!1===t.hasChildNodes()},Jp=function(t,e){return jp(t).fold((function(){return!1}),(function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0}))},Qp=function(t,e,n){return!(!Zp(e)||!Hp(t,e))&&(Xp(e,n),!0)},tm=function(t,e,n,r){var i,o,a,s,u=n[e?"start":"end"],c=t.getRoot();if(u){for(a=u[0],o=c,i=u.length-1;i>=1;i--){if(s=o.childNodes,Qp(c,o,r))return!0;if(u[i]>s.length-1)return!!Qp(c,o,r)||Jp(o,r);o=s[u[i]]}3===o.nodeType&&(a=Math.min(u[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(u[0],o.childNodes.length)),e?r.setStart(o,a):r.setEnd(o,a)}return!0},em=function(t){return Gr(t)&&t.data.length>0},nm=function(t,e,n){var r,i,o,a,s,u,c=t.get(n.id+"_"+e),l=n.keep;if(c){if(r=c.parentNode,"start"===e?(l?c.hasChildNodes()?(r=c.firstChild,i=1):em(c.nextSibling)?(r=c.nextSibling,i=0):em(c.previousSibling)?(r=c.previousSibling,i=c.previousSibling.data.length):(r=c.parentNode,i=t.nodeIndex(c)+1):i=t.nodeIndex(c),s=r,u=i):(l?c.hasChildNodes()?(r=c.firstChild,i=1):em(c.previousSibling)?(r=c.previousSibling,i=c.previousSibling.data.length):(r=c.parentNode,i=t.nodeIndex(c)):i=t.nodeIndex(c),s=r,u=i),!l){a=c.previousSibling,o=c.nextSibling,ln.each(ln.grep(c.childNodes),(function(t){Gr(t)&&(t.nodeValue=t.nodeValue.replace(/\uFEFF/g,""))}));while(c=t.get(n.id+"_"+e))t.remove(c,!0);a&&o&&a.nodeType===o.nodeType&&Gr(a)&&!Xe.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),t.remove(o),s=a,u=i)}return O.some(Cf(s,u))}return O.none()},rm=function(t,e){var n=t.createRng();return tm(t,!0,e,n)&&tm(t,!1,e,n)?O.some(n):O.none()},im=function(t,e){var n=nm(t,"start",e),r=nm(t,"end",e);return Ll(n,r.or(n),(function(e,n){var r=t.createRng();return r.setStart(Gp(t,e.container()),e.offset()),r.setEnd(Gp(t,n.container()),n.offset()),r}))},om=function(t,e){return O.from(t.select(e.name)[e.index]).map((function(e){var n=t.createRng();return n.selectNode(e),n}))},am=function(t,e){var n=t.dom;if(e){if(Kp(e))return rm(n,e);if(Vp(e))return O.some(Yp(n,e));if(qp(e))return im(n,e);if(Wp(e))return om(n,e);if(Up(e))return O.some(e.rng)}return O.none()},sm=function(t,e,n){return nd(t,e,n)},um=function(t,e){am(t,e).each((function(e){t.setRng(e)}))},cm=function(t){return zr(t)&&"SPAN"===t.tagName&&"bookmark"===t.getAttribute("data-mce-type")},lm=function(t){return function(e){return t===e}},fm=lm(Bo),dm=function(t){return""!==t&&-1!==" \f\n\r\t\v".indexOf(t)},hm=function(t){return!dm(t)&&!fm(t)},pm=function(t){return!!t.nodeType},mm=function(t){return t&&/^(IMG)$/.test(t.nodeName)},gm=function(t,e,n){var r,i,o,a=n.startOffset,s=n.startContainer;if((n.startContainer!==n.endContainer||!mm(n.startContainer.childNodes[n.startOffset]))&&1===s.nodeType)for(o=s.childNodes,a<o.length?(s=o[a],r=new ho(s,t.getParent(s,t.isBlock))):(s=o[o.length-1],r=new ho(s,t.getParent(s,t.isBlock)),r.next(!0)),i=r.current();i;i=r.next())if(3===i.nodeType&&!wm(i))return n.setStart(i,0),void e.setRng(n)},vm=function(t,e,n){if(t){var r=e?"nextSibling":"previousSibling";for(t=n?t:t[r];t;t=t[r])if(1===t.nodeType||!wm(t))return t}},bm=function(t,e){return pm(e)&&(e=e.nodeName),!!t.schema.getTextBlockElements()[e.toLowerCase()]},ym=function(t,e,n){return t.schema.isValidChild(e,n)},wm=function(t,e){if(void 0===e&&(e=!1),F(t)&&Gr(t)){var n=e?t.data.replace(/ /g," "):t.data;return wa(n)}return!1},_m=function(t){return F(t)&&Gr(t)&&0===t.length},xm=function(t,e){return"string"!==typeof t?t=t(e):e&&(t=t.replace(/%(\w+)/g,(function(t,n){return e[n]||t}))),t},Cm=function(t,e){return t=t||"",e=e||"",t=""+(t.nodeName||t),e=""+(e.nodeName||e),t.toLowerCase()===e.toLowerCase()},Sm=function(t,e,n){return"color"!==n&&"backgroundColor"!==n||(e=t.toHex(e)),"fontWeight"===n&&700===e&&(e="bold"),"fontFamily"===n&&(e=e.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+e},km=function(t,e,n){return Sm(t,t.getStyle(e,n),n)},Mm=function(t,e){var n;return t.getParent(e,(function(e){return n=t.getStyle(e,"text-decoration"),n&&"none"!==n})),n},Em=function(t,e,n){return t.getParents(e,n,t.getRoot())},Om=function(t,e){var n=function(t){var e=function(t){return t.length>1&&"%"===t.charAt(0)};return Y(["styles","attributes"],(function(n){return Tt(t,n).exists((function(t){var n=I(t)?t:Ot(t);return Y(n,e)}))}))};return Y(t.formatter.get(e),n)},Tm=function(t,e,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(t){return Mt(t,(function(t,e){return Y(r,(function(t){return t===e}))}))};return Y(t.formatter.get(e),(function(e){var r=i(e);return Y(t.formatter.get(n),(function(t){var e=i(t);return Nt(r,e)}))}))},Am=function(t){return Dt(t,"block")},Dm=function(t){return Dt(t,"selector")},Nm=function(t){return Dt(t,"inline")},Rm=cm,Pm=Em,Im=wm,Bm=bm,Lm=function(t){return Jr(t)&&t.getAttribute("data-mce-bogus")&&!t.nextSibling},zm=function(t,e){var n=e;while(n){if(zr(n)&&t.getContentEditable(n))return"false"===t.getContentEditable(n)?n:e;n=n.parentNode}return e},jm=function(t,e,n,r){for(var i=e.data,o=n;t?o>=0:o<i.length;t?o--:o++)if(r(i.charAt(o)))return t?o+1:o;return-1},Fm=function(t,e,n){return jm(t,e,n,(function(t){return fm(t)||dm(t)}))},$m=function(t,e,n){return jm(t,e,n,hm)},Hm=function(t,e,n,r,i,o){var a,s=t.getParent(n,t.isBlock)||e,u=function(e,n,r){var o=Il(t),u=i?o.backwards:o.forwards;return O.from(u(e,n,(function(t,e){return Rm(t.parentNode)?-1:(a=t,r(i,t,e))}),s))},c=u(n,r,Fm);return c.bind((function(t){return o?u(t.container,t.offset+(i?-1:0),$m):O.some(t)})).orThunk((function(){return a?O.some({container:a,offset:i?0:a.length}):O.none()}))},Vm=function(t,e,n,r,i){Gr(r)&&0===r.nodeValue.length&&r[i]&&(r=r[i]);for(var o=Pm(t,r),a=0;a<o.length;a++)for(var s=0;s<e.length;s++){var u=e[s];if((!("collapsed"in u)||u.collapsed===n.collapsed)&&t.is(o[a],u.selector))return o[a]}return r},Um=function(t,e,n,r){var i,o=t.dom,a=o.getRoot();if(e[0].wrapper||(i=o.getParent(n,e[0].block,a)),!i){var s=o.getParent(n,"LI,TD,TH");i=o.getParent(Gr(n)?n.parentNode:n,(function(e){return e!==a&&Bm(t,e)}),s)}if(i&&e[0].wrapper&&(i=Pm(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],Cm(i,"br"))break}return i||n},qm=function(t,e,n,r){var i=n.parentNode;return!F(n[r])&&(!(i!==e&&!j(i)&&!t.isBlock(i))||qm(t,e,i,r))},Wm=function(t,e,n,r,i){var o,a=n,s=i?"previousSibling":"nextSibling",u=t.getRoot();if(Gr(n)&&!Im(n)&&(i?r>0:r<n.data.length))return n;while(1){if(!e[0].block_expand&&t.isBlock(a))return a;for(o=a[s];o;o=o[s]){var c=Gr(o)&&!qm(t,u,o,s);if(!Rm(o)&&!Lm(o)&&!Im(o,c))return a}if(a===u||a.parentNode===u){n=a;break}a=a.parentNode}return n},Km=function(t){return Rm(t.parentNode)||Rm(t)},Gm=function(t,e,n,r){void 0===r&&(r=!1);var i=e.startContainer,o=e.startOffset,a=e.endContainer,s=e.endOffset,u=t.dom;if(zr(i)&&i.hasChildNodes()&&(i=Yl(i,o),Gr(i)&&(o=0)),zr(a)&&a.hasChildNodes()&&(a=Yl(a,e.collapsed?s:s-1),Gr(a)&&(s=a.nodeValue.length)),i=zm(u,i),a=zm(u,a),Km(i)&&(i=Rm(i)?i:i.parentNode,i=e.collapsed?i.previousSibling||i:i.nextSibling||i,Gr(i)&&(o=e.collapsed?i.length:0)),Km(a)&&(a=Rm(a)?a:a.parentNode,a=e.collapsed?a.nextSibling||a:a.previousSibling||a,Gr(a)&&(s=e.collapsed?0:a.length)),e.collapsed){var c=Hm(u,t.getBody(),i,o,!0,r);c.each((function(t){var e=t.container,n=t.offset;i=e,o=n}));var l=Hm(u,t.getBody(),a,s,!1,r);l.each((function(t){var e=t.container,n=t.offset;a=e,s=n}))}return(n[0].inline||n[0].block_expand)&&(n[0].inline&&Gr(i)&&0!==o||(i=Wm(u,n,i,o,!0)),n[0].inline&&Gr(a)&&s!==a.nodeValue.length||(a=Wm(u,n,a,s,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=Vm(u,n,e,i,"previousSibling"),a=Vm(u,n,e,a,"nextSibling")),(n[0].block||n[0].selector)&&(i=Um(t,n,i,"previousSibling"),a=Um(t,n,a,"nextSibling"),n[0].block&&(u.isBlock(i)||(i=Wm(u,n,i,o,!0)),u.isBlock(a)||(a=Wm(u,n,a,s,!1)))),zr(i)&&(o=u.nodeIndex(i),i=i.parentNode),zr(a)&&(s=u.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},Ym=function(t,e){var n=t.childNodes;return e>=n.length?e=n.length-1:e<0&&(e=0),n[e]||t},Xm=function(t,e){return Ym(t,e-1)},Zm=function(t,e,n){var r=e.startContainer,i=e.startOffset,o=e.endContainer,a=e.endOffset,s=function(t){var e;return e=t[0],3===e.nodeType&&e===r&&i>=e.nodeValue.length&&t.splice(0,1),e=t[t.length-1],0===a&&t.length>0&&e===o&&3===e.nodeType&&t.splice(t.length-1,1),t},u=function(t,e,n){for(var r=[];t&&t!==n;t=t[e])r.push(t);return r},c=function(t,e){do{if(t.parentNode===e)return t;t=t.parentNode}while(t)},l=function(t,e,r){for(var i=r?"nextSibling":"previousSibling",o=t,a=o.parentNode;o&&o!==e;o=a){a=o.parentNode;var c=u(o===t?o:o[i],i);c.length&&(r||c.reverse(),n(s(c)))}};if(1===r.nodeType&&r.hasChildNodes()&&(r=Ym(r,i)),1===o.nodeType&&o.hasChildNodes()&&(o=Xm(o,a)),r===o)return n(s([r]));for(var f=t.findCommonAncestor(r,o),d=r;d;d=d.parentNode){if(d===o)return l(r,f,!0);if(d===f)break}for(d=o;d;d=d.parentNode){if(d===r)return l(o,f);if(d===f)break}var h=c(r,f)||r,p=c(o,f)||o;l(r,h,!0);var m=u(h===r?h:h.nextSibling,"nextSibling",p===o?p.nextSibling:p);m.length&&n(s(m)),l(o,p)},Jm=function(t){var e=[];if(t)for(var n=0;n<t.rangeCount;n++)e.push(t.getRangeAt(n));return e},Qm=function(t){return st(t,(function(t){var e=Gl(t);return e?[gn.fromDom(e)]:[]}))},tg=function(t){return Jm(t).length>1},eg=function(t){return tt(Qm(t),No)},ng=function(t){return pl(t,"td[data-mce-selected],th[data-mce-selected]")},rg=function(t,e){var n=ng(e);return n.length>0?n:eg(t)},ig=function(t){return rg(Jm(t.selection.getSel()),gn.fromDom(t.getBody()))},og=function(t){var e=t.startContainer,n=t.startOffset;return Gr(e)?0===n?O.some(gn.fromDom(e)):O.none():O.from(e.childNodes[n]).map(gn.fromDom)},ag=function(t){var e=t.endContainer,n=t.endOffset;return Gr(e)?n===e.data.length?O.some(gn.fromDom(e)):O.none():O.from(e.childNodes[n-1]).map(gn.fromDom)},sg=function(t){return tr(t).fold(g([t]),(function(e){return[t].concat(sg(e))}))},ug=function(t){return er(t).fold(g([t]),(function(e){return"br"===Rn(e)?Gn(e).map((function(e){return[t].concat(ug(e))})).getOr([]):[t].concat(ug(e))}))},cg=function(t,e){return Ll(og(e),ag(e),(function(e,n){var r=it(sg(t),b(Tn,e)),i=it(ug(t),b(Tn,n));return r.isSome()&&i.isSome()})).getOr(!1)},lg=function(t,e,n,r){var i=n,o=new ho(n,i),a=Mt(t.schema.getMoveCaretBeforeOnEnterElements(),(function(t,e){return!G(["td","th","table"],e.toLowerCase())}));do{if(Gr(n)&&0!==ln.trim(n.nodeValue).length)return void(r?e.setStart(n,0):e.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?e.setStartBefore(n):"BR"===n.nodeName?e.setEndBefore(n):e.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?e.setStart(i,0):e.setEnd(i,i.childNodes.length))},fg=function(t){var e=t.selection.getSel();return e&&e.rangeCount>0},dg=function(t,e){var n=ig(t);n.length>0?Z(n,(function(n){var r=n.dom,i=t.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),e(i,!0)})):e(t.selection.getRng(),!1)},hg=function(t,e,n){var r=ed(t,e);n(r),t.moveToBookmark(r)};function pg(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?O.from(e.dom.nodeValue):O.none()},i=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}}var mg=pg(zn,"text"),gg=function(t){return mg.get(t)},vg=function(t){return zn(t)&&gg(t)===jo},bg=function(t,e,n,r){return qn(e).fold((function(){return"skipping"}),(function(i){return"br"===r||vg(e)?"valid":yl(e)?"existing":$p(e.dom)?"caret":ym(t,n,r)&&ym(t,Rn(i),n)?"valid":"invalid-child"}))},yg=function(t,e){var n=Gm(t,e,[{inline:!0}]);e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset),t.selection.setRng(e)},wg=function(t,e,n,r){var i=e.uid,o=void 0===i?Ml("mce-annotation"):i,a=Vt(e,["uid"]),s=gn.fromTag("span",t);cl(s,ml()),ai(s,""+vl(),o),ai(s,""+gl(),n);var u=r(o,a),c=u.attributes,l=void 0===c?{}:c,f=u.classes,d=void 0===f?[]:f;return si(s,l),El(s,d),s},_g=function(t,e,n,r,i){var o=[],a=wg(t.getDoc(),i,n,r),s=zc(O.none()),u=function(){s.set(O.none())},c=function(){return s.get().getOrThunk((function(){var t=Nl(a);return o.push(t),s.set(O.some(t)),t}))},l=function(t){Z(t,f)},f=function(e){var n=bg(t,e,"span",Rn(e));switch(n){case"invalid-child":u();var r=Jn(e);l(r),u();break;case"valid":var i=c();vr(e,i);break}},d=function(t){var e=X(t,gn.fromDom);l(e)};return Zm(t.dom,e,(function(t){u(),d(t)})),o},xg=function(t,e,n,r){t.undoManager.transact((function(){var i=t.selection,o=i.getRng(),a=ig(t).length>0;if(o.collapsed&&!a&&yg(t,o),i.getRng().collapsed&&!a){var s=wg(t.getDoc(),r,e,n.decorate);Al(s,Bo),i.getRng().insertNode(s.dom),i.select(s.dom)}else hg(i,!1,(function(){dg(t,(function(i){_g(t,i,e,n.decorate,r)}))}))}))},Cg=function(t){var e=Sl();Cl(t,e);var n=xl(t);return{register:function(t,n){e.register(t,n)},annotate:function(n,r){e.lookup(n).each((function(e){xg(t,n,e,r)}))},annotationChanged:function(t,e){n.addListener(t,e)},remove:function(e){bl(t,O.some(e)).each((function(t){var e=t.elements;Z(e,xr)}))},getAll:function(e){var n=_l(t,e);return _t(n,(function(t){return X(t,(function(t){return t.dom}))}))}}};function Sg(t){return{getBookmark:b(sm,t),moveToBookmark:b(um,t)}}(function(t){t.isBookmarkNode=cm})(Sg||(Sg={}));var kg=Sg,Mg=function(t,e){while(e&&e!==t){if(ti(e)||ei(e))return e;e=e.parentNode}return null},Eg=function(t,e,n){if(n.collapsed)return!1;if(Xe.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(zr(r))return Y(r.getClientRects(),(function(n){return Kl(n,t,e)}))}return Y(n.getClientRects(),(function(n){return Kl(n,t,e)}))},Og=function(t,e){return t.fire("PreProcess",e)},Tg=function(t,e){return t.fire("PostProcess",e)},Ag=function(t){return t.fire("remove")},Dg=function(t){return t.fire("detach")},Ng=function(t,e){return t.fire("SwitchMode",{mode:e})},Rg=function(t,e,n,r,i){t.fire("ObjectResizeStart",{target:e,width:n,height:r,origin:i})},Pg=function(t,e,n,r,i){t.fire("ObjectResized",{target:e,width:n,height:r,origin:i})},Ig=function(t){return t.fire("PreInit")},Bg=function(t){return t.fire("PostRender")},Lg=function(t){return t.fire("Init")},zg=function(t,e){return t.fire("PlaceholderToggle",{state:e})},jg=function(t,e,n){return t.fire(e,n)},Fg={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(t){return t.shiftKey||t.ctrlKey||t.altKey||this.metaKeyPressed(t)},metaKeyPressed:function(t){return Xe.mac?t.metaKey:t.ctrlKey&&!t.altKey}},$g=ei,Hg=function(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,g,v,b=e.dom,y=ln.each,w=e.getDoc(),_=document,x=Math.abs,C=Math.round,S=e.getBody(),k={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},M=function(t){return t&&("IMG"===t.nodeName||e.dom.is(t,"figure.image"))},E=function(t,e){if("longpress"===t.type||0===t.type.indexOf("touch")){var n=t.touches[0];return M(t.target)&&!Eg(n.clientX,n.clientY,e)}return M(t.target)&&!Eg(t.clientX,t.clientY,e)},O=function(t){var n=t.target;E(t,e.selection.getRng())&&!t.isDefaultPrevented()&&e.selection.select(n)},T=function(t){return e.dom.is(t,"figure.image")?t.querySelector("img"):t},A=function(t){var n=$d(e);return!!n&&("false"!==t.getAttribute("data-mce-resize")&&(t!==e.getBody()&&kn(gn.fromDom(t),n)))},D=function(t,e,n){b.setStyles(T(t),{width:e,height:n})},N=function(t){var y,w,_,k,E;y=t.screenX-a,w=t.screenY-s,p=y*o[2]+l,m=w*o[3]+f,p=p<5?5:p,m=m<5?5:m,_=M(n)&&!1!==Hd(e)?!Fg.modifierPressed(t):Fg.modifierPressed(t),_&&(x(y)>x(w)?(m=C(p*d),p=C(m/d)):(p=C(m/d),m=C(p*d))),D(r,p,m),k=o.startPos.x+y,E=o.startPos.y+w,k=k>0?k:0,E=E>0?E:0,b.setStyles(i,{left:k,top:E,display:"block"}),i.innerHTML=p+" × "+m,o[2]<0&&r.clientWidth<=p&&b.setStyle(r,"left",u+(l-p)),o[3]<0&&r.clientHeight<=m&&b.setStyle(r,"top",c+(f-m)),y=S.scrollWidth-g,w=S.scrollHeight-v,y+w!==0&&b.setStyles(i,{left:k-y,top:E-w}),h||(Rg(e,n,l,f,"corner-"+o.name),h=!0)},R=function(){var t=h;h=!1;var a=function(t,r){r&&(n.style[t]||!e.schema.isValid(n.nodeName.toLowerCase(),t)?b.setStyle(T(n),t,r):b.setAttrib(T(n),t,""+r))};t&&(a("width",p),a("height",m)),b.unbind(w,"mousemove",N),b.unbind(w,"mouseup",R),_!==w&&(b.unbind(_,"mousemove",N),b.unbind(_,"mouseup",R)),b.remove(r),b.remove(i),P(n),t&&(Pg(e,n,p,m,"corner-"+o.name),b.setAttrib(n,"style",b.getAttrib(n,"style"))),e.nodeChanged()},P=function(t){I(),z();var u=b.getPos(t,S),c=u.x,h=u.y,x=t.getBoundingClientRect(),C=x.width||x.right-x.left,M=x.height||x.bottom-x.top;n!==t&&(n=t,p=m=0);var E=e.fire("ObjectSelected",{target:t});A(t)&&!E.isDefaultPrevented()?y(k,(function(t,e){var u,p=function(u){a=u.screenX,s=u.screenY,l=T(n).clientWidth,f=T(n).clientHeight,d=f/l,o=t,o.name=e,o.startPos={x:C*t[0]+c,y:M*t[1]+h},g=S.scrollWidth,v=S.scrollHeight,r=n.cloneNode(!0),b.addClass(r,"mce-clonedresizable"),b.setAttrib(r,"data-mce-bogus","all"),r.contentEditable=!1,r.unSelectabe=!0,b.setStyles(r,{left:c,top:h,margin:0}),D(r,C,M),r.removeAttribute("data-mce-selected"),S.appendChild(r),b.bind(w,"mousemove",N),b.bind(w,"mouseup",R),_!==w&&(b.bind(_,"mousemove",N),b.bind(_,"mouseup",R)),i=b.add(S,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},l+" × "+f)};u=b.get("mceResizeHandle"+e),u&&b.remove(u),u=b.add(S,"div",{id:"mceResizeHandle"+e,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+e+"-resize; margin:0; padding:0"}),11===Xe.ie&&(u.contentEditable=!1),b.bind(u,"mousedown",(function(t){t.stopImmediatePropagation(),t.preventDefault(),p(t)})),t.elm=u,b.setStyles(u,{left:C*t[0]+c-u.offsetWidth/2,top:M*t[1]+h-u.offsetHeight/2})})):I(),n.setAttribute("data-mce-selected","1")},I=function(){z(),n&&n.removeAttribute("data-mce-selected"),wt(k,(function(t,e){var n=b.get("mceResizeHandle"+e);n&&(b.unbind(n),b.remove(n))}))},B=function(n){var r,i,o=function(t,e){if(t)do{if(t===e)return!0}while(t=t.parentNode)};h||e.removed||(y(b.select("img[data-mce-selected],hr[data-mce-selected]"),(function(t){t.removeAttribute("data-mce-selected")})),i="mousedown"===n.type?n.target:t.getNode(),i=b.$(i).closest("table,img,figure.image,hr")[0],o(i,S)&&(j(),r=t.getStart(!0),o(r,i)&&o(t.getEnd(!0),i))?P(i):I())},L=function(t){return $g(Mg(e.getBody(),t))},z=function(){wt(k,(function(t){t.elm&&(b.unbind(t.elm),delete t.elm)}))},j=function(){try{e.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(t){}};e.on("init",(function(){if(j(),Xe.browser.isIE()||Xe.browser.isEdge()){e.on("mousedown click",(function(t){var n=t.target,r=n.nodeName;h||!/^(TABLE|IMG|HR)$/.test(r)||L(n)||(2!==t.button&&e.selection.select(n,"TABLE"===r),"mousedown"===t.type&&e.nodeChanged())}));var t=function(t){var n=function(t){uo.setEditorTimeout(e,(function(){return e.selection.select(t)}))};if(L(t.target)||ri(t.target))return t.preventDefault(),void n(t.target);/^(TABLE|IMG|HR)$/.test(t.target.nodeName)&&(t.preventDefault(),"IMG"===t.target.tagName&&n(t.target))};b.bind(S,"mscontrolselect",t),e.on("remove",(function(){return b.unbind(S,"mscontrolselect",t)}))}var r=uo.throttle((function(t){e.composing||B(t)}));e.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),e.on("keyup compositionend",(function(t){n&&"TABLE"===n.nodeName&&r(t)})),e.on("hide blur",I),e.on("contextmenu longpress",O,!0)})),e.on("remove",z);var F=function(){n=r=null};return{isResizable:A,showResizeRect:P,hideResizeRect:I,updateResizeRect:B,destroy:F}},Vg=function(t){return ti(t)||ei(t)},Ug=function(t,e,n){while(t&&t!==e){if(n(t))return t;t=t.parentNode}return null},qg=function(t,e,n){var r,i=n.elementFromPoint(t,e),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=ln.toArray(o.getClientRects()),r=r.sort((function(t,n){return t=Math.abs(Math.max(t.top-e,t.bottom-e)),n=Math.abs(Math.max(n.top-e,n.bottom-e)),t-n})),r.length>0){e=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(t,e),o.collapse(!0),o}catch(a){}}return null},Wg=function(t,e){var n=t&&t.parentElement?t.parentElement():null;return ei(Ug(n,e,Vg))?null:t},Kg=function(t,e,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(t,e),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(t,e);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(t,e),r.collapse(!0)}catch(a){r=qg(t,e,n)}return Wg(r,n.body)}return r},Gg=function(t,e){return t&&e&&t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset},Yg=function(t,e,n){while(t&&t!==e){if(n(t))return t;t=t.parentNode}return null},Xg=function(t,e,n){return null!==Yg(t,e,n)},Zg=function(t,e,n){return Xg(t,e,(function(t){return t.nodeName===n}))},Jg=function(t){return t&&"TABLE"===t.nodeName},Qg=function(t){return t&&/^(TD|TH|CAPTION)$/.test(t.nodeName)},tv=function(t,e){return Wo(t)&&!1===Xg(t,e,$p)},ev=function(t,e,n){var r=new ho(e,t.getParent(e.parentNode,t.isBlock)||t.getRoot());while(e=r[n?"prev":"next"]())if(Jr(e))return!0},nv=function(t,e){return t.previousSibling&&t.previousSibling.nodeName===e},rv=function(t,e){while(e&&e!==t){if(ei(e))return!0;e=e.parentNode}return!1},iv=function(t,e,n,r,i){var o,a,s=t.getRoot(),u=t.schema.getNonEmptyElements(),c=t.getParent(i.parentNode,t.isBlock)||s;if(r&&Jr(i)&&e&&t.isEmpty(c))return O.some(_f(i.parentNode,t.nodeIndex(i)));var l=new ho(i,c);while(a=l[r?"prev":"next"]()){if("false"===t.getContentEditableParent(a)||tv(a,s))return O.none();if(Gr(a)&&a.nodeValue.length>0)return!1===Zg(a,s,"A")?O.some(_f(a,r?a.nodeValue.length:0)):O.none();if(t.isBlock(a)||u[a.nodeName.toLowerCase()])return O.none();o=a}return n&&o?O.some(_f(o,0)):O.none()},ov=function(t,e,n,r){var i,o,a,s,u=t.getRoot(),c=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var l=zr(i)&&o===i.childNodes.length,f=t.schema.getNonEmptyElements();if(s=n,Wo(i))return O.none();if(zr(i)&&o>i.childNodes.length-1&&(s=!1),Xr(i)&&(i=u,o=0),i===u){if(s&&(a=i.childNodes[o>0?o-1:0],a)){if(Wo(a))return O.none();if(f[a.nodeName]||Jg(a))return O.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Gr(i)&&l?i.data.length:0,!e&&i===u.lastChild&&Jg(i))return O.none();if(rv(u,i)||Wo(i))return O.none();if(i.hasChildNodes()&&!1===Jg(i)){a=i;var d=new ho(i,u);do{if(ei(a)||Wo(a)){c=!1;break}if(Gr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,c=!0;break}if(f[a.nodeName.toLowerCase()]&&!Qg(a)){o=t.nodeIndex(a),i=a.parentNode,s||o++,c=!0;break}}while(a=s?d.next():d.prev())}}}return e&&(Gr(i)&&0===o&&iv(t,l,e,!0,i).each((function(t){i=t.container(),o=t.offset(),c=!0})),zr(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!Jr(a)||nv(a,"A")||ev(t,a,!1)||ev(t,a,!0)||iv(t,l,e,!0,a).each((function(t){i=t.container(),o=t.offset(),c=!0})))),s&&!e&&Gr(i)&&o===i.nodeValue.length&&iv(t,l,e,!1,i).each((function(t){i=t.container(),o=t.offset(),c=!0})),c?O.some(_f(i,o)):O.none()},av=function(t,e){var n=e.collapsed,r=e.cloneRange(),i=_f.fromRangeStart(e);return ov(t,n,!0,r).each((function(t){n&&_f.isAbove(i,t)||r.setStart(t.container(),t.offset())})),n||ov(t,n,!1,r).each((function(t){r.setEnd(t.container(),t.offset())})),n&&r.collapse(!0),Gg(e,r)?O.none():O.some(r)},sv=function(t,e){return t.splitText(e)},uv=function(t){var e=t.startContainer,n=t.startOffset,r=t.endContainer,i=t.endOffset;return e===r&&Gr(e)?n>0&&n<e.nodeValue.length&&(r=sv(e,n),e=r.previousSibling,i>n?(i-=n,e=r=sv(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Gr(e)&&n>0&&n<e.nodeValue.length&&(e=sv(e,n),n=0),Gr(r)&&i>0&&i<r.nodeValue.length&&(r=sv(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:e,startOffset:n,endContainer:r,endOffset:i}};function cv(t){var e=function(e,n){return Zm(t,e,n)},n=uv,r=function(e){return av(t,e).fold(x,(function(t){return e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),!0}))};return{walk:e,split:n,normalize:r}}(function(t){t.compareRanges=Gg,t.getCaretRangeFromPoint=Kg,t.getSelectedNode=Gl,t.getNode=Yl})(cv||(cv={}));var lv=cv;function fv(t,e){var n=function(e,n){if(!H(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;ii(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var i=mi(n,t);return parseFloat(i)||0}return r},i=r,o=function(t,e){return nt(e,(function(e,n){var r=mi(t,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?e:e+i}),0)},a=function(t,e,n){var r=o(t,n),i=e>r?e-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}}var dv,hv=fv("height",(function(t){var e=t.dom;return Cr(t)?e.getBoundingClientRect().height:e.offsetHeight})),pv=function(t){return hv.get(t)},mv=function(t,e){var n=t.view(e);return n.fold(g([]),(function(e){var n=t.owner(e),r=mv(t,n);return[e].concat(r)}))},gv=function(t,e){var n=e.owner(t);return mv(e,n)},vv=function(t){var e,n=t.dom===document?O.none():O.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement);return n.map(gn.fromDom)},bv=function(t){return Hn(t)},yv=Object.freeze({__proto__:null,view:vv,owner:bv}),wv=function(t){var e=gn.fromDom(document),n=Ar(e),r=gv(t,yv),i=Tr(t),o=et(r,(function(t,e){var n=Tr(e);return{left:t.left+n.left,top:t.top+n.top}}),{left:0,top:0});return kr(o.left+i.left+n.left,o.top+i.top+n.top)},_v=function(t){return"textarea"===Rn(t)},xv=function(t,e){var n=t.fire("ScrollIntoView",e);return n.isDefaultPrevented()},Cv=function(t,e){t.fire("AfterScrollIntoView",e)},Sv=function(t,e){var n=Jn(t);if(0===n.length||_v(t))return{element:t,offset:e};if(e<n.length&&!_v(n[e]))return{element:n[e],offset:0};var r=n[n.length-1];return _v(r)?{element:t,offset:e}:"img"===Rn(r)?{element:r,offset:1}:zn(r)?{element:r,offset:gg(r).length}:{element:r,offset:Jn(r).length}},kv=function(t,e){var n=Or(t),r=pv(t);return{element:t,bottom:n.top+r,height:r,pos:n,cleanup:e}},Mv=function(t,e){var n=Sv(t,e),r=gn.fromHtml('<span data-mce-bogus="all">'+jo+"</span>");return hr(n.element,r),kv(r,(function(){return _r(r)}))},Ev=function(t){return kv(gn.fromDom(t),h)},Ov=function(t,e,n,r){Nv(t,(function(i,o){return Av(t,e,n,r)}),n)},Tv=function(t,e,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!xv(t,o)){var a=Ar(e).top;n(e,a,r,i),Cv(t,o)}},Av=function(t,e,n,r){var i=gn.fromDom(t.getBody()),o=gn.fromDom(t.getDoc());yi(i);var a=Mv(gn.fromDom(n.startContainer),n.startOffset);Tv(t,o,e,a,r),a.cleanup()},Dv=function(t,e,n,r){var i=gn.fromDom(t.getDoc());Tv(t,i,n,Ev(e),r)},Nv=function(t,e,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;e(gn.fromDom(r),gn.fromDom(o));var s=t.dom.createRng();s.setStart(r,i),s.setEnd(o,a),t.selection.setRng(n)},Rv=function(t,e,n,r){var i=t.pos;if(n)Dr(i.left,i.top,r);else{var o=i.top-e+t.height;Dr(i.left,o,r)}},Pv=function(t,e,n,r,i){var o=n+e,a=r.pos.top,s=r.bottom,u=s-a>=n;if(a<e)Rv(r,n,!1!==i,t);else if(a>o){var c=u?!1!==i:!0===i;Rv(r,n,c,t)}else s>o&&!u&&Rv(r,n,!0===i,t)},Iv=function(t,e,n,r){var i=t.dom.defaultView.innerHeight;Pv(t,e,i,n,r)},Bv=function(t,e,n,r){var i=t.dom.defaultView.innerHeight;Pv(t,e,i,n,r);var o=wv(n.element),a=Ir(window);o.top<a.y?Nr(n.element,!1!==r):o.top>a.bottom&&Nr(n.element,!0===r)},Lv=function(t,e,n){return Ov(t,Iv,e,n)},zv=function(t,e,n){return Dv(t,e,Iv,n)},jv=function(t,e,n){return Ov(t,Bv,e,n)},Fv=function(t,e,n){return Dv(t,e,Bv,n)},$v=function(t,e,n){var r=t.inline?zv:Fv;r(t,e,n)},Hv=function(t,e,n){var r=t.inline?Lv:jv;r(t,e,n)},Vv=function(){return gn.fromDom(document)},Uv=function(t){return t.dom.focus()},qv=function(t){var e=sr(t).dom;return t.dom===e.activeElement},Wv=function(t){return void 0===t&&(t=Vv()),O.from(t.dom.activeElement).map(gn.fromDom)},Kv=function(t){return Wv(sr(t)).filter((function(e){return t.dom.contains(e.dom)}))},Gv=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},Yv={create:Gv},Xv=Vi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Zv=function(t,e,n,r){return t.fold(e,n,r)},Jv=function(t){return t.fold(v,v,v)},Qv=Xv.before,tb=Xv.on,eb=Xv.after,nb={before:Qv,on:tb,after:eb,cata:Zv,getStart:Jv},rb=Vi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ib=function(t){return rb.exact(t.start,t.soffset,t.finish,t.foffset)},ob=function(t){return t.match({domRange:function(t){return gn.fromDom(t.startContainer)},relative:function(t,e){return nb.getStart(t)},exact:function(t,e,n,r){return t}})},ab=rb.domRange,sb=rb.relative,ub=rb.exact,cb=function(t){var e=ob(t);return Un(e)},lb=Yv.create,fb={domRange:ab,relative:sb,exact:ub,exactFromRange:ib,getWin:cb,range:lb},db=$e().browser,hb=function(t,e){var n=zn(e)?gg(e).length:Jn(e).length+1;return t>n?n:t<0?0:t},pb=function(t){return fb.range(t.start,hb(t.soffset,t.start),t.finish,hb(t.foffset,t.finish))},mb=function(t,e){return!Lr(e.dom)&&(Nn(t,e)||Tn(t,e))},gb=function(t){return function(e){return mb(t,e.start)&&mb(t,e.finish)}},vb=function(t){return!0===t.inline||db.isIE()},bb=function(t){return fb.range(gn.fromDom(t.startContainer),t.startOffset,gn.fromDom(t.endContainer),t.endOffset)},yb=function(t){var e=t.getSelection(),n=e&&0!==e.rangeCount?O.from(e.getRangeAt(0)):O.none();return n.map(bb)},wb=function(t){var e=Un(t);return yb(e.dom).filter(gb(t))},_b=function(t,e){return O.from(e).filter(gb(t)).map(pb)},xb=function(t){var e=document.createRange();try{return e.setStart(t.start.dom,t.soffset),e.setEnd(t.finish.dom,t.foffset),O.some(e)}catch(n){return O.none()}},Cb=function(t){var e=vb(t)?wb(gn.fromDom(t.getBody())):O.none();t.bookmark=e.isSome()?e:t.bookmark},Sb=function(t,e){var n=gn.fromDom(t.getBody()),r=vb(t)?O.from(e):O.none(),i=r.map(bb).filter(gb(n));t.bookmark=i.isSome()?i:t.bookmark},kb=function(t){var e=t.bookmark?t.bookmark:O.none();return e.bind((function(e){return _b(gn.fromDom(t.getBody()),e)})).bind(xb)},Mb=function(t){kb(t).each((function(e){return t.selection.setRng(e)}))},Eb=function(t){var e=t.className.toString();return-1!==e.indexOf("tox-")||-1!==e.indexOf("mce-")},Ob={isEditorUIElement:Eb},Tb=function(t){return"nodechange"===t.type&&t.selectionChange},Ab=function(t,e){var n=function(){e.throttle()};Tc.DOM.bind(document,"mouseup",n),t.on("remove",(function(){Tc.DOM.unbind(document,"mouseup",n)}))},Db=function(t){t.on("focusout",(function(){Cb(t)}))},Nb=function(t,e){t.on("mouseup touchend",(function(t){e.throttle()}))},Rb=function(t,e){var n=$e().browser;n.isIE()?Db(t):Nb(t,e),t.on("keyup NodeChange",(function(e){Tb(e)||Cb(t)}))},Pb=function(t){var e=tl((function(){Cb(t)}),0);t.on("init",(function(){t.inline&&Ab(t,e),Rb(t,e)})),t.on("remove",(function(){e.cancel()}))},Ib=Tc.DOM,Bb=function(t){return Ob.isEditorUIElement(t)},Lb=function(t){var e=t.classList;return void 0!==e&&(e.contains("tox-edit-area")||e.contains("tox-edit-area__iframe")||e.contains("mce-content-body"))},zb=function(t,e){var n=Jd(t),r=Ib.getParent(e,(function(e){return Bb(e)||!!n&&t.dom.is(e,n)}));return null!==r},jb=function(t){try{var e=sr(gn.fromDom(t.getElement()));return Wv(e).fold((function(){return document.body}),(function(t){return t.dom}))}catch(n){return document.body}},Fb=function(t,e){var n=e.editor;Pb(n),n.on("focusin",(function(){var e=this,n=t.focusedEditor;n!==e&&(n&&n.fire("blur",{focusedEditor:e}),t.setActive(e),t.focusedEditor=e,e.fire("focus",{blurredEditor:n}),e.focus(!0))})),n.on("focusout",(function(){var e=this;uo.setEditorTimeout(e,(function(){var n=t.focusedEditor;zb(e,jb(e))||n!==e||(e.fire("blur",{focusedEditor:null}),t.focusedEditor=null)}))})),dv||(dv=function(e){var n=t.activeEditor;n&&fr(e).each((function(e){e.ownerDocument===document&&(e===document.body||zb(n,e)||t.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),t.focusedEditor=null))}))},Ib.bind(document,"focusin",dv))},$b=function(t,e){t.focusedEditor===e.editor&&(t.focusedEditor=null),t.activeEditor||(Ib.unbind(document,"focusin",dv),dv=null)},Hb=function(t){t.on("AddEditor",b(Fb,t)),t.on("RemoveEditor",b($b,t))},Vb=function(t,e){return t.dom.getParent(e,(function(e){return"true"===t.dom.getContentEditable(e)}))},Ub=function(t){return t.collapsed?O.from(Yl(t.startContainer,t.startOffset)).map(gn.fromDom):O.none()},qb=function(t,e){return Ub(e).bind((function(e){return Do(e)?O.some(e):!1===Nn(t,e)?O.some(t):O.none()}))},Wb=function(t,e){qb(gn.fromDom(t.getBody()),e).bind((function(t){return zp(t.dom)})).fold((function(){t.selection.normalize()}),(function(e){return t.selection.setRng(e.toRange())}))},Kb=function(t){if(t.setActive)try{t.setActive()}catch(e){t.focus()}else t.focus()},Gb=function(t){return qv(t)||Kv(t).isSome()},Yb=function(t){return t.iframeElement&&qv(gn.fromDom(t.iframeElement))},Xb=function(t){var e=t.getBody();return e&&Gb(gn.fromDom(e))},Zb=function(t){return Wv().filter((function(e){return!Lb(e.dom)&&zb(t,e.dom)})).isSome()},Jb=function(t){return t.inline?Xb(t):Yb(t)},Qb=function(t){return Jb(t)||Zb(t)},ty=function(t){var e=t.selection,n=t.getBody(),r=e.getRng();t.quirks.refreshContentEditable(),void 0!==t.bookmark&&!1===Jb(t)&&kb(t).each((function(e){t.selection.setRng(e),r=e}));var i=Vb(t,e.getNode());if(t.$.contains(n,i))return Kb(i),Wb(t,r),void ey(t);t.inline||(Xe.opera||Kb(n),t.getWin().focus()),(Xe.gecko||t.inline)&&(Kb(n),Wb(t,r)),ey(t)},ey=function(t){return t.editorManager.setActive(t)},ny=function(t,e){t.removed||(e?ey(t):ty(t))},ry=function(t,e,n,r,i){var o=n?e.startContainer:e.endContainer,a=n?e.startOffset:e.endOffset;return O.from(o).map(gn.fromDom).map((function(t){return r&&e.collapsed?t:Qn(t,i(t,a)).getOr(t)})).bind((function(t){return Ln(t)?O.some(t):qn(t).filter(Ln)})).map((function(t){return t.dom})).getOr(t)},iy=function(t,e,n){return ry(t,e,!0,n,(function(t,e){return Math.min(nr(t),e)}))},oy=function(t,e,n){return ry(t,e,!1,n,(function(t,e){return e>0?e-1:e}))},ay=function(t,e){var n=t;while(t&&Gr(t)&&0===t.length)t=e?t.nextSibling:t.previousSibling;return t||n},sy=function(t,e){var n,r,i;if(!e)return t;r=e.startContainer,i=e.endContainer;var o=e.startOffset,a=e.endOffset;return n=e.commonAncestorContainer,!e.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?ay(r.nextSibling,!0):r.parentNode,i=0===a?ay(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},uy=function(t,e,n,r){var i,o=[],a=t.getRoot();if(n=t.getParent(n||iy(a,e,e.collapsed),t.isBlock),r=t.getParent(r||oy(a,e,e.collapsed),t.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;var s=new ho(n,a);while((i=s.next())&&i!==r)t.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},cy=function(t,e,n){return O.from(e).map((function(e){var r=t.nodeIndex(e),i=t.createRng();return i.setStart(e.parentNode,r),i.setEnd(e.parentNode,r+1),n&&(lg(t,i,e,!0),lg(t,i,e,!1)),i}))},ly=function(t,e){return X(e,(function(e){var n=t.fire("GetSelectionRange",{range:e});return n.range!==e?n.range:e}))},fy=function(t){return $(t)?t:x},dy=function(t,e,n){var r=t.dom,i=fy(n);while(r.parentNode){r=r.parentNode;var o=gn.fromDom(r),a=e(o);if(a.isSome())return a;if(i(o))break}return O.none()},hy=function(t,e,n){var r=e(t),i=fy(n);return r.orThunk((function(){return i(t)?O.none():dy(t,e,i)}))},py=Cm,my=function(t,e,n){var r=t.formatter.get(n);if(r)for(var i=0;i<r.length;i++)if(!1===r[i].inherit&&t.dom.is(e,r[i].selector))return!0;return!1},gy=function(t,e,n,r){var i=t.dom.getRoot();return e!==i&&(e=t.dom.getParent(e,(function(e){return!!my(t,e,n)||(e.parentNode===i||!!yy(t,e,n,r,!0))})),yy(t,e,n,r))},vy=function(t,e,n){return!!py(e,n.inline)||(!!py(e,n.block)||(n.selector?1===e.nodeType&&t.is(e,n.selector):void 0))},by=function(t,e,n,r,i,o){var a,s,u,c=n[r];if(n.onmatch)return n.onmatch(e,n,r);if(c)if("undefined"===typeof c.length){for(a in c)if(c.hasOwnProperty(a)){if(s="attributes"===r?t.getAttrib(e,a):km(t,e,a),i&&!s&&!n.exact)return;if((!i||n.exact)&&!py(s,Sm(t,xm(c[a],o),a)))return}}else for(u=0;u<c.length;u++)if("attributes"===r?t.getAttrib(e,c[u]):km(t,e,c[u]))return n;return n},yy=function(t,e,n,r,i){var o,a,s,u,c=t.formatter.get(n),l=t.dom;if(c&&e)for(a=0;a<c.length;a++)if(o=c[a],vy(t.dom,e,o)&&by(l,e,o,"attributes",i,r)&&by(l,e,o,"styles",i,r)){if(u=o.classes)for(s=0;s<u.length;s++)if(!t.dom.hasClass(e,u[s]))return;return o}},wy=function(t,e,n,r){if(r)return gy(t,r,e,n);if(r=t.selection.getNode(),gy(t,r,e,n))return!0;var i=t.selection.getStart();return!(i===r||!gy(t,i,e,n))},_y=function(t,e,n){var r=[],i={},o=t.selection.getStart();return t.dom.getParent(o,(function(o){for(var a=0;a<e.length;a++){var s=e[a];!i[s]&&yy(t,o,s,n)&&(i[s]=!0,r.push(s))}}),t.dom.getRoot()),r},xy=function(t,e){var n=function(e){return Tn(e,gn.fromDom(t.getBody()))},r=function(e,n){return yy(t,e.dom,n)?O.some(n):O.none()};return O.from(t.selection.getStart(!0)).bind((function(t){return hy(gn.fromDom(t),(function(t){return vt(e,(function(e){return r(t,e)}))}),n)})).getOrNull()},Cy=function(t,e){var n,r,i,o,a,s=t.formatter.get(e),u=t.dom;if(s)for(n=t.selection.getStart(),r=Em(u,n),o=s.length-1;o>=0;o--){if(a=s[o].selector,!a||s[o].defaultBlock)return!0;for(i=r.length-1;i>=0;i--)if(u.is(r[i],a))return!0}return!1},Sy=function(t,e,n){return nt(n,(function(n,r){var i=Om(t,r);return t.formatter.matchNode(e,r,{},i)?n.concat([r]):n}),[])},ky={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},My=function(t,e,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(t[r])return t[r];if(t!==e){var o=t[i];if(o)return o;for(var a=t.parent;a&&a!==e;a=a.parent)if(o=a[i],o)return o}},Ey=function(t){if(!wa(t.value))return!1;var e=t.parent;return!e||"span"===e.name&&!e.attr("style")||!/^[ ]+$/.test(t.value)},Oy=function(t){var e="a"===t.name&&!t.attr("href")&&t.attr("id");return t.attr("name")||t.attr("id")&&!t.firstChild||t.attr("data-mce-bookmark")||e},Ty=function(){function t(t,e){this.name=t,this.type=e,1===e&&(this.attributes=[],this.attributes.map={})}return t.create=function(e,n){var r=new t(e,ky[e]||1);return n&&wt(n,(function(t,e){r.attr(e,t)})),r},t.prototype.replace=function(t){var e=this;return t.parent&&t.remove(),e.insert(t,e),e.remove(),e},t.prototype.attr=function(t,e){var n,r=this;if("string"!==typeof t)return void 0!==t&&null!==t&&wt(t,(function(t,e){r.attr(e,t)})),r;if(n=r.attributes){if(void 0!==e){if(null===e){if(t in n.map){delete n.map[t];var i=n.length;while(i--)if(n[i].name===t)return n.splice(i,1),r}return r}if(t in n.map){i=n.length;while(i--)if(n[i].name===t){n[i].value=e;break}}else n.push({name:t,value:e});return n.map[t]=e,r}return n.map[t]}},t.prototype.clone=function(){var e,n=this,r=new t(n.name,n.type);if(e=n.attributes){var i=[];i.map={};for(var o=0,a=e.length;o<a;o++){var s=e[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},t.prototype.wrap=function(t){var e=this;return e.parent.insert(t,e),t.append(e),e},t.prototype.unwrap=function(){for(var t=this,e=t.firstChild;e;){var n=e.next;t.insert(e,t,!0),e=n}t.remove()},t.prototype.remove=function(){var t=this,e=t.parent,n=t.next,r=t.prev;return e&&(e.firstChild===t?(e.firstChild=n,n&&(n.prev=null)):r.next=n,e.lastChild===t?(e.lastChild=r,r&&(r.next=null)):n.prev=r,t.parent=t.next=t.prev=null),t},t.prototype.append=function(t){var e=this;t.parent&&t.remove();var n=e.lastChild;return n?(n.next=t,t.prev=n,e.lastChild=t):e.lastChild=e.firstChild=t,t.parent=e,t},t.prototype.insert=function(t,e,n){t.parent&&t.remove();var r=e.parent||this;return n?(e===r.firstChild?r.firstChild=t:e.prev.next=t,t.prev=e.prev,t.next=e,e.prev=t):(e===r.lastChild?r.lastChild=t:e.next.prev=t,t.next=e.next,t.prev=e,e.next=t),t.parent=r,t},t.prototype.getAll=function(t){for(var e=this,n=[],r=e.firstChild;r;r=My(r,e))r.name===t&&n.push(r);return n},t.prototype.empty=function(){var t=this;if(t.firstChild){for(var e=[],n=t.firstChild;n;n=My(n,t))e.push(n);var r=e.length;while(r--){n=e[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return t.firstChild=t.lastChild=null,t},t.prototype.isEmpty=function(t,e,n){void 0===e&&(e={});var r=this,i=r.firstChild;if(Oy(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(t[i.name])return!1;if(Oy(i))return!1}if(8===i.type)return!1;if(3===i.type&&!Ey(i))return!1;if(3===i.type&&i.parent&&e[i.parent.name]&&wa(i.value))return!1;if(n&&n(i))return!1}while(i=My(i,r));return!0},t.prototype.walk=function(t){return My(this,null,t)},t}(),Ay=ln.makeMap,Dy=function(t){var e=[];t=t||{};var n=t.indent,r=Ay(t.indent_before||""),i=Ay(t.indent_after||""),o=es.getEncodeFunc(t.entity_encoding||"raw",t.entities),a="html"===t.element_format;return{start:function(t,s,u){var c,l,f,d;if(n&&r[t]&&e.length>0&&(d=e[e.length-1],d.length>0&&"\n"!==d&&e.push("\n")),e.push("<",t),s)for(c=0,l=s.length;c<l;c++)f=s[c],e.push(" ",f.name,'="',o(f.value,!0),'"');e[e.length]=!u||a?">":" />",u&&n&&i[t]&&e.length>0&&(d=e[e.length-1],d.length>0&&"\n"!==d&&e.push("\n"))},end:function(t){var r;e.push("</",t,">"),n&&i[t]&&e.length>0&&(r=e[e.length-1],r.length>0&&"\n"!==r&&e.push("\n"))},text:function(t,n){t.length>0&&(e[e.length]=n?t:o(t))},cdata:function(t){e.push("<![CDATA[",t,"]]>")},comment:function(t){e.push("\x3c!--",t,"--\x3e")},pi:function(t,r){r?e.push("<?",t," ",o(r),"?>"):e.push("<?",t,"?>"),n&&e.push("\n")},doctype:function(t){e.push("<!DOCTYPE",t,">",n?"\n":"")},reset:function(){e.length=0},getContent:function(){return e.join("").replace(/\n$/,"")}}},Ny=function(t,e){void 0===e&&(e=ds());var n=Dy(t);t=t||{},t.validate=!("validate"in t)||t.validate;var r=function(r){var i=t.validate,o={3:function(t){n.text(t.value,t.raw)},8:function(t){n.comment(t.value)},7:function(t){n.pi(t.name,t.value)},10:function(t){n.doctype(t.value)},4:function(t){n.cdata(t.value)},11:function(t){if(t=t.firstChild)do{a(t)}while(t=t.next)}};n.reset();var a=function(t){var r,s,u,c,l,f,d,h,p,m=o[t.type];if(m)m(t);else{if(r=t.name,s=t.shortEnded,u=t.attributes,i&&u&&u.length>1&&(f=[],f.map={},p=e.getElementRule(t.name),p)){for(d=0,h=p.attributesOrder.length;d<h;d++)c=p.attributesOrder[d],c in u.map&&(l=u.map[c],f.map[c]=l,f.push({name:c,value:l}));for(d=0,h=u.length;d<h;d++)c=u[d].name,c in f.map||(l=u.map[c],f.map[c]=l,f.push({name:c,value:l}));u=f}if(n.start(t.name,u,s),!s){if(t=t.firstChild)do{a(t)}while(t=t.next);n.end(r)}}};return 1!==r.type||t.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},Ry=function(t){var e,n=/data:[^;]+;base64,([a-z0-9\+\/=]+)/gi,r=[],i={},o=Ml("img"),a=0,s=0;while(e=n.exec(t)){var u=e[0],c=o+"_"+s++;i[c]=u,a<e.index&&r.push(t.substr(a,e.index-a)),r.push(c),a=e.index+u.length}return 0===a?{prefix:o,uris:i,html:t}:(a<t.length&&r.push(t.substr(a)),{prefix:o,uris:i,html:r.join("")})},Py=function(t,e){return t.replace(new RegExp(e.prefix+"_[0-9]+","g"),(function(t){return Tt(e.uris,t).getOr(t)}))},Iy=function(t){var e=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(t);return e?O.some({type:e[1],data:decodeURIComponent(e[2])}):O.none()},By=["img","video"],Ly=function(t){return 0===t.indexOf("data-")||0===t.indexOf("aria-")},zy=function(t,e){var n=j(t)?G(By,e):t;return!n},jy=function(t,e,n){return!t.allow_html_data_urls&&(/^data:image\//i.test(e)?zy(t.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(e):/^data:/i.test(e))},Fy=function(t,e,n){var r,i,o=1,a=t.getShortEndedElements(),s=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g;s.lastIndex=r=n;while(i=s.exec(e)){if(r=s.lastIndex,"/"===i[1])o--;else if(!i[1]){if(i[2]in a)continue;o++}if(0===o)break}return r},$y=function(t,e){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(t.substr(e))},Hy=function(t,e,n){void 0===n&&(n=0);var r=t.toLowerCase();if(-1!==r.indexOf("[if ",n)&&$y(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(e){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/;a.lastIndex=n;var s=a.exec(t);return s?s.index+s[0].length:r.length},Vy=function(t,e){var n=t.exec(e);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null};function Uy(t,e){void 0===e&&(e=ds());var n=function(){};t=t||{},!1!==t.fix_self_closing&&(t.fix_self_closing=!0);var r=t.comment?t.comment:n,i=t.cdata?t.cdata:n,o=t.text?t.text:n,a=t.start?t.start:n,s=t.end?t.end:n,u=t.pi?t.pi:n,c=t.doctype?t.doctype:n,l=function(n,l){void 0===l&&(l="html");var f,d,h,p,m,g,v,b,y,w,_,x,C,S,k,M,E,O,T,A,D=n.html,N=0,R=[],P=0,I=es.decode,B=ln.makeMap("src,href,data,background,formaction,poster,xlink:href"),L=/((java|vb)script|mhtml):/i,z="html"===l?0:1,j=function(t){var e,n;e=R.length;while(e--)if(R[e].name===t)break;if(e>=0){for(n=R.length-1;n>=e;n--)t=R[n],t.valid&&s(t.name);R.length=e}},F=function(t,e){return o(Py(t,n),e)},$=function(e){""!==e&&(">"===e.charAt(0)&&(e=" "+e),t.allow_conditional_comments||"[if"!==e.substr(0,3).toLowerCase()||(e=" "+e),r(Py(e,n)))},H=function(t){return Tt(n.uris,t).getOr(t)},V=function(t,e){var n=t||"",r=!se(n,"--"),i=Hy(D,r,e);return t=D.substr(e,i-e),$(r?n+t:t),i+1},U=function(e,n,r,i,o){var a,s,u=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=H(n in Y?n:I(r||i||o||"")),X&&!b&&!1===Ly(n)){if(a=S[n],!a&&k){s=k.length;while(s--)if(a=k[s],a.pattern.test(n))break;-1===s&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if(B[n]&&!t.allow_script_urls){var c=r.replace(u,"");try{c=decodeURIComponent(c)}catch(l){c=unescape(c)}if(L.test(c))return;if(jy(t,c,e))return}b&&(n in B||0===n.indexOf("on"))||(p.map[n]=r,p.push({name:n,value:r}))},q=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),W=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,K=e.getShortEndedElements(),G=t.self_closing_elements||e.getSelfClosingElements(),Y=e.getBoolAttrs(),X=t.validate,Z=t.remove_internals,J=t.fix_self_closing,Q=e.getSpecialElements(),tt=D+">";while(f=q.exec(tt)){var et=f[0];if(N<f.index&&F(I(D.substr(N,f.index-N))),d=f[7])d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),j(d);else if(d=f[8]){if(f.index+et.length>D.length){F(I(D.substr(f.index))),N=f.index+et.length;continue}d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),y=d in K,J&&G[d]&&R.length>0&&R[R.length-1].name===d&&j(d);var nt=Vy(W,f[9]);if(null!==nt){if("all"===nt){N=Fy(e,D,q.lastIndex),q.lastIndex=N;continue}_=!1}if(!X||(w=e.getElementRule(d))){if(_=!0,X&&(S=w.attributes,k=w.attributePatterns),(C=f[9])?(b=-1!==C.indexOf("data-mce-type"),b&&Z&&(_=!1),p=[],p.map={},C.replace(W,(function(t,e,n,r,i){return U(d,e,n,r,i),""}))):(p=[],p.map={}),X&&!b){if(M=w.attributesRequired,E=w.attributesDefault,O=w.attributesForced,T=w.removeEmptyAttrs,T&&!p.length&&(_=!1),O){m=O.length;while(m--)x=O[m],v=x.name,A=x.value,"{$uid}"===A&&(A="mce_"+P++),p.map[v]=A,p.push({name:v,value:A})}if(E){m=E.length;while(m--)x=E[m],v=x.name,v in p.map||(A=x.value,"{$uid}"===A&&(A="mce_"+P++),p.map[v]=A,p.push({name:v,value:A}))}if(M){m=M.length;while(m--)if(M[m]in p.map)break;-1===m&&(_=!1)}if(x=p.map["data-mce-bogus"]){if("all"===x){N=Fy(e,D,q.lastIndex),q.lastIndex=N;continue}_=!1}}_&&a(d,p,y)}else _=!1;if(h=Q[d]){h.lastIndex=N=f.index+et.length,(f=h.exec(D))?(_&&(g=D.substr(N,f.index-N)),N=f.index+f[0].length):(g=D.substr(N),N=D.length),_&&(g.length>0&&F(g,!0),s(d)),q.lastIndex=N;continue}y||(C&&C.indexOf("/")===C.length-1?_&&s(d):R.push({name:d,valid:_}))}else if(d=f[1])$(d);else if(d=f[2]){var rt=1===z||t.preserve_cdata||R.length>0&&e.isValidChild(R[R.length-1].name,"#cdata");if(!rt){N=V("",f.index+2),q.lastIndex=N;continue}i(d)}else if(d=f[3])c(d);else{if((d=f[4])||"<!"===et){N=V(d,f.index+et.length),q.lastIndex=N;continue}if(d=f[5]){if(1!==z){N=V("?",f.index+2),q.lastIndex=N;continue}u(d,f[6])}}N=f.index+et.length}for(N<D.length&&F(I(D.substr(N))),m=R.length-1;m>=0;m--)d=R[m],d.valid&&s(d.name)},f=function(t,e){void 0===e&&(e="html"),l(Ry(t),e)};return{parse:f}}(function(t){t.findEndTag=Fy})(Uy||(Uy={}));var qy=Uy,Wy=function(t,e){var n=new RegExp(["\\s?("+t.join("|")+')="[^"]+"'].join("|"),"gi");return e.replace(n,"")},Ky=function(t,e){var n,r,i,o,a=e,s=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,u=t.schema;a=Wy(t.getTempAttrs(),a);var c=u.getShortEndedElements();while(o=s.exec(a))r=s.lastIndex,i=o[0].length,n=c[o[1]]?r:qy.findEndTag(u,a,r),a=a.substring(0,r-i)+a.substring(n),s.lastIndex=r-i;return $o(a)},Gy=Ky,Yy=function(t,e){var n=pd(t),r=new RegExp("^(<"+n+"[^>]*>( | |\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return e.replace(r,"")},Xy=function(t,e,n,r){var i;return e.format=n,e.get=!0,e.getInner=!0,e.no_events||t.fire("BeforeGetContent",e),i="raw"===e.format?ln.trim(Gy(t.serializer,r.innerHTML)):"text"===e.format?t.dom.isEmpty(r)?"":$o(r.innerText||r.textContent):"tree"===e.format?t.serializer.serialize(r,e):Yy(t,t.serializer.serialize(r,e)),G(["text","tree"],e.format)||Ro(gn.fromDom(r))?e.content=i:e.content=ln.trim(i),e.no_events||t.fire("GetContent",e),e.content},Zy=function(t,e,n){return O.from(t.getBody()).fold(g("tree"===e.format?new Ty("body",11):""),(function(r){return Xy(t,e,n,r)}))},Jy=ln.each,Qy=function(t){this.compare=function(e,n){if(e.nodeName!==n.nodeName)return!1;var r=function(e){var n={};return Jy(t.getAttribs(e),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=t.getAttrib(e,i))})),n},i=function(t,e){var n,r;for(r in t)if(t.hasOwnProperty(r)){if(n=e[r],"undefined"===typeof n)return!1;if(t[r]!==n)return!1;delete e[r]}for(r in e)if(e.hasOwnProperty(r))return!1;return!0};return!!i(r(e),r(n))&&(!!i(t.parseStyle(t.getAttrib(e,"style")),t.parseStyle(t.getAttrib(n,"style")))&&(!cm(e)&&!cm(n)))}},tw=function(t,e,n){return O.from(n.container()).filter(Gr).exists((function(r){var i=t?0:-1;return e(r.data.charAt(n.offset()+i))}))},ew=b(tw,!0,dm),nw=b(tw,!1,dm),rw=function(t){var e=t.container();return Gr(e)&&(0===e.data.length||Fo(e.data)&&kg.isBookmarkNode(e.parentNode))},iw=function(t,e){return function(n){return O.from(Qh(t?0:-1,n)).filter(e).isSome()}},ow=function(t){return Qr(t)&&"block"===mi(gn.fromDom(t),"display")},aw=function(t){return ei(t)&&!Ur(t)},sw=iw(!0,ow),uw=iw(!1,ow),cw=iw(!0,ri),lw=iw(!1,ri),fw=iw(!0,qr),dw=iw(!1,qr),hw=iw(!0,aw),pw=iw(!1,aw),mw=function(t){var e=[],n=t.dom;while(n)e.push(gn.fromDom(n)),n=n.lastChild;return e},gw=function(t){var e=pl(t,"br"),n=tt(mw(t).slice(-1),Eo);e.length===n.length&&Z(n,_r)},vw=function(t){wr(t),gr(t,gn.fromHtml('<br data-mce-bogus="1">'))},bw=function(t){er(t).each((function(e){Gn(e).each((function(n){So(t)&&Eo(e)&&So(n)&&_r(e)}))}))},yw=function(t){return t.slice(0,-1)},ww=function(t,e,n){return Nn(e,t)?yw(Wn(t,(function(t){return n(t)||Tn(t,e)}))):[]},_w=function(t,e){return ww(t,e,x)},xw=function(t,e){return[t].concat(_w(t,e))},Cw=function(t,e,n){return Pp(t,e,n,rw)},Sw=function(t,e){return it(xw(gn.fromDom(e.container()),t),So)},kw=function(t,e,n){return Cw(t,e.dom,n).forall((function(t){return Sw(e,n).fold((function(){return!1===Jh(t,n,e.dom)}),(function(r){return!1===Jh(t,n,e.dom)&&Nn(r,gn.fromDom(t.container()))}))}))},Mw=function(t,e,n){return Sw(e,n).fold((function(){return Cw(t,e.dom,n).forall((function(t){return!1===Jh(t,n,e.dom)}))}),(function(e){return Cw(t,e.dom,n).isNone()}))},Ew=b(Mw,!1),Ow=b(Mw,!0),Tw=b(kw,!1),Aw=b(kw,!0),Dw=function(t){return up(t).exists(Eo)},Nw=function(t,e,n){var r=tt(xw(gn.fromDom(n.container()),e),So),i=pt(r).getOr(e);return Np(t,i.dom,n).filter(Dw)},Rw=function(t,e){return up(e).exists(Eo)||Nw(!0,t,e).isSome()},Pw=function(t,e){return cp(e).exists(Eo)||Nw(!1,t,e).isSome()},Iw=b(Nw,!1),Bw=b(Nw,!0),Lw=function(t){return _f.isTextPosition(t)&&!t.isAtStart()&&!t.isAtEnd()},zw=function(t,e){var n=tt(xw(gn.fromDom(e.container()),t),So);return pt(n).getOr(t)},jw=function(t,e){return Lw(e)?nw(e):nw(e)||Lp(zw(t,e).dom,e).exists(nw)},Fw=function(t,e){return Lw(e)?ew(e):ew(e)||Bp(zw(t,e).dom,e).exists(ew)},$w=function(t){return G(["pre","pre-wrap"],t)},Hw=function(t){return up(t).bind((function(t){return Gi(t,Ln)})).exists((function(t){return $w(mi(t,"white-space"))}))},Vw=function(t,e){return Lp(t.dom,e).isNone()},Uw=function(t,e){return Bp(t.dom,e).isNone()},qw=function(t,e){return Vw(t,e)||Uw(t,e)||Ew(t,e)||Ow(t,e)||Pw(t,e)||Rw(t,e)},Ww=function(t,e){return!Hw(e)&&(qw(t,e)||jw(t,e)||Fw(t,e))},Kw=function(t,e){return!Hw(e)&&(Ew(t,e)||Tw(t,e)||Pw(t,e)||jw(t,e))},Gw=function(t){var e=t.container(),n=t.offset();return Gr(e)&&n<e.data.length?_f(e,n+1):t},Yw=function(t,e){return!Hw(e)&&(Ow(t,e)||Aw(t,e)||Rw(t,e)||Fw(t,e))},Xw=function(t,e){return Kw(t,e)||Yw(t,Gw(e))},Zw=function(t,e){return fm(t.charAt(e))},Jw=function(t){var e=t.container();return Gr(e)&&ae(e.data,Bo)},Qw=function(t){var e=t.split("");return X(e,(function(t,n){return fm(t)&&n>0&&n<e.length-1&&hm(e[n-1])&&hm(e[n+1])?" ":t})).join("")},t_=function(t,e){var n=e.data,r=_f(e,0);return!(!Zw(n,0)||Xw(t,r))&&(e.data=" "+n.slice(1),!0)},e_=function(t){var e=t.data,n=Qw(e);return n!==e&&(t.data=n,!0)},n_=function(t,e){var n=e.data,r=_f(e,n.length-1);return!(!Zw(n,n.length-1)||Xw(t,r))&&(e.data=n.slice(0,-1)+" ",!0)},r_=function(t,e){return O.some(e).filter(Jw).bind((function(e){var n=e.container(),r=t_(t,n)||e_(n)||n_(t,n);return r?O.some(e):O.none()}))},i_=function(t){var e=gn.fromDom(t.getBody());t.selection.isCollapsed()&&r_(e,_f.fromRangeStart(t.selection.getRng())).each((function(e){t.selection.setRng(e.toRange())}))},o_=function(t,e,n){var r=nt(t,(function(r,i){return dm(i)||fm(i)?r.previousCharIsSpace||""===r.str&&e||r.str.length===t.length-1&&n?{previousCharIsSpace:!1,str:r.str+Bo}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},a_=function(t,e,n){if(0!==n){var r=gn.fromDom(t),i=Ki(r,So).getOr(r),o=t.data.slice(e,e+n),a=e+n>=t.data.length&&Yw(i,Cf(t,t.data.length)),s=0===e&&Kw(i,Cf(t,0));t.replaceData(e,n,o_(o,s,a))}},s_=function(t,e){var n=t.data.slice(e),r=n.length-le(n).length;return a_(t,e,r)},u_=function(t,e){var n=t.data.slice(0,e),r=n.length-fe(n).length;return a_(t,e-r,r)},c_=function(t,e,n,r){void 0===r&&(r=!0);var i=fe(t.data).length,o=r?t:e,a=r?e:t;return r?o.appendData(a.data):o.insertData(0,a.data),_r(gn.fromDom(a)),n&&s_(o,i),o},l_=function(t,e){var n=t.container(),r=t.offset();return!1===Cf.isTextPosition(t)&&n===e.parentNode&&r>Cf.before(e).offset()},f_=function(t,e){return l_(e,t)?Cf(e.container(),e.offset()-1):e},d_=function(t){return Gr(t)?Cf(t,0):Cf.before(t)},h_=function(t){return Gr(t)?Cf(t,t.data.length):Cf.after(t)},p_=function(t){return da(t.previousSibling)?O.some(h_(t.previousSibling)):t.previousSibling?jp(t.previousSibling):O.none()},m_=function(t){return da(t.nextSibling)?O.some(d_(t.nextSibling)):t.nextSibling?zp(t.nextSibling):O.none()},g_=function(t,e){var n=Cf.before(e.previousSibling?e.previousSibling:e.parentNode);return Lp(t,n).fold((function(){return Bp(t,Cf.after(e))}),O.some)},v_=function(t,e){return Bp(t,Cf.after(e)).fold((function(){return Lp(t,Cf.before(e))}),O.some)},b_=function(t,e){return p_(e).orThunk((function(){return m_(e)})).orThunk((function(){return g_(t,e)}))},y_=function(t,e){return m_(e).orThunk((function(){return p_(e)})).orThunk((function(){return v_(t,e)}))},w_=function(t,e,n){return t?y_(e,n):b_(e,n)},__=function(t,e,n){return w_(t,e,n).map(b(f_,n))},x_=function(t,e,n){n.fold((function(){t.focus()}),(function(n){t.selection.setRng(n.toRange(),e)}))},C_=function(t){return function(e){return e.dom===t}},S_=function(t,e){return e&&At(t.schema.getBlockElements(),Rn(e))},k_=function(t){if(Ta(t)){var e=gn.fromHtml('<br data-mce-bogus="1">');return wr(t),gr(t,e),O.some(Cf.before(e.dom))}return O.none()},M_=function(t,e,n){var r=Gn(t).filter(zn),i=Yn(t).filter(zn);return _r(t),zl(r,i,e,(function(t,e,r){var i=t.dom,o=e.dom,a=i.data.length;return c_(i,o,n),r.container()===o?Cf(i,a):r})).orThunk((function(){return n&&(r.each((function(t){return u_(t.dom,t.dom.length)})),i.each((function(t){return s_(t.dom,0)}))),e}))},E_=function(t,e){return At(t.schema.getTextInlineElements(),Rn(e))},O_=function(t,e,n,r){void 0===r&&(r=!0);var i=__(e,t.getBody(),n.dom),o=Ki(n,b(S_,t),C_(t.getBody())),a=M_(n,i,E_(t,n));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):o.bind(k_).fold((function(){r&&x_(t,e,a)}),(function(n){r&&x_(t,e,O.some(n))}))},T_=function(t,e){return{start:t,end:e}},A_=function(t,e,n){return{rng:t,table:e,cells:n}},D_=Vi.generate([{removeTable:["element"]},{emptyCells:["cells"]},{deleteCellSelection:["rng","cell"]}]),N_=function(t){return function(e){return Tn(t,e)}},R_=function(t,e){return Qi(gn.fromDom(t),"td,th",e)},P_=function(t,e){return Zi(t,"table",e)},I_=function(t){return!Tn(t.start,t.end)},B_=function(t,e){return P_(t.start,e).bind((function(n){return P_(t.end,e).bind((function(t){return jl(Tn(n,t),n)}))}))},L_=function(t,e){return!I_(t)&&B_(t,e).exists((function(t){var e=t.dom.rows;return 1===e.length&&1===e[0].cells.length}))},z_=function(t){return pl(t,"td,th")},j_=function(t,e){var n=R_(t.startContainer,e),r=R_(t.endContainer,e);return Ll(n,r,T_)},F_=function(t,e){return P_(t.start,e).bind((function(e){return mt(z_(e)).map((function(e){return T_(t.start,e)}))}))},$_=function(t,e){var n=R_(e.startContainer,t),r=R_(e.endContainer,t);return e.collapsed?O.none():Ll(n,r,T_).fold((function(){return n.fold((function(){return r.bind((function(e){return P_(e,t).bind((function(t){return pt(z_(t)).map((function(t){return T_(t,e)}))}))}))}),(function(e){return P_(e,t).bind((function(t){return mt(z_(t)).map((function(t){return T_(e,t)}))}))}))}),(function(e){return H_(t,e)?O.none():F_(e,t)}))},H_=function(t,e){return B_(e,t).isSome()},V_=function(t,e){return B_(t,e).map((function(e){return A_(t,e,z_(e))}))},U_=function(t,e,n){return t.filter((function(t){return I_(t)&&H_(n,t)})).orThunk((function(){return $_(n,e)})).bind((function(t){return V_(t,n)}))},q_=function(t,e){return ot(t,(function(t){return Tn(t,e)}))},W_=function(t){return Ll(q_(t.cells,t.rng.start),q_(t.cells,t.rng.end),(function(e,n){return t.cells.slice(e,n+1)}))},K_=function(t,e,n){return t.filter((function(t){return L_(t,n)&&cg(t.start,e)})).map((function(t){return t.start}))},G_=function(t){return W_(t).map((function(e){var n=t.cells;return e.length===n.length?D_.removeTable(t.table):D_.emptyCells(e)}))},Y_=function(t,e){var n=N_(t),r=j_(e,n);return K_(r,e,n).map((function(t){return D_.deleteCellSelection(e,t)})).orThunk((function(){return U_(r,e,n).bind(G_)}))},X_=function(t){var e=Bn(t)?Gn(t):er(t);return e.bind(X_).orThunk((function(){return O.some(t)}))},Z_=function(t,e){return Z(e,vw),t.selection.setCursorLocation(e[0].dom,0),!0},J_=function(t,e,n){e.deleteContents();var r=X_(n).getOr(n),i=gn.fromDom(t.dom.getParent(r.dom,t.dom.isBlock));if(Ta(i)&&(vw(i),t.selection.setCursorLocation(i.dom,0)),!Tn(n,i)){var o=qn(i).is(n)?[]:Kn(i);Z(o.concat(Jn(n)),(function(t){Tn(t,i)||Nn(t,i)||_r(t)}))}return!0},Q_=function(t,e){return O_(t,!1,e),!0},tx=function(t,e,n){return Y_(e,n).map((function(e){return e.fold(b(Q_,t),b(Z_,t),b(J_,t))}))},ex=function(t,e){return sx(t,e)},nx=function(t,e,n,r){return ox(e,r).fold((function(){return tx(t,e,n)}),(function(e){return ex(t,e)})).getOr(!1)},rx=function(t,e){var n=gn.fromDom(t.getBody()),r=t.selection.getRng(),i=ig(t);return 0!==i.length?Z_(t,i):nx(t,n,r,e)},ix=function(t,e){return it(xw(e,t),No)},ox=function(t,e){return it(xw(e,t),(function(t){return"caption"===Rn(t)}))},ax=function(t,e,n,r,i){return Rp(n,t.getBody(),i).bind((function(t){return ix(e,gn.fromDom(t.getNode())).map((function(t){return!1===Tn(t,r)}))}))},sx=function(t,e){return vw(e),t.selection.setCursorLocation(e.dom,0),O.some(!0)},ux=function(t,e,n,r){return zp(t.dom).bind((function(i){return jp(t.dom).map((function(t){return e?n.isEqual(i)&&r.isEqual(t):n.isEqual(t)&&r.isEqual(i)}))})).getOr(!0)},cx=function(t,e){return sx(t,e)},lx=function(t,e,n){return ox(t,gn.fromDom(n.getNode())).map((function(t){return!1===Tn(t,e)}))},fx=function(t,e,n,r,i){return Rp(n,t.getBody(),i).bind((function(o){return ux(r,n,i,o)?cx(t,r):lx(e,r,o)})).or(O.some(!0))},dx=function(t,e,n,r){var i=Cf.fromRangeStart(t.selection.getRng());return ix(n,r).bind((function(r){return Ta(r)?sx(t,r):ax(t,n,e,r,i)})).getOr(!1)},hx=function(t,e,n,r){var i=Cf.fromRangeStart(t.selection.getRng());return Ta(r)?sx(t,r):fx(t,n,e,r,i)},px=function(t,e){return t?fw(e):dw(e)},mx=function(t,e){var n=Cf.fromRangeStart(t.selection.getRng());return px(e,n)||Np(e,t.getBody(),n).exists((function(t){return px(e,t)}))},gx=function(t,e,n){var r=gn.fromDom(t.getBody());return ox(r,n).fold((function(){return dx(t,e,r,n)||mx(t,e)}),(function(n){return hx(t,e,r,n).getOr(!1)}))},vx=function(t,e){var n=gn.fromDom(t.selection.getStart(!0)),r=ig(t);return t.selection.isCollapsed()&&0===r.length?gx(t,e,n):rx(t,n)},bx=function(t,e,n,r){var i=document.createRange();return i.setStart(t,e),i.setEnd(n,r),i},yx=function(t){var e=Cf.fromRangeStart(t),n=Cf.fromRangeEnd(t),r=t.commonAncestorContainer;return Np(!1,r,n).map((function(i){return!Jh(e,n,r)&&Jh(e,i,r)?bx(e.container(),e.offset(),i.container(),i.offset()):t})).getOr(t)},wx=function(t){return t.collapsed?t:yx(t)},_x=function(t){return t.firstChild&&t.firstChild===t.lastChild},xx=function(t){return"br"===t.name||t.value===Bo},Cx=function(t,e){var n=t.getBlockElements();return n[e.name]&&_x(e)&&xx(e.firstChild)},Sx=function(t,e){var n=t.getNonEmptyElements();return e&&(e.isEmpty(n)||Cx(t,e))},kx=function(t,e){var n=e.firstChild,r=e.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),Sx(t,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},Mx=function(t){var e=t.firstChild,n=t.lastChild;return e&&"META"===e.nodeName&&e.parentNode.removeChild(e),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),t},Ex=function(t,e,n){var r=e.serialize(n),i=t.createFragment(r);return Mx(i)},Ox=function(t){return ln.grep(t.childNodes,(function(t){return"LI"===t.nodeName}))},Tx=function(t){return t.data===Bo||Jr(t)},Ax=function(t){return t&&t.firstChild&&t.firstChild===t.lastChild&&Tx(t.firstChild)},Dx=function(t){return!t.firstChild||Ax(t)},Nx=function(t){return t.length>0&&Dx(t[t.length-1])?t.slice(0,-1):t},Rx=function(t,e){var n=t.getParent(e,t.isBlock);return n&&"LI"===n.nodeName?n:null},Px=function(t,e){return!!Rx(t,e)},Ix=function(t,e){var n=e.cloneRange(),r=e.cloneRange();return n.setStartBefore(t),r.setEndAfter(t),[n.cloneContents(),r.cloneContents()]},Bx=function(t,e){var n=Cf.before(t),r=Sp(e),i=r.next(n);return i?i.toRange():null},Lx=function(t,e){var n=Cf.after(t),r=Sp(e),i=r.prev(n);return i?i.toRange():null},zx=function(t,e,n,r){var i=Ix(t,r),o=t.parentNode;return o.insertBefore(i[0],t),ln.each(e,(function(e){o.insertBefore(e,t)})),o.insertBefore(i[1],t),o.removeChild(t),Lx(e[e.length-1],n)},jx=function(t,e,n){var r=t.parentNode;return ln.each(e,(function(e){r.insertBefore(e,t)})),Bx(t,n)},Fx=function(t,e,n,r){return r.insertAfter(e.reverse(),t),Lx(e[0],n)},$x=function(t,e,n,r){var i=Ex(e,t,r),o=Rx(e,n.startContainer),a=Nx(Ox(i.firstChild)),s=1,u=2,c=e.getRoot(),l=function(t){var r=Cf.fromRangeStart(n),i=Sp(e.getRoot()),a=t===s?i.prev(r):i.next(r);return!a||Rx(e,a.getNode())!==o};return l(s)?jx(o,a,c):l(u)?Fx(o,a,c,e):zx(o,a,c,n)},Hx=function(t,e,n){var r=gn.fromDom(t.getRoot());return n=Kw(r,Cf.fromRangeStart(e))?n.replace(/^ /," "):n.replace(/^ /," "),n=Yw(r,Cf.fromRangeEnd(e))?n.replace(/( | )(<br( \/)>)?$/," "):n.replace(/ (<br( \/)?>)?$/," "),n},Vx=ni,Ux=function(t,e,n){if(null!==n){var r=t.getParent(e.endContainer,Vx);return n===r&&cg(gn.fromDom(n),e)}return!1},qx=function(t,e,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(t.dom.createFragment(e),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?t.dom.setHTML(n,e):t.selection.setContent(e)}},Wx=function(t,e){O.from(t.getParent(e,"td,th")).map(gn.fromDom).each(bw)},Kx=function(t,e){var n=t.schema.getTextInlineElements(),r=t.dom;if(e){var i=t.getBody(),o=new Qy(r);ln.each(r.select("*[data-mce-fragment]"),(function(t){for(var e=t.parentNode;e&&e!==i;e=e.parentNode)n[t.nodeName.toLowerCase()]&&o.compare(e,t)&&r.remove(t,!0)}))}},Gx=function(t){var e=t;while(e=e.walk())1===e.type&&e.attr("data-mce-fragment","1")},Yx=function(t){ln.each(t.getElementsByTagName("*"),(function(t){t.removeAttribute("data-mce-fragment")}))},Xx=function(t){return!!t.getAttribute("data-mce-fragment")},Zx=function(t,e){return e&&!t.schema.getShortEndedElements()[e.nodeName]},Jx=function(t,e){var n,r,i=t.dom,o=t.selection,a=function(e){for(var n=t.getBody();e&&e!==n;e=e.parentNode)if("false"===i.getContentEditable(e))return e;return null};if(e){o.scrollIntoView(e);var s=a(e);if(s)return i.remove(e),void o.select(s);var u=i.createRng(),c=e.previousSibling;c&&3===c.nodeType?(u.setStart(c,c.nodeValue.length),Xe.ie||(r=e.nextSibling,r&&3===r.nodeType&&(c.appendData(r.data),r.parentNode.removeChild(r)))):(u.setStartBefore(e),u.setEndBefore(e));var l=function(e){var n=Cf.fromRangeStart(e),r=Sp(t.getBody());if(n=r.next(n),n)return n.toRange()},f=i.getParent(e,i.isBlock);i.remove(e),f&&i.isEmpty(f)&&(t.$(f).empty(),u.setStart(f,0),u.setEnd(f,0),Vx(f)||Xx(f)||!(n=l(u))?i.add(f,i.create("br",{"data-mce-bogus":"1"})):(u=n,i.remove(f))),o.setRng(u)}},Qx=function(t){var e=t.dom,n=wx(t.selection.getRng());t.selection.setRng(n);var r=e.getParent(n.startContainer,Vx);Ux(e,n,r)?J_(t,n,gn.fromDom(r)):t.getDoc().execCommand("Delete",!1,null)},tC=function(t,e,n){var r,i,o,a,s,u,c=t.selection,l=t.dom;/^ | $/.test(e)&&(e=Hx(l,c.getRng(),e));var f=t.parser,d=n.merge,h=Ny({validate:Kd(t)},t.schema),p='<span id="mce_marker" data-mce-type="bookmark"></span>';if(o={content:e,format:"html",selection:!0,paste:n.paste},o=t.fire("BeforeSetContent",o),o.isDefaultPrevented())t.fire("SetContent",{content:o.content,format:"html",selection:!0,paste:n.paste});else{e=o.content,-1===e.indexOf("{$caret}")&&(e+="{$caret}"),e=e.replace(/\{\$caret\}/,p),s=c.getRng();var m=s.startContainer||(s.parentElement?s.parentElement():null),g=t.getBody();m===g&&c.isCollapsed()&&l.isBlock(g.firstChild)&&Zx(t,g.firstChild)&&l.isEmpty(g.firstChild)&&(s=l.createRng(),s.setStart(g.firstChild,0),s.setEnd(g.firstChild,0),c.setRng(s)),c.isCollapsed()||Qx(t),r=c.getNode();var v={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},b=f.parse(e,v);if(!0===n.paste&&kx(t.schema,b)&&Px(l,r))return s=$x(h,l,c.getRng(),b),c.setRng(s),void t.fire("SetContent",o);if(Gx(b),u=b.lastChild,"mce_marker"===u.attr("id"))for(a=u,u=u.prev;u;u=u.walk(!0))if(3===u.type||!l.isBlock(u.name)){t.schema.isValidChild(u.parent.name,"span")&&u.parent.insert(a,u,"br"===u.name);break}if(t._selectionOverrides.showBlockCaretContainer(r),v.invalid){t.selection.setContent(p),r=c.getNode(),i=t.getBody(),9===r.nodeType?r=u=i:u=r;while(u!==i)r=u,u=u.parentNode;e=r===i?i.innerHTML:l.getOuterHTML(r),e=h.serialize(f.parse(e.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return h.serialize(b)})))),r===i?l.setHTML(i,e):l.setOuterHTML(r,e)}else e=h.serialize(b),qx(t,e,r);Kx(t,d),Jx(t,l.get("mce_marker")),Yx(t.getBody()),Wx(l,c.getStart()),t.fire("SetContent",o),t.addVisual()}},eC=function(t,e){e(t),t.firstChild&&eC(t.firstChild,e),t.next&&eC(t.next,e)},nC=function(t,e,n){var r={},i={},o=[];for(var a in n.firstChild&&eC(n.firstChild,(function(n){Z(t,(function(t){t.name===n.name&&(r[t.name]?r[t.name].nodes.push(n):r[t.name]={filter:t,nodes:[n]})})),Z(e,(function(t){"string"===typeof n.attr(t.name)&&(i[t.name]?i[t.name].nodes.push(n):i[t.name]={filter:t,nodes:[n]})}))})),r)r.hasOwnProperty(a)&&o.push(r[a]);for(var s in i)i.hasOwnProperty(s)&&o.push(i[s]);return o},rC=function(t,e,n){var r=nC(t,e,n);Z(r,(function(t){Z(t.filter.callbacks,(function(e){e(t.nodes,t.filter.name,{})}))}))},iC="html",oC=function(t){return t instanceof Ty},aC=function(t){Jb(t)&&zp(t.getBody()).each((function(e){var n=e.getNode(),r=qr(n)?zp(n).getOr(e):e;t.selection.setRng(r.toRange())}))},sC=function(t,e){t.dom.setHTML(t.getBody(),e),aC(t)},uC=function(t,e,n,r){var i,o;return 0===n.length||/^\s+$/.test(n)?(o='<br data-mce-bogus="1">',"TABLE"===e.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(e.nodeName)&&(n="<li>"+o+"</li>"),i=pd(t),i&&t.schema.isValidChild(e.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=t.dom.createHTML(i,md(t),n)):n||(n='<br data-mce-bogus="1">'),sC(t,n),t.fire("SetContent",r)):("raw"!==r.format&&(n=Ny({validate:t.validate},t.schema).serialize(t.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=Ro(gn.fromDom(e))?n:ln.trim(n),sC(t,r.content),r.no_events||t.fire("SetContent",r)),r.content},cC=function(t,e,n,r){rC(t.parser.getNodeFilters(),t.parser.getAttributeFilters(),n);var i=Ny({validate:t.validate},t.schema).serialize(n);return r.content=Ro(gn.fromDom(e))?i:ln.trim(i),sC(t,r.content),r.no_events||t.fire("SetContent",r),n},lC=function(t,e,n){return n.format=n.format?n.format:iC,n.set=!0,n.content=oC(e)?"":e,n.no_events||t.fire("BeforeSetContent",n),oC(e)||(e=n.content),O.from(t.getBody()).fold(g(e),(function(r){return oC(e)?cC(t,r,e,n):uC(t,r,e,n)}))},fC=function(t,e){var n=t.dom,r=F(e)?e:t.getBody();z(t.hasVisual)&&(t.hasVisual=ph(t)),Z(n.select("table,a",r),(function(e){switch(e.nodeName){case"TABLE":var r=mh(t),i=n.getAttrib(e,"border");i&&"0"!==i||!t.hasVisual?n.removeClass(e,r):n.addClass(e,r);break;case"A":if(!n.getAttrib(e,"href")){var o=n.getAttrib(e,"name")||e.id,a=gh(t);o&&t.hasVisual?n.addClass(e,a):n.removeClass(e,a)}break}})),t.fire("VisualAid",{element:e,hasVisual:t.hasVisual})},dC=function(t,e){return Yi(t,e).isSome()},hC=jo,pC="_mce_caret",mC=function(t,e){return t.importNode(e,!0)},gC=function(t){var e=[];while(t){if(3===t.nodeType&&t.nodeValue!==hC||t.childNodes.length>1)return[];1===t.nodeType&&e.push(t),t=t.firstChild}return e},vC=function(t){return gC(t).length>0},bC=function(t){if(t){var e=new ho(t,t);for(t=e.current();t;t=e.next())if(Gr(t))return t}return null},yC=function(t){var e=gn.fromTag("span");return si(e,{id:pC,"data-mce-bogus":"1","data-mce-type":"format-caret"}),t&&gr(e,gn.fromText(hC)),e},wC=function(t){var e=bC(t);return e&&e.nodeValue.charAt(0)===hC&&e.deleteData(0,1),e},_C=function(t,e,n){void 0===n&&(n=!0);var r=t.dom,i=t.selection;if(vC(e))O_(t,!1,gn.fromDom(e),n);else{var o=i.getRng(),a=r.getParent(e,r.isBlock),s=o.startContainer,u=o.startOffset,c=o.endContainer,l=o.endOffset,f=wC(e);r.remove(e,!0),s===f&&u>0&&o.setStart(f,u-1),c===f&&l>0&&o.setEnd(f,l-1),a&&r.isEmpty(a)&&vw(gn.fromDom(a)),i.setRng(o)}},xC=function(t,e,n){void 0===n&&(n=!0);var r=t.dom,i=t.selection;if(e)_C(t,e,n);else if(e=Hp(t.getBody(),i.getStart()),!e)while(e=r.get(pC))_C(t,e,!1)},CC=function(t,e,n){var r=t.dom,i=r.getParent(n,b(bm,t));i&&r.isEmpty(i)?n.parentNode.replaceChild(e,n):(gw(gn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(e,n):r.insertAfter(e,n))},SC=function(t,e){return t.appendChild(e),e},kC=function(t,e){var n=et(t,(function(t,e){return SC(t,e.cloneNode(!1))}),e);return SC(n,n.ownerDocument.createTextNode(hC))},MC=function(t,e,n,r,i,o){var a=t.formatter,s=t.dom,u=tt(bt(a.get()),(function(t){return t!==r&&!ae(t,"removeformat")})),c=Sy(t,n,u),l=tt(c,(function(e){return!Tm(t,e,r)}));if(l.length>0){var f=n.cloneNode(!1);return s.add(e,f),a.remove(r,i,f,o),s.remove(f),O.some(f)}return O.none()},EC=function(t,e,n){var r,i,o=t.selection,a=o.getRng(),s=a.startOffset,u=a.startContainer,c=u.nodeValue;r=Hp(t.getBody(),o.getStart()),r&&(i=bC(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&s>0&&s<c.length&&l.test(c.charAt(s))&&l.test(c.charAt(s-1))){var f=o.getBookmark();a.collapse(!0);var d=Gm(t,a,t.formatter.get(e));d=uv(d),t.formatter.apply(e,n,d),o.moveToBookmark(f)}else r&&i.nodeValue===hC||(r=mC(t.getDoc(),yC(!0).dom),i=r.firstChild,a.insertNode(r),s=1),t.formatter.apply(e,n,r),o.setCursorLocation(i,s)},OC=function(t,e,n,r){var i,o,a,s=t.dom,u=t.selection,c=[],l=u.getRng(),f=l.startContainer,d=l.startOffset;o=f,3===f.nodeType&&(d!==f.nodeValue.length&&(i=!0),o=o.parentNode);while(o){if(yy(t,o,e,n,r)){a=o;break}o.nextSibling&&(i=!0),c.push(o),o=o.parentNode}if(a)if(i){var h=u.getBookmark();l.collapse(!0);var p=Gm(t,l,t.formatter.get(e),!0);p=uv(p),t.formatter.remove(e,n,p,r),u.moveToBookmark(h)}else{var m=Hp(t.getBody(),a),g=yC(!1).dom;CC(t,g,null!==m?m:a);var v=MC(t,g,a,e,n,r),b=kC(c.concat(v.toArray()),g);_C(t,m,!1),u.setCursorLocation(b,1),s.isEmpty(a)&&s.remove(a)}},TC=function(t,e){var n=t.selection,r=t.getBody();xC(t,null,!1),8!==e&&46!==e||!n.isCollapsed()||n.getStart().innerHTML!==hC||xC(t,Hp(r,n.getStart())),37!==e&&39!==e||xC(t,Hp(r,n.getStart()))},AC=function(t){t.on("mouseup keydown",(function(e){TC(t,e.keyCode)}))},DC=function(t,e){var n=yC(!1),r=kC(e,n.dom);return hr(gn.fromDom(t),n),_r(gn.fromDom(t)),Cf(r,0)},NC=function(t,e){var n=t.schema.getTextInlineElements();return n.hasOwnProperty(Rn(e))&&!$p(e.dom)&&!Vr(e.dom)},RC=function(t){return $p(t.dom)&&vC(t.dom)},PC={},IC=Lt,BC=It,LC=function(t,e){var n=PC[t];n||(PC[t]=[]),PC[t].push(e)},zC=function(t,e){BC(PC[t],(function(t){t(e)}))};LC("pre",(function(t){var e,n=t.selection.getRng(),r=function(t){return o(t.previousSibling)&&-1!==zt(e,t.previousSibling)},i=function(t,e){wc(e).remove(),wc(t).append("<br><br>").append(e.childNodes)},o=jr(["pre"]);n.collapsed||(e=t.selection.getSelectedBlocks(),BC(IC(IC(e,o),r),(function(t){i(t.previousSibling,t)})))}));var jC=ln.each,FC=function(t){return zr(t)&&!cm(t)&&!$p(t)&&!Vr(t)},$C=function(t,e){var n;for(n=t;n;n=n[e]){if(Gr(n)&&0!==n.nodeValue.length)return t;if(zr(n)&&!cm(n))return n}return t},HC=function(t,e,n){var r,i,o=new Qy(t);if(e&&n&&(e=$C(e,"previousSibling"),n=$C(n,"nextSibling"),o.compare(e,n))){for(r=e.nextSibling;r&&r!==n;)i=r,r=r.nextSibling,e.appendChild(i);return t.remove(n),ln.each(ln.grep(n.childNodes),(function(t){e.appendChild(t)})),e}return n},VC=function(t,e,n,r){if(r&&!1!==e.merge_siblings){var i=HC(t,vm(r),r);HC(t,i,vm(i,!0))}},UC=function(t,e,n){if(e.clear_child_styles){var r=e.links?"*:not(a)":"*";jC(t.select(r,n),(function(n){FC(n)&&jC(e.styles,(function(e,r){t.setStyle(n,r,"")}))}))}},qC=function(t,e,n){jC(t.childNodes,(function(t){FC(t)&&(e(t)&&n(t),t.hasChildNodes()&&qC(t,e,n))}))},WC=function(t,e){"SPAN"===e.nodeName&&0===t.getAttribs(e).length&&t.remove(e,!0)},KC=function(t,e){return function(n){return!(!n||!km(t,n,e))}},GC=function(t,e,n){return function(r){t.setStyle(r,e,n),""===r.getAttribute("style")&&r.removeAttribute("style"),WC(t,r)}},YC=Vi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),XC=/^(src|href|style)$/,ZC=ln.each,JC=Cm,QC=function(t){return/^(TR|TH|TD)$/.test(t.nodeName)},tS=function(t,e,n){return t.isChildOf(e,n)&&e!==n&&!t.isBlock(n)},eS=function(t,e,n){var r,i;if(r=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"],zr(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Gr(r)&&n&&i>=r.nodeValue.length&&(r=new ho(r,t.getBody()).next()||r),Gr(r)&&!n&&0===i&&(r=new ho(r,t.getBody()).prev()||r),r},nS=function(t,e){var n=e?"firstChild":"lastChild";if(QC(t)&&t[n]){var r=t[n];return"TR"===t.nodeName&&r[n]||r}return t},rS=function(t,e,n,r){var i=t.create(n,r);return e.parentNode.insertBefore(i,e),i.appendChild(e),i},iS=function(t,e,n,r,i){var o=gn.fromDom(e),a=gn.fromDom(t.create(r,i)),s=n?Zn(o):Xn(o);return yr(a,s),n?(hr(o,a),mr(a,o)):(pr(o,a),gr(a,o)),a.dom},oS=function(t,e,n){return!!JC(e,n.inline)||(!!JC(e,n.block)||(n.selector?zr(e)&&t.is(e,n.selector):void 0))},aS=function(t,e){return e.links&&"A"===t.nodeName},sS=function(t,e,n,r){return e=vm(e,n,r),!e||"BR"===e.nodeName||t.isBlock(e)},uS=function(t,e,n){var r,i=e.parentNode,o=t.dom,a=pd(t);n.block&&(a?i===o.getRoot()&&(n.list_block&&JC(e,n.list_block)||Z(gt(e.childNodes),(function(e){ym(t,a,e.nodeName.toLowerCase())?r?r.appendChild(e):(r=rS(o,e,a),o.setAttribs(r,t.settings.forced_root_block_attrs)):r=0}))):o.isBlock(e)&&!o.isBlock(i)&&(sS(o,e,!1)||sS(o,e.firstChild,!0,!0)||e.insertBefore(o.create("br"),e.firstChild),sS(o,e,!0)||sS(o,e.lastChild,!1,!0)||e.appendChild(o.create("br")))),n.selector&&n.inline&&!JC(n.inline,e)||o.remove(e,!0)},cS=function(t,e,n,r,i){var o,a=t.dom;if(!oS(a,r,e)&&!aS(r,e))return YC.keep();var s=r;if(e.inline&&"all"===e.remove&&I(e.preserve_attributes)){var u=tt(a.getAttribs(s),(function(t){return G(e.preserve_attributes,t.name.toLowerCase())}));if(a.removeAllAttribs(s),Z(u,(function(t){return a.setAttrib(s,t.name,t.value)})),u.length>0)return YC.rename("span")}if("all"!==e.remove){ZC(e.styles,(function(t,r){t=Sm(a,xm(t,n),r+""),H(r)&&(r=t,i=null),(e.remove_similar||!i||JC(km(a,i,r),t))&&a.setStyle(s,r,""),o=!0})),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),ZC(e.attributes,(function(t,r){var o;if(t=xm(t,n),H(r)&&(r=t,i=null),e.remove_similar||!i||JC(a.getAttrib(i,r),t)){if("class"===r&&(t=a.getAttrib(s,r),t&&(o="",Z(t.split(/\s+/),(function(t){/mce\-\w+/.test(t)&&(o+=(o?" ":"")+t)})),o)))return void a.setAttrib(s,r,o);"class"===r&&s.removeAttribute("className"),XC.test(r)&&s.removeAttribute("data-mce-"+r),s.removeAttribute(r)}})),ZC(e.classes,(function(t){t=xm(t,n),i&&!a.hasClass(i,t)||a.removeClass(s,t)}));for(var c=a.getAttribs(s),l=0;l<c.length;l++){var f=c[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return YC.keep()}}return"none"!==e.remove?(uS(t,s,e),YC.removed()):YC.keep()},lS=function(t,e,n,r,i){return cS(t,e,n,r,i).fold(x,(function(e){return t.dom.rename(r,e),!0}),C)},fS=function(t,e,n,r,i){var o;return Z(Em(t.dom,e.parentNode).reverse(),(function(e){if(!o&&"_start"!==e.id&&"_end"!==e.id){var a=yy(t,e,n,r,i);a&&!1!==a.split&&(o=e)}})),o},dS=function(t,e,n,r){return cS(t,e,n,r,r).fold(g(r),(function(e){var n=t.dom.createFragment();return n.appendChild(r),t.dom.rename(r,e)}),g(null))},hS=function(t,e,n,r,i,o,a,s){var u,c,l,f=t.dom;if(n){for(var d=n.parentNode,h=r.parentNode;h&&h!==d;h=h.parentNode){u=f.clone(h,!1);for(var p=0;p<e.length;p++)if(u=dS(t,e[p],s,u),null===u)break;u&&(c&&u.appendChild(c),l||(l=u),c=u)}!o||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),c&&(i.parentNode.insertBefore(c,i),l.appendChild(i),a.inline&&VC(f,a,s,c))}return r},pS=function(t,e,n,r,i){var o=t.formatter.get(e),a=o[0],s=!0,u=t.dom,c=t.selection,l=function(r){var s=fS(t,r,e,n,i);return hS(t,o,s,r,r,!0,a,n)},f=function(t){return cm(t)&&zr(t)&&("_start"===t.id||"_end"===t.id)},d=function(e){var r,i;zr(e)&&u.getContentEditable(e)&&(r=s,s="true"===u.getContentEditable(e),i=!0);var c=gt(e.childNodes);if(s&&!i)for(var l=0;l<o.length;l++)if(lS(t,o[l],n,e,e))break;if(a.deep&&c.length){for(l=0;l<c.length;l++)d(c[l]);i&&(s=r)}},h=function(t){var e=u.get(t?"_start":"_end"),n=e[t?"firstChild":"lastChild"];return f(n)&&(n=n[t?"firstChild":"lastChild"]),Gr(n)&&0===n.data.length&&(n=t?e.previousSibling||e.nextSibling:e.nextSibling||e.previousSibling),u.remove(e,!0),n},p=function(e){var n,r,i=Gm(t,e,o,e.collapsed);if(a.split){if(i=uv(i),n=eS(t,i,!0),r=eS(t,i),n!==r){if(n=nS(n,!0),r=nS(r,!1),tS(u,n,r)){var s=O.from(n.firstChild).getOr(n);return l(iS(u,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void h(!0)}if(tS(u,r,n)){s=O.from(r.lastChild).getOr(r);return l(iS(u,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void h(!1)}n=rS(u,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=rS(u,r,"span",{id:"_end","data-mce-type":"bookmark"});var c=u.createRng();c.setStartAfter(n),c.setEndBefore(r),Zm(u,c,(function(t){Z(t,(function(t){cm(t)||cm(t.parentNode)||l(t)}))})),l(n),l(r),n=h(!0),r=h()}else n=r=l(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=u.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=u.nodeIndex(r)+1}Zm(u,i,(function(e){Z(e,(function(e){d(e);var n=["underline","line-through","overline"];Z(n,(function(n){zr(e)&&t.dom.getStyle(e,"text-decoration")===n&&e.parentNode&&Mm(u,e.parentNode)===n&&lS(t,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,e)}))}))}))};if(r)if(pm(r)){var m=u.createRng();m.setStartBefore(r),m.setEndAfter(r),p(m)}else p(r);else if("false"!==u.getContentEditable(c.getNode()))c.isCollapsed()&&a.inline&&!ig(t).length?OC(t,e,n,i):(hg(c,!0,(function(){dg(t,p)})),a.inline&&wy(t,e,n,c.getStart())&&gm(u,c,c.getRng()),t.nodeChanged());else{r=c.getNode();for(var g=0;g<o.length;g++)if(o[g].ceFalseOverride&&lS(t,o[g],n,r,r))break}},mS=ln.each,gS=function(t,e,n,r){var i=function(e){if(1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType){var n=Mm(t,e.parentNode);t.getStyle(e,"color")&&n?t.setStyle(e,"text-decoration",n):t.getStyle(e,"text-decoration")===n&&t.setStyle(e,"text-decoration",null)}};e.styles&&(e.styles.color||e.styles.textDecoration)&&(ln.walk(r,i,"childNodes"),i(r))},vS=function(t,e,n,r){e.styles&&e.styles.backgroundColor&&qC(r,KC(t,"fontSize"),GC(t,"backgroundColor",xm(e.styles.backgroundColor,n)))},bS=function(t,e,n,r){"sub"!==e.inline&&"sup"!==e.inline||(qC(r,KC(t,"fontSize"),GC(t,"fontSize","")),t.remove(t.select("sup"===e.inline?"sub":"sup",r),!0))},yS=function(t,e,n,r){mS(e,(function(e){mS(t.dom.select(e.inline,r),(function(r){FC(r)&&lS(t,e,n,r,e.exact?r:null)})),UC(t.dom,e,r)}))},wS=function(t,e,n,r,i){yy(t,i.parentNode,n,r)&&lS(t,e,r,i)||e.merge_with_parents&&t.dom.getParent(i.parentNode,(function(o){if(yy(t,o,n,r))return lS(t,e,r,i),!0}))},_S=ln.each,xS=function(t,e){return Dt(t,e)},CS=function(t){return t&&1===t.nodeType&&!cm(t)&&!$p(t)&&!Vr(t)},SS=function(t,e,n,r){if(Zd(t)&&Nm(e)){var i=Ht(Ht({},t.schema.getTextBlockElements()),{td:{},th:{},li:{},dt:{},dd:{},figcaption:{},caption:{},details:{},summary:{}}),o=dC(gn.fromDom(n),(function(t){return $p(t.dom)}));return Dt(i,r)&&Ta(gn.fromDom(n.parentNode),!1)&&!o}return!1},kS=function(t,e,n,r){var i=t.formatter.get(e),o=i[0],a=!r&&t.selection.isCollapsed(),s=t.dom,u=t.selection,c=function(t,e){if(e=e||o,t){if(e.onformat&&e.onformat(t,e,n,r),_S(e.styles,(function(e,r){s.setStyle(t,r,xm(e,n))})),e.styles){var i=s.getAttrib(t,"style");i&&s.setAttrib(t,"data-mce-style",i)}_S(e.attributes,(function(e,r){s.setAttrib(t,r,xm(e,n))})),_S(e.classes,(function(e){e=xm(e,n),s.hasClass(t,e)||s.addClass(t,e)}))}},l=function(t,e){var n=!1;return!!Dm(o)&&(_S(t,(function(t){if(!("collapsed"in t)||t.collapsed===a)return s.is(e,t.selector)&&!$p(e)?(c(e,t),n=!0,!1):void 0})),n)},f=function(r,a,s,u){var f=[],d=!0,h=o.inline||o.block,p=r.create(h);c(p),Zm(r,a,(function(a){var s,m=function(a){var g=!1,v=d,b=a.nodeName.toLowerCase(),y=a.parentNode.nodeName.toLowerCase();if(zr(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),g=!0),Jr(a)&&!SS(t,o,a,y))return s=null,void(Am(o)&&r.remove(a));if(o.wrapper&&yy(t,a,e,n))s=null;else{if(d&&!g&&Am(o)&&!o.wrapper&&bm(t,b)&&ym(t,y,h)){var w=r.rename(a,h);return c(w),f.push(w),void(s=null)}if(Dm(o)){var _=l(i,a);if(!xS(o,"inline")||_)return void(s=null)}!d||g||!ym(t,h,b)||!ym(t,y,h)||!u&&3===a.nodeType&&1===a.nodeValue.length&&65279===a.nodeValue.charCodeAt(0)||$p(a)||xS(o,"inline")&&r.isBlock(a)?(s=null,_S(ln.grep(a.childNodes),m),g&&(d=v),s=null):(s||(s=r.clone(p,!1),a.parentNode.insertBefore(s,a),f.push(s)),s.appendChild(a))}};_S(a,m)})),!0===o.links&&_S(f,(function(t){var e=function(t){"A"===t.nodeName&&c(t,o),_S(ln.grep(t.childNodes),e)};e(t)})),_S(f,(function(a){var s=function(t){var e=0;return _S(t.childNodes,(function(t){_m(t)||cm(t)||e++})),e},u=function(t){var e=!1;return _S(t.childNodes,(function(t){if(CS(t))return e=t,!1})),e},l=function(t){var e,n=u(t);return n&&!cm(n)&&vy(r,n,o)&&(e=r.clone(n,!1),c(e),r.replace(e,t,!0),r.remove(n,!0)),e||t},d=s(a);!(f.length>1)&&r.isBlock(a)||0!==d?(Nm(o)||o.wrapper)&&(o.exact||1!==d||(a=l(a)),yS(t,i,n,a),wS(t,o,e,n,a),vS(r,o,n,a),gS(r,o,n,a),bS(r,o,n,a),VC(r,o,n,a)):r.remove(a,!0)}))};if("false"!==s.getContentEditable(u.getNode())){if(o){if(r)if(pm(r)){if(!l(i,r)){var d=s.createRng();d.setStartBefore(r),d.setEndAfter(r),f(s,Gm(t,d,i),null,!0)}}else f(s,r,null,!0);else if(a&&Nm(o)&&!ig(t).length)EC(t,e,n);else{var h=u.getNode(),p=i[0];t.settings.forced_root_block||!p.defaultBlock||s.getParent(h,s.isBlock)||kS(t,p.defaultBlock),u.setRng(wx(u.getRng())),hg(u,!0,(function(e){dg(t,(function(e,n){var r=n?e:Gm(t,e,i);f(s,r)}))})),gm(s,u,u.getRng()),t.nodeChanged()}zC(e,t)}}else{r=u.getNode();for(var m=0,g=i.length;m<g;m++){var v=i[m];if(v.ceFalseOverride&&Dm(v)&&s.is(r,v.selector))return void c(r,v)}}},MS=function(t,e){var n=zc({});t.set({}),e.on("NodeChange",(function(r){ES(e,r.element,n,t.get())}))},ES=function(t,e,n,r){var i=bt(n.get()),o={},a={},s=tt(Em(t.dom,e),(function(t){return 1===t.nodeType&&!t.getAttribute("data-mce-bogus")}));wt(r,(function(e,n){ln.each(s,(function(r){return t.formatter.matchNode(r,n,{},e.similar)?(-1===i.indexOf(n)&&(Z(e.callbacks,(function(t){t(!0,{node:r,format:n,parents:s})})),o[n]=e.callbacks),a[n]=e.callbacks,!1):!my(t,r,n)&&void 0}))}));var u=OS(n.get(),a,e,s);n.set(Ht(Ht({},o),u))},OS=function(t,e,n,r){return kt(t,(function(t,i){return!!At(e,i)||(Z(t,(function(t){t(!1,{node:n,format:i,parents:r})})),!1)})).t},TS=function(t,e,n,r){var i=t.get();Z(e.split(","),(function(t){i[t]||(i[t]={similar:r,callbacks:[]}),i[t].callbacks.push(n)})),t.set(i)},AS=function(t,e,n){var r=t.get();Z(e.split(","),(function(t){r[t].callbacks=tt(r[t].callbacks,(function(t){return t!==n})),0===r[t].callbacks.length&&delete r[t]})),t.set(r)},DS=function(t,e,n,r,i){return null===e.get()&&MS(e,t),TS(e,n,r,i),{unbind:function(){return AS(e,n,r)}}},NS=function(t,e,n,r){var i=t.formatter.get(e);!wy(t,e,n,r)||"toggle"in i[0]&&!i[0].toggle?kS(t,e,n,r):pS(t,e,n,r)},RS=function(t,e){var n=e||document,r=n.createDocumentFragment();return Z(t,(function(t){r.appendChild(t.dom)})),gn.fromDom(r)},PS=function(t,e,n){return{element:t,width:e,rows:n}},IS=function(t,e){return{element:t,cells:e}},BS=function(t,e){return{x:t,y:e}},LS=function(t,e){var n=parseInt(ui(t,e),10);return isNaN(n)?1:n},zS=function(t,e,n,r,i){for(var o=LS(i,"rowspan"),a=LS(i,"colspan"),s=t.rows,u=n;u<n+o;u++){s[u]||(s[u]=IS(Rl(r),[]));for(var c=e;c<e+a;c++){var l=s[u].cells;l[c]=u===n&&c===e?i:Nl(i)}}},jS=function(t,e,n){var r=t.rows,i=r[n]?r[n].cells:[];return!!i[e]},FS=function(t,e,n){while(jS(t,e,n))e++;return e},$S=function(t){return nt(t,(function(t,e){return e.cells.length>t?e.cells.length:t}),0)},HS=function(t,e){for(var n=t.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Tn(i[o],e))return O.some(BS(o,r));return O.none()},VS=function(t,e,n,r,i){for(var o=[],a=t.rows,s=n;s<=i;s++){var u=a[s].cells,c=e<r?u.slice(e,r+1):u.slice(r,e+1);o.push(IS(a[s].element,c))}return o},US=function(t,e,n){var r=e.x,i=e.y,o=n.x,a=n.y,s=i<a?VS(t,r,i,o,a):VS(t,r,a,o,i);return PS(t.element,$S(s),s)},qS=function(t,e){var n=Nl(t.element),r=gn.fromTag("tbody");return yr(r,e),gr(n,r),n},WS=function(t){return X(t.rows,(function(t){var e=X(t.cells,(function(t){var e=Rl(t);return fi(e,"colspan"),fi(e,"rowspan"),e})),n=Nl(t.element);return yr(n,e),n}))},KS=function(t){var e=PS(Nl(t),0,[]);return Z(pl(t,"tr"),(function(t,n){Z(pl(t,"td,th"),(function(r,i){zS(e,FS(e,i,n),n,t,r)}))})),PS(e.element,$S(e.rows),e.rows)},GS=function(t){return qS(t,WS(t))},YS=function(t,e,n){return HS(t,e).bind((function(e){return HS(t,n).map((function(n){return US(t,e,n)}))}))},XS=function(t){return it(t,(function(t){return"ul"===Rn(t)||"ol"===Rn(t)}))},ZS=function(t,e){return it(t,(function(t){return"li"===Rn(t)&&cg(t,e)})).fold(g([]),(function(e){return XS(t).map((function(t){var e=gn.fromTag(Rn(t)),n=Mt(bi(t),(function(t,e){return se(e,"list-style")}));return pi(e,n),[gn.fromTag("li"),e]})).getOr([])}))},JS=function(t,e){var n=nt(e,(function(t,e){return gr(e,t),e}),t);return e.length>0?RS([n]):n},QS=function(t){return Ao(t)?qn(t).filter(To).fold(g([]),(function(e){return[t,e]})):To(t)?[t]:[]},tk=function(t,e){var n=gn.fromDom(e.commonAncestorContainer),r=xw(n,t),i=tt(r,(function(t){return Mo(t)||Co(t)})),o=ZS(r,e),a=i.concat(o.length?o:QS(n));return X(a,Nl)},ek=function(){return RS([])},nk=function(t,e){return JS(gn.fromDom(e.cloneContents()),tk(t,e))},rk=function(t,e){return Zi(e,"table",b(Tn,t))},ik=function(t,e){return rk(t,e[0]).bind((function(t){var n=e[0],r=e[e.length-1],i=KS(t);return YS(i,n,r).map((function(t){return RS([GS(t)])}))})).getOrThunk(ek)},ok=function(t,e){return e.length>0&&e[0].collapsed?ek():nk(t,e[0])},ak=function(t,e){var n=rg(e,t);return n.length>0?ik(t,n):ok(t,e)},sk=function(t){return t.replace(/^[ \f\n\r\t\v]+/,"")},uk=function(t,e){return e>=0&&e<t.length&&dm(t.charAt(e))},ck=function(t,e){var n=$o(t.innerText);return e?sk(n):n},lk=function(t){return t.map((function(t){return t.nodeName})).getOr("div").toLowerCase()},fk=function(t){return O.from(t.selection.getRng()).map((function(e){var n=O.from(t.dom.getParent(e.commonAncestorContainer,t.dom.isBlock)),r=t.getBody(),i=lk(n),o=Xe.browser.isIE()&&"pre"!==i,a=t.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),s=ck(a,o),u=$o(a.textContent);if(t.dom.remove(a),uk(u,0)||uk(u,u.length-1)){var c=n.getOr(r),l=ck(c,o),f=l.indexOf(s);if(-1===f)return s;var d=uk(l,f-1),h=uk(l,f+s.length);return(d?" ":"")+s+(h?" ":"")}return s})).getOr("")},dk=function(t,e){var n=t.selection.getRng(),r=t.dom.create("body"),i=t.selection.getSel(),o=ly(t,Jm(i)),a=e.contextual?ak(gn.fromDom(t.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),t.selection.serializer.serialize(r,e)},hk=function(t,e,n){if(void 0===n&&(n={}),n.get=!0,n.format=e,n.selection=!0,n=t.fire("BeforeGetContent",n),n.isDefaultPrevented())return t.fire("GetContent",n),n.content;if("text"===n.format)return fk(t);n.getInner=!0;var r=dk(t,n);return"tree"===n.format?r:(n.content=t.selection.isCollapsed()?"":r,t.fire("GetContent",n),n.content)},pk=0,mk=1,gk=2,vk=function(t,e){var n=t.length+e.length+2,r=new Array(n),i=new Array(n),o=function(t,e,n){return{start:t,end:e,diag:n}},a=function(n,r,i,o,s){var c=u(n,r,i,o);if(null===c||c.start===r&&c.diag===r-o||c.end===n&&c.diag===n-i){var l=n,f=i;while(l<r||f<o)l<r&&f<o&&t[l]===e[f]?(s.push([pk,t[l]]),++l,++f):r-n>o-i?(s.push([gk,t[l]]),++l):(s.push([mk,e[f]]),++f)}else{a(n,c.start,i,c.start-c.diag,s);for(var d=c.start;d<c.end;++d)s.push([pk,t[d]]);a(c.end,r,c.end-c.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&t[s]===e[s-r])++s;return o(n,s,r)},u=function(n,o,a,u){var c=o-n,l=u-a;if(0===c||0===l)return null;var f,d,h,p,m,g=c-l,v=l+c,b=(v%2===0?v:v+1)/2;for(r[1+b]=n,i[1+b]=o+1,f=0;f<=b;++f){for(d=-f;d<=f;d+=2){h=d+b,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],m=p-n+a-d;while(p<o&&m<u&&t[p]===e[m])r[h]=++p,++m;if(g%2!==0&&g-f<=d&&d<=g+f&&i[h-g]<=r[h])return s(i[h-g],d+n-a,o,u)}for(d=g-f;d<=g+f;d+=2){h=d+b-g,d===g-f||d!==g+f&&i[h+1]<=i[h-1]?i[h]=i[h+1]-1:i[h]=i[h-1],p=i[h]-1,m=p-n+a-d;while(p>=n&&m>=a&&t[p]===e[m])i[h]=p--,m--;if(g%2===0&&-f<=d&&d<=f&&i[h]<=r[h+g])return s(i[h],d+n-a,o,u)}}},c=[];return a(0,t.length,0,e.length,c),c},bk=function(t){return zr(t)?t.outerHTML:Gr(t)?es.encodeRaw(t.data,!1):Yr(t)?"\x3c!--"+t.data+"--\x3e":""},yk=function(t){var e,n=document.createElement("div"),r=document.createDocumentFragment();t&&(n.innerHTML=t);while(e=n.firstChild)r.appendChild(e);return r},wk=function(t,e,n){var r=yk(e);if(t.hasChildNodes()&&n<t.childNodes.length){var i=t.childNodes[n];i.parentNode.insertBefore(r,i)}else t.appendChild(r)},_k=function(t,e){if(t.hasChildNodes()&&e<t.childNodes.length){var n=t.childNodes[e];n.parentNode.removeChild(n)}},xk=function(t,e){var n=0;Z(t,(function(t){t[0]===pk?n++:t[0]===mk?(wk(e,t[1],n),n++):t[0]===gk&&_k(e,n)}))},Ck=function(t){return tt(X(gt(t.childNodes),bk),(function(t){return t.length>0}))},Sk=function(t,e){var n=X(gt(e.childNodes),bk);return xk(vk(n,t),e),e},kk=zc(O.none()),Mk=function(){return kk.get().getOrThunk((function(){var t=document.implementation.createHTMLDocument("undo");return kk.set(O.some(t)),t}))},Ek=function(t){return-1!==t.indexOf("</iframe>")},Ok=function(t){return{type:"fragmented",fragments:t,content:"",bookmark:null,beforeBookmark:null}},Tk=function(t){return{type:"complete",fragments:null,content:t,bookmark:null,beforeBookmark:null}},Ak=function(t){var e=Ck(t.getBody()),n=st(e,(function(e){var n=Ky(t.serializer,e);return n.length>0?[n]:[]})),r=n.join("");return Ek(r)?Ok(n):Tk(r)},Dk=function(t,e,n){"fragmented"===e.type?Sk(e.fragments,t.getBody()):t.setContent(e.content,{format:"raw"}),t.selection.moveToBookmark(n?e.beforeBookmark:e.bookmark)},Nk=function(t){return"fragmented"===t.type?t.fragments.join(""):t.content},Rk=function(t){var e=gn.fromTag("body",Mk());return Al(e,Nk(t)),Z(pl(e,"*[data-mce-bogus]"),xr),Tl(e)},Pk=function(t,e){return Nk(t)===Nk(e)},Ik=function(t,e){return Rk(t)===Rk(e)},Bk=function(t,e){return!(!t||!e)&&(!!Pk(t,e)||Ik(t,e))},Lk=function(t){return 0===t.get()},zk=function(t,e,n){Lk(n)&&(t.typing=e)},jk=function(t,e){t.typing&&(zk(t,!1,e),t.add())},Fk=function(t){t.typing&&(t.typing=!1,t.add())},$k=function(t,e,n){Lk(e)&&n.set(O.some(rd(t.selection)))},Hk=function(t,e,n,r,i,o,a){var s=Ak(t);if(o=o||{},o=ln.extend(o,s),!1===Lk(r)||t.removed)return null;var u=e.data[n.get()];if(t.fire("BeforeAddUndo",{level:o,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&Bk(u,o))return null;e.data[n.get()]&&i.get().each((function(t){e.data[n.get()].beforeBookmark=t}));var c=sh(t);if(c&&e.data.length>c){for(var l=0;l<e.data.length-1;l++)e.data[l]=e.data[l+1];e.data.length--,n.set(e.data.length)}o.bookmark=rd(t.selection),n.get()<e.data.length-1&&(e.data.length=n.get()+1),e.data.push(o),n.set(e.data.length-1);var f={level:o,lastLevel:u,originalEvent:a};return n.get()>0?(t.setDirty(!0),t.fire("AddUndo",f),t.fire("change",f)):t.fire("AddUndo",f),o},Vk=function(t,e,n){e.data=[],n.set(0),e.typing=!1,t.fire("ClearUndos")},Uk=function(t,e,n,r,i){if(e.transact(r)){var o=e.data[n.get()].bookmark,a=e.data[n.get()-1];Dk(t,a,!0),e.transact(i)&&(e.data[n.get()-1].beforeBookmark=o)}},qk=function(t,e,n){var r;return e.get()<n.length-1&&(e.set(e.get()+1),r=n[e.get()],Dk(t,r,!1),t.setDirty(!0),t.fire("Redo",{level:r})),r},Wk=function(t,e,n,r){var i;return e.typing&&(e.add(),e.typing=!1,zk(e,!1,n)),r.get()>0&&(r.set(r.get()-1),i=e.data[r.get()],Dk(t,i,!0),t.setDirty(!0),t.fire("Undo",{level:i})),i},Kk=function(t){t.clear(),t.add()},Gk=function(t,e,n){return n.get()>0||e.typing&&e.data[0]&&!Bk(Ak(t),e.data[0])},Yk=function(t,e){return e.get()<t.data.length-1&&!t.typing},Xk=function(t,e,n){return jk(t,e),t.beforeChange(),t.ignore(n),t.add()},Zk=function(t,e){try{t.set(t.get()+1),e()}finally{t.set(t.get()-1)}},Jk=function(t){return t instanceof Ty},Qk=function(t,e){rC(t.serializer.getNodeFilters(),t.serializer.getAttributeFilters(),e)},tM=function(t){return O.from(t.selection.getStart(!0)).map((function(t){return t.nodeName.toLowerCase()}))},eM=function(){return{type:"complete",fragments:[],content:"",bookmark:null,beforeBookmark:null}},nM=function(t){return{undoManager:{beforeChange:function(e,n){return $k(t,e,n)},addUndoLevel:function(e,n,r,i,o,a){return Hk(t,e,n,r,i,o,a)},undo:function(e,n,r){return Wk(t,e,n,r)},redo:function(e,n){return qk(t,e,n)},clear:function(e,n){return Vk(t,e,n)},reset:function(t){return Kk(t)},hasUndo:function(e,n){return Gk(t,e,n)},hasRedo:function(t,e){return Yk(t,e)},transact:function(t,e,n){return Xk(t,e,n)},ignore:function(t,e){return Zk(t,e)},extra:function(e,n,r,i){return Uk(t,e,n,r,i)}},formatter:{match:function(e,n,r){return wy(t,e,n,r)},matchAll:function(e,n){return _y(t,e,n)},matchNode:function(e,n,r,i){return yy(t,e,n,r,i)},canApply:function(e){return Cy(t,e)},closest:function(e){return xy(t,e)},apply:function(e,n,r){return kS(t,e,n,r)},remove:function(e,n,r,i){return pS(t,e,n,r,i)},toggle:function(e,n,r){return NS(t,e,n,r)},formatChanged:function(e,n,r,i){return DS(t,e,n,r,i)}},editor:{getContent:function(e,n){return Zy(t,e,n)},setContent:function(e,n){return lC(t,e,n)},insertContent:function(e,n){return tC(t,e,n)},addVisual:function(e){return fC(t,e)}},selection:{getContent:function(e,n){return hk(t,e,n)}},raw:{getModel:function(){return O.none()}}}},rM=function(t,e){var n=function(t){return P(t)?t:{}},r=w("Unimplemented feature for rtc"),i=h;return{undoManager:{beforeChange:i,addUndoLevel:r,undo:function(){return e.undo(),eM()},redo:function(){return e.redo(),eM()},clear:r,reset:r,hasUndo:function(){return e.hasUndo()},hasRedo:function(){return e.hasRedo()},transact:function(t,n,r){return e.transact(r),eM()},ignore:r,extra:r},formatter:{match:function(t,r,i){return e.matchFormat(t,n(r))},matchAll:r,matchNode:r,canApply:function(t){return e.canApplyFormat(t)},closest:function(t){return e.closestFormat(t)},apply:function(t,r,i){return e.applyFormat(t,n(r))},remove:function(t,r,i,o){return e.removeFormat(t,n(r))},toggle:function(t,r,i){return e.toggleFormat(t,n(r))},formatChanged:function(t,n,r,i){return e.formatChanged(n,r,i)}},editor:{getContent:function(n,r){if("html"===r||"tree"===r){var i=e.getContent(),o=Ny({inner:!0});return Qk(t,i),"tree"===r?i:o.serialize(i)}return nM(t).editor.getContent(n,r)},setContent:function(n,r){var i=Jk(n)?n:t.parser.parse(n,{isRootContent:!0,insert:!0});return e.setContent(i),n},insertContent:function(n,r){var i=tM(t).fold((function(){return{}}),(function(t){return{context:t}})),o=Jk(n)?n:t.parser.parse(n,Ht(Ht({},i),{insert:!0}));e.insertContent(o)},addVisual:function(t){}},selection:{getContent:function(n,r){if("html"===n||"tree"===n){var i=e.getSelectedContent(),o=Ny({});return Qk(t,i),"tree"===n?i:o.serialize(i)}return nM(t).selection.getContent(n,r)}},raw:{getModel:function(){return O.some(e.getRawModel())}}}},iM=function(t){return At(t.plugins,"rtc")},oM=function(t){var e=t;return Tt(t.plugins,"rtc").fold((function(){return e.rtcInstance=nM(t),O.none()}),(function(n){return O.some(n.setup().then((function(n){return e.rtcInstance=rM(t,n),n.isRemote})))}))},aM=function(t){return t.rtcInstance?t.rtcInstance:nM(t)},sM=function(t){var e=t.rtcInstance;if(e)return e;throw new Error("Failed to get RTC instance not yet initialized.")},uM=function(t,e,n){sM(t).undoManager.beforeChange(e,n)},cM=function(t,e,n,r,i,o,a){return sM(t).undoManager.addUndoLevel(e,n,r,i,o,a)},lM=function(t,e,n,r){return sM(t).undoManager.undo(e,n,r)},fM=function(t,e,n){return sM(t).undoManager.redo(e,n)},dM=function(t,e,n){sM(t).undoManager.clear(e,n)},hM=function(t,e){sM(t).undoManager.reset(e)},pM=function(t,e,n){return sM(t).undoManager.hasUndo(e,n)},mM=function(t,e,n){return sM(t).undoManager.hasRedo(e,n)},gM=function(t,e,n,r){return sM(t).undoManager.transact(e,n,r)},vM=function(t,e,n){sM(t).undoManager.ignore(e,n)},bM=function(t,e,n,r,i){sM(t).undoManager.extra(e,n,r,i)},yM=function(t,e,n,r){return sM(t).formatter.match(e,n,r)},wM=function(t,e,n){return sM(t).formatter.matchAll(e,n)},_M=function(t,e,n,r,i){return sM(t).formatter.matchNode(e,n,r,i)},xM=function(t,e){return sM(t).formatter.canApply(e)},CM=function(t,e){return sM(t).formatter.closest(e)},SM=function(t,e,n,r){sM(t).formatter.apply(e,n,r)},kM=function(t,e,n,r,i){sM(t).formatter.remove(e,n,r,i)},MM=function(t,e,n,r){sM(t).formatter.toggle(e,n,r)},EM=function(t,e,n,r,i){return void 0===i&&(i=!1),sM(t).formatter.formatChanged(e,n,r,i)},OM=function(t,e,n){return aM(t).editor.getContent(e,n)},TM=function(t,e,n){return aM(t).editor.setContent(e,n)},AM=function(t,e,n){return aM(t).editor.insertContent(e,n)},DM=function(t,e,n){return sM(t).selection.getContent(e,n)},NM=function(t,e){return sM(t).editor.addVisual(e)},RM=function(t,e){void 0===e&&(e={});var n=e.format?e.format:"html";return DM(t,n,e)},PM=function(t){return 0===t.dom.length?(_r(t),O.none()):O.some(t)},IM=function(t,e){return t.filter((function(t){return kg.isBookmarkNode(t.dom)})).bind(e?Yn:Gn)},BM=function(t,e,n,r){var i=t.dom,o=e.dom,a=r?i.length:o.length;r?(c_(i,o,!1,!r),n.setStart(o,a)):(c_(o,i,!1,!r),n.setEnd(o,a))},LM=function(t,e){qn(t).each((function(n){var r=t.dom;e&&Kw(n,Cf(r,0))?s_(r,0):!e&&Yw(n,Cf(r,r.length))&&u_(r,r.length)}))},zM=function(t,e,n,r){t.bind((function(t){var i=r?u_:s_;return i(t.dom,r?t.dom.length:0),e.filter(zn).map((function(e){return BM(t,e,n,r)}))})).orThunk((function(){var t=IM(e,r).or(e).filter(zn);return t.map((function(t){return LM(t,r)}))}))},jM=function(t,e){var n=O.from(e.firstChild).map(gn.fromDom),r=O.from(e.lastChild).map(gn.fromDom);t.deleteContents(),t.insertNode(e);var i=n.bind(Gn).filter(zn).bind(PM),o=r.bind(Yn).filter(zn).bind(PM);zM(i,n,t,!0),zM(o,r,t,!1),t.collapse(!1)},FM=function(t,e){return Ht(Ht({format:"html"},t),{set:!0,selection:!0,content:e})},$M=function(t,e){if("raw"!==e.format){var n=t.selection.getRng(),r=t.dom.getParent(n.commonAncestorContainer,t.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=t.parser.parse(e.content,Ht(Ht({isRootContent:!0,forced_root_block:!1},i),e));return Ny({validate:t.validate},t.schema).serialize(o)}return e.content},HM=function(t,e,n){void 0===n&&(n={});var r=FM(n,e);if(r.no_events||(r=t.fire("BeforeSetContent",r),!r.isDefaultPrevented())){n.content=$M(t,r);var i=t.selection.getRng();jM(i,i.createContextualFragment(n.content)),t.selection.setRng(i),Hv(t,i),r.no_events||t.fire("SetContent",r)}else t.fire("SetContent",r)},VM=function(t,e,n){if(t&&t.hasOwnProperty(e)){var r=tt(t[e],(function(t){return t!==n}));0===r.length?delete t[e]:t[e]=r}};function UM(t,e){var n,r;return{selectorChangedWithUnbind:function(i,o){return n||(n={},r={},e.on("NodeChange",(function(e){var i=e.element,o=t.getParents(i,null,t.getRoot()),a={};ln.each(n,(function(e,n){ln.each(o,(function(i){if(t.is(i,n))return r[n]||(ln.each(e,(function(t){t(!0,{node:i,selector:n,parents:o})})),r[n]=e),a[n]=e,!1}))})),ln.each(r,(function(t,e){a[e]||(delete r[e],ln.each(t,(function(t){t(!1,{node:i,selector:e,parents:o})})))}))}))),n[i]||(n[i]=[]),n[i].push(o),{unbind:function(){VM(n,i,o),VM(r,i,o)}}}}}var qM=function(t){return!!t.select},WM=function(t){return!(!t||!t.ownerDocument)&&Nn(gn.fromDom(t.ownerDocument),gn.fromDom(t))},KM=function(t){return!!t&&(!!qM(t)||WM(t.startContainer)&&WM(t.endContainer))},GM=function(t,e,n,r){var i,o,a=UM(t,r).selectorChangedWithUnbind,s=function(e,n){var i=t.createRng();e?(i.setStart(e,n),i.setEnd(e,n),y(i),g(!1)):(lg(t,i,r.getBody(),!0),y(i))},u=function(t){return RM(r,t)},c=function(t,e){return HM(r,t,e)},l=function(t){return iy(r.getBody(),b(),t)},f=function(t){return oy(r.getBody(),b(),t)},d=function(t,e){return N.getBookmark(t,e)},h=function(t){return N.moveToBookmark(t)},p=function(e,n){return cy(t,e,n).each(y),e},m=function(){var t=b(),e=v();return!(!t||t.item)&&(t.compareEndPoints?0===t.compareEndPoints("StartToEnd",t):!e||t.collapsed)},g=function(t){var e=b();e.collapse(!!t),y(e)},v=function(){return e.getSelection?e.getSelection():e.document.selection},b=function(){var n,a,s,u=function(t,e,n){try{return e.compareBoundaryPoints(t,n)}catch(r){return-1}};if(!e)return null;var c=e.document;if("undefined"===typeof c||null===c)return null;if(void 0!==r.bookmark&&!1===Jb(r)){var l=kb(r);if(l.isSome())return l.map((function(t){return ly(r,[t])[0]})).getOr(c.createRange())}try{(n=v())&&!Lr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange(),a=ly(r,[a])[0])}catch(f){}return a||(a=c.createRange?c.createRange():c.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=t.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===u(a.START_TO_START,a,i)&&0===u(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},y=function(t,e){var n;if(KM(t)){var a=qM(t)?t:null;if(a){o=null;try{a.select()}catch(c){}}else{var s=v(),u=r.fire("SetSelectionRange",{range:t,forward:e});if(t=u.range,s){o=t;try{s.removeAllRanges(),s.addRange(t)}catch(c){}!1===e&&s.extend&&(s.collapse(t.endContainer,t.endOffset),s.extend(t.startContainer,t.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}t.collapsed||t.startContainer!==t.endContainer||!s.setBaseAndExtent||Xe.ie||t.endOffset-t.startOffset<2&&t.startContainer.hasChildNodes()&&(n=t.startContainer.childNodes[t.startOffset],n&&"IMG"===n.tagName&&(s.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset),s.anchorNode===t.startContainer&&s.focusNode===t.endContainer||s.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:t,forward:e})}}},w=function(e){return c(t.getOuterHTML(e)),e},_=function(){return sy(r.getBody(),b())},x=function(e,n){return uy(t,b(),e,n)},C=function(){var e=v(),n=null===e||void 0===e?void 0:e.anchorNode,r=null===e||void 0===e?void 0:e.focusNode;if(!e||!n||!r||Lr(n)||Lr(r))return!0;var i=t.createRng();i.setStart(n,e.anchorOffset),i.collapse(!0);var o=t.createRng();return o.setStart(r,e.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},S=function(){var e=b(),n=v();if(!tg(n)&&fg(r)){var i=av(t,e);return i.each((function(t){y(t,C())})),i.getOr(e)}return e},k=function(t,e){return a(t,e),D},M=function(){var e,n=t.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){e=n;break}n=n.parentNode}return e},E=function(t,e){return $v(r,t,e)},O=function(t,e){return y(Kg(t,e,r.getDoc()))},T=function(){var t=b();return t.collapsed?Cf.fromRangeStart(t).getClientRects()[0]:t.getBoundingClientRect()},A=function(){e=i=o=null,R.destroy()},D={bookmarkManager:null,controlSelection:null,dom:t,win:e,serializer:n,editor:r,collapse:g,setCursorLocation:s,getContent:u,setContent:c,getBookmark:d,moveToBookmark:h,select:p,isCollapsed:m,isForward:C,setNode:w,getNode:_,getSel:v,setRng:y,getRng:b,getStart:l,getEnd:f,getSelectedBlocks:x,normalize:S,selectorChanged:k,selectorChangedWithUnbind:a,getScrollContainer:M,scrollIntoView:E,placeCaretAt:O,getBoundingClientRect:T,destroy:A},N=kg(D),R=Hg(D,r);return D.bookmarkManager=N,D.controlSelection=R,D},YM=function(t,e){Z(e,(function(e){t.attr(e,null)}))},XM=function(t,e,n){t.addNodeFilter("font",(function(t){Z(t,(function(t){var r=e.parse(t.attr("style")),i=t.attr("color"),o=t.attr("face"),a=t.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(t.attr("size"),10)-1]),t.name="span",t.attr("style",e.serialize(r)),YM(t,["color","face","size"])}))}))},ZM=function(t,e){t.addNodeFilter("strike",(function(t){Z(t,(function(t){var n=e.parse(t.attr("style"));n["text-decoration"]="line-through",t.name="span",t.attr("style",e.serialize(n))}))}))},JM=function(t,e){var n=Ns();e.convert_fonts_to_spans&&XM(t,n,ln.explode(e.font_size_legacy_values)),ZM(t,n)},QM=function(t,e){e.inline_styles&&JM(t,e)},tE=function(t){return new eo((function(e,n){var r=function(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===this.status?e(this.response):r()},i.onerror=r,i.send()}catch(o){r()}}))},eE=function(t){var e,n=decodeURIComponent(t).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(e=r[1]),{type:e,data:n[1]}},nE=function(t,e){var n;try{n=atob(e)}catch(gF){return O.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return O.some(new Blob([r],{type:t}))},rE=function(t){return new eo((function(e){var n=eE(t),r=n.type,i=n.data;nE(r,i).fold((function(){return e(new Blob([]))}),e)}))},iE=function(t){return 0===t.indexOf("blob:")?tE(t):0===t.indexOf("data:")?rE(t):null},oE=function(t){return new eo((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))},aE=0,sE=function(t){return(t||"blobid")+aE++},uE=function(t,e,n,r){var i,o;if(0===e.src.indexOf("blob:"))return o=t.getByUri(e.src),void(o?n({image:e,blobInfo:o}):iE(e.src).then((function(r){oE(r).then((function(a){i=eE(a).data,o=t.create(sE(),r,i),t.add(o),n({image:e,blobInfo:o})}))}),(function(t){r(t)})));var a=eE(e.src),s=a.data,u=a.type;i=s,o=t.getByData(i,u),o?n({image:e,blobInfo:o}):iE(e.src).then((function(r){o=t.create(sE(),r,i),t.add(o),n({image:e,blobInfo:o})}),(function(t){r(t)}))},cE=function(t){return t?gt(t.getElementsByTagName("img")):[]};function lE(t,e){var n={},r=function(r,i){i||(i=C);var o=tt(cE(r),(function(e){var n=e.src;return!!Xe.fileApi&&(!e.hasAttribute("data-mce-bogus")&&(!e.hasAttribute("data-mce-placeholder")&&(!(!n||n===Xe.transparentSrc)&&(0===n.indexOf("blob:")?!t.isUploaded(n)&&i(e):0===n.indexOf("data:")&&i(e)))))})),a=X(o,(function(t){if(void 0!==n[t.src])return new eo((function(e){n[t.src].then((function(n){if("string"===typeof n)return n;e({image:t,blobInfo:n.blobInfo})}))}));var r=new eo((function(n,r){uE(e,t,n,r)})).then((function(t){return delete n[t.image.src],t})).catch((function(e){return delete n[t.src],e}));return n[t.src]=r,r}));return eo.all(a)};return{findAll:r}}var fE=function(t,e,n,r){var i=t.padd_empty_with_br||e.insert;i&&n[r.name]?r.empty().append(new Ty("br",1)).shortEnded=!0:r.empty().append(new Ty("#text",3)).value=Bo},dE=function(t){return hE(t,"#text")&&t.firstChild.value===Bo},hE=function(t,e){return t&&t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.name===e},pE=function(t,e){var n=t.getElementRule(e.name);return n&&n.paddEmpty},mE=function(t,e,n,r){return r.isEmpty(e,n,(function(e){return pE(t,e)}))},gE=function(t,e){return t&&(e[t.name]||"br"===t.name)},vE=function(t){return t.attr("data-mce-bogus")},bE=function(t){return t.attr("src")===Xe.transparentSrc||t.attr("data-mce-placeholder")},yE=function(t,e){if(e.images_dataimg_filter){var n=new Image;return n.src=t.attr("src"),wt(t.attributes.map,(function(t,e){n.setAttribute(e,t)})),e.images_dataimg_filter(n)}return!0},wE=function(t,e){var n=e.blob_cache,r=function(t){var r=t.attr("src");bE(t)||vE(t)||Iy(r).filter((function(){return yE(t,e)})).bind((function(t){var e=t.type,r=t.data;return O.from(n.getByData(r,e)).orThunk((function(){return nE(e,r).map((function(t){var e=n.create(sE(),t,r);return n.add(e),e}))}))})).each((function(e){t.attr("src",e.blobUri())}))};n&&t.addAttributeFilter("src",(function(t){return Z(t,r)}))},_E=function(t,e){var n=t.schema;e.remove_trailing_brs&&t.addNodeFilter("br",(function(t,r,i){var o,a,s,u,c,l,f,d,h=t.length,p=ln.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(p.body=1,o=0;o<h;o++)if(a=t[o],s=a.parent,p[a.parent.name]&&a===s.lastChild){c=a.prev;while(c){if(l=c.name,"span"!==l||"bookmark"!==c.attr("data-mce-type")){"br"===l&&(a=null);break}c=c.prev}a&&(a.remove(),mE(n,m,g,s)&&(f=n.getElementRule(s.name),f&&(f.removeEmpty?s.remove():f.paddEmpty&&fE(e,i,p,s))))}else{u=a;while(s&&s.firstChild===u&&s.lastChild===u){if(u=s,p[s.name])break;s=s.parent}u===s&&!0!==e.padd_empty_with_br&&(d=new Ty("#text",3),d.value=Bo,a.replace(d))}})),t.addAttributeFilter("href",(function(t){var n=t.length,r=function(t){var e=t.split(" ").filter((function(t){return t.length>0}));return e.concat(["noopener"]).sort().join(" ")},i=function(t){var e=t?ln.trim(t):"";return/\b(noopener)\b/g.test(e)?e:r(e)};if(!e.allow_unsafe_link_target)while(n--){var o=t[n];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",i(o.attr("rel")))}})),e.allow_html_in_named_anchor||t.addAttributeFilter("id,name",(function(t){var e,n,r,i,o=t.length;while(o--)if(i=t[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,e=i.lastChild;do{n=e.prev,r.insert(e,i),e=n}while(e)}})),e.fix_list_elements&&t.addNodeFilter("ul,ol",(function(t){var e,n,r=t.length;while(r--)if(e=t[r],n=e.parent,"ul"===n.name||"ol"===n.name)if(e.prev&&"li"===e.prev.name)e.prev.append(e);else{var i=new Ty("li",1);i.attr("style","list-style-type: none"),e.wrap(i)}})),e.validate&&n.getValidClasses()&&t.addAttributeFilter("class",(function(t){var e,r,i,o,a,s,u,c=t.length,l=n.getValidClasses();while(c--){for(e=t[c],r=e.attr("class").split(" "),a="",i=0;i<r.length;i++)o=r[i],u=!1,s=l["*"],s&&s[o]&&(u=!0),s=l[e.name],!u&&s&&s[o]&&(u=!0),u&&(a&&(a+=" "),a+=o);a.length||(a=null),e.attr("class",a)}})),wE(t,e)},xE=ln.makeMap,CE=ln.each,SE=ln.explode,kE=ln.extend,ME=function(t,e){void 0===e&&(e=ds());var n={},r=[],i={},o={};t=t||{},t.validate=!("validate"in t)||t.validate,t.root_name=t.root_name||"body";var a=function(t){var n,r,i,o,a,u,c,l,f,d,h,p=xE("tr,td,th,tbody,thead,tfoot,table"),m=e.getNonEmptyElements(),g=e.getWhiteSpaceElements(),v=e.getTextBlockElements(),b=e.getSpecialElements();for(n=0;n<t.length;n++)if(r=t[n],r.parent&&!r.fixed)if(v[r.name]&&"li"===r.parent.name){d=r.next;while(d){if(!v[d.name])break;d.name="li",d.fixed=!0,r.parent.insert(d,r.parent),d=d.next}r.unwrap(r)}else{for(o=[r],i=r.parent;i&&!e.isValidChild(i.name,r.name)&&!p[i.name];i=i.parent)o.push(i);if(i&&o.length>1){for(o.reverse(),a=u=s(o[0].clone()),f=0;f<o.length-1;f++){for(e.isValidChild(u.name,o[f].name)?(c=s(o[f].clone()),u.append(c)):c=u,l=o[f].firstChild;l&&l!==o[f+1];)h=l.next,c.append(l),l=h;u=c}mE(e,m,g,a)?i.insert(r,o[0],!0):(i.insert(a,o[0],!0),i.insert(r,a)),i=o[0],(mE(e,m,g,i)||hE(i,"br"))&&i.empty().remove()}else if(r.parent){if("li"===r.name){if(d=r.prev,d&&("ul"===d.name||"ol"===d.name)){d.append(r);continue}if(d=r.next,d&&("ul"===d.name||"ol"===d.name)){d.insert(r,d.firstChild,!0);continue}r.wrap(s(new Ty("ul",1)));continue}e.isValidChild(r.parent.name,"div")&&e.isValidChild("div",r.name)?r.wrap(s(new Ty("div",1))):b[r.name]?r.empty().remove():r.unwrap()}}},s=function(t){var e,a,s;a=t.name,a in n&&(s=i[a],s?s.push(t):i[a]=[t]),e=r.length;while(e--)a=r[e].name,a in t.attributes.map&&(s=o[a],s?s.push(t):o[a]=[t]);return t},u=function(t,e){CE(SE(t),(function(t){var r=n[t];r||(n[t]=r=[]),r.push(e)}))},c=function(){var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push({name:e,callbacks:n[e]});return t},l=function(t,e){CE(SE(t),(function(t){var n;for(n=0;n<r.length;n++)if(r[n].name===t)return void r[n].callbacks.push(e);r.push({name:t,callbacks:[e]})}))},f=function(){return[].concat(r)},d=function(s,u){var c,l,f,d,h,p,m,g,v,b=[],y=function(t){return!1===t?"":!0===t?"p":t};u=u||{},i={},o={};var w=kE(xE("script,style,head,html,body,title,meta,param"),e.getBlockElements()),_=e.getNonEmptyElements(),x=e.children,C=t.validate,S="forced_root_block"in u?u.forced_root_block:t.forced_root_block,k=y(S),M=e.getWhiteSpaceElements(),E=/^[ \t\r\n]+/,O=/[ \t\r\n]+$/,T=/[ \t\r\n]+/g,A=/^[ \t\r\n]+$/;g=M.hasOwnProperty(u.context)||M.hasOwnProperty(t.root_name);var D=function(){var n,r,i=B.firstChild,o=function(t){t&&(i=t.firstChild,i&&3===i.type&&(i.value=i.value.replace(E,"")),i=t.lastChild,i&&3===i.type&&(i.value=i.value.replace(O,"")))};if(e.isValidChild(B.name,k.toLowerCase())){while(i)n=i.next,3===i.type||1===i.type&&"p"!==i.name&&!w[i.name]&&!i.attr("data-mce-type")?(r||(r=N(k,1),r.attr(t.forced_root_block_attrs),B.insert(r,i)),r.append(i)):(o(r),r=null),i=n;o(r)}},N=function(t,e){var r,o=new Ty(t,e);return t in n&&(r=i[t],r?r.push(o):i[t]=[o]),o},R=function(t){var n,r,i,o,a=e.getBlockElements();for(n=t.prev;n&&3===n.type;){if(i=n.value.replace(O,""),i.length>0)return void(n.value=i);if(r=n.next,r){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}o=n.prev,n.remove(),n=o}},P=function(t){var e,n={};for(e in t)"li"!==e&&"p"!==e&&(n[e]=t[e]);return n},I=qy({validate:C,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_script_urls:t.allow_script_urls,allow_conditional_comments:t.allow_conditional_comments,preserve_cdata:t.preserve_cdata,self_closing_elements:P(e.getSelfClosingElements()),cdata:function(t){v.append(N("#cdata",4)).value=t},text:function(t,e){var n;g||(t=t.replace(T," "),gE(v.lastChild,w)&&(t=t.replace(E,""))),0!==t.length&&(n=N("#text",3),n.raw=!!e,v.append(n).value=t)},comment:function(t){v.append(N("#comment",8)).value=t},pi:function(t,e){v.append(N(t,7)).value=e,R(v)},doctype:function(t){var e=v.append(N("#doctype",10));e.value=t,R(v)},start:function(t,n,i){var a,s,u,c,l=C?e.getElementRule(t):{};if(l){a=N(l.outputName||t,1),a.attributes=n,a.shortEnded=i,v.append(a),c=x[v.name],c&&x[a.name]&&!c[a.name]&&b.push(a),s=r.length;while(s--)u=r[s].name,u in n.map&&(p=o[u],p?p.push(a):o[u]=[a]);w[t]&&R(a),i||(v=a),!g&&M[t]&&(g=!0)}},end:function(n){var r,i,o,a,s=C?e.getElementRule(n):{};if(s){if(w[n]&&!g){if(r=v.firstChild,r&&3===r.type)if(i=r.value.replace(E,""),i.length>0)r.value=i,r=r.next;else{o=r.next,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.next,(0===i.length||A.test(i))&&(r.remove(),r=o),r=o}if(r=v.lastChild,r&&3===r.type)if(i=r.value.replace(O,""),i.length>0)r.value=i,r=r.prev;else{o=r.prev,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.prev,(0===i.length||A.test(i))&&(r.remove(),r=o),r=o}}if(g&&M[n]&&(g=!1),s.removeEmpty&&mE(e,_,M,v))return a=v.parent,w[v.name]?v.empty().remove():v.unwrap(),void(v=a);s.paddEmpty&&(dE(v)||mE(e,_,M,v))&&fE(t,u,w,v),v=v.parent}}},e),B=v=new Ty(u.context||t.root_name,11);if(I.parse(s,u.format),C&&b.length&&(u.context?u.invalid=!0:a(b)),k&&("body"===B.name||u.isRootContent)&&D(),!u.invalid){for(m in i)if(i.hasOwnProperty(m)){p=n[m],c=i[m],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(l=0,f=p.length;l<f;l++)p[l](c,m,u)}for(l=0,f=r.length;l<f;l++)if(p=r[l],p.name in o){c=o[p.name],d=c.length;while(d--)c[d].parent||c.splice(d,1);for(d=0,h=p.callbacks.length;d<h;d++)p.callbacks[d](c,p.name,u)}}return B},h={schema:e,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:u,getNodeFilters:c,filterNode:s,parse:d};return _E(h,t),QM(h,t),h},EE=function(t,e,n){t.addAttributeFilter("data-mce-tabindex",(function(t,e){var n,r=t.length;while(r--)n=t[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(e,null)})),t.addAttributeFilter("src,href,style",(function(t,r){var i,o,a=t.length,s="data-mce-"+r,u=e.url_converter,c=e.url_converter_scope;while(a--)i=t[a],o=i.attr(s),void 0!==o?(i.attr(r,o.length>0?o:null),i.attr(s,null)):(o=i.attr(r),"style"===r?o=n.serializeStyle(n.parseStyle(o),i.name):u&&(o=u.call(c,o,r,i.name)),i.attr(r,o.length>0?o:null))})),t.addAttributeFilter("class",(function(t){var e,n,r=t.length;while(r--)e=t[r],n=e.attr("class"),n&&(n=e.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),e.attr("class",n.length>0?n:null))})),t.addAttributeFilter("data-mce-type",(function(t,e,n){var r,i=t.length;while(i--)if(r=t[i],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var o=O.from(r.firstChild).exists((function(t){return!Fo(t.value)}));o?r.unwrap():r.remove()}})),t.addNodeFilter("noscript",(function(t){var e,n=t.length;while(n--)e=t[n].firstChild,e&&(e.value=es.decode(e.value))})),t.addNodeFilter("script,style",(function(t,n){var r,i,o,a=t.length,s=function(t){return t.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};while(a--)r=t[a],i=r.firstChild?r.firstChild.value:"","script"===n?(o=r.attr("type"),o&&r.attr("type","mce-no/type"===o?null:o.replace(/^mce\-/,"")),"xhtml"===e.element_format&&i.length>0&&(r.firstChild.value="// <![CDATA[\n"+s(i)+"\n// ]]>")):"xhtml"===e.element_format&&i.length>0&&(r.firstChild.value="\x3c!--\n"+s(i)+"\n--\x3e")})),t.addNodeFilter("#comment",(function(t){var r,i=t.length;while(i--)r=t[i],e.preserve_cdata&&0===r.value.indexOf("[CDATA[")?(r.name="#cdata",r.type=4,r.value=n.decode(r.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===r.value.indexOf("mce:protected ")&&(r.name="#text",r.type=3,r.raw=!0,r.value=unescape(r.value).substr(14))})),t.addNodeFilter("xml:namespace,input",(function(t,e){var n,r=t.length;while(r--)n=t[r],7===n.type?n.remove():1===n.type&&("input"!==e||n.attr("type")||n.attr("type","text"))})),t.addAttributeFilter("data-mce-type",(function(e){Z(e,(function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(t.schema.getNonEmptyElements())?e.remove():e.unwrap())}))})),t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(t,e){var n=t.length;while(n--)t[n].attr(e,null)}))},OE=function(t){var e=function(t){return t&&"br"===t.name},n=t.lastChild;if(e(n)){var r=n.prev;e(r)&&(n.remove(),r.remove())}},TE=function(t,e,n){var r,i,o=t.dom;e=e.cloneNode(!0);var a=document.implementation;return a.createHTMLDocument&&(r=a.createHTMLDocument(""),ln.each("BODY"===e.nodeName?e.childNodes:[e],(function(t){r.body.appendChild(r.importNode(t,!0))})),e="BODY"!==e.nodeName?r.body.firstChild:r.body,i=o.doc,o.doc=r),Og(t,Ht(Ht({},n),{node:e})),i&&(o.doc=i),e},AE=function(t,e){return t&&t.hasEventListeners("PreProcess")&&!e.no_events},DE=function(t,e,n){return AE(t,n)?TE(t,e,n):e},NE=function(t,e,n){-1===ln.inArray(e,n)&&(t.addAttributeFilter(n,(function(t,e){var n=t.length;while(n--)t[n].attr(e,null)})),e.push(n))},RE=function(t,e,n){if(!e.no_events&&t){var r=Tg(t,Ht(Ht({},e),{content:n}));return r.content}return n},PE=function(t,e,n){var r=$o(n.getInner?e.innerHTML:t.getOuterHTML(e));return n.selection||Ro(gn.fromDom(e))?r:ln.trim(r)},IE=function(t,e,n){var r=n.selection?Ht({forced_root_block:!1},n):n,i=t.parse(e,r);return OE(i),i},BE=function(t,e,n){var r=Ny(t,e);return r.serialize(n)},LE=function(t,e,n,r,i){var o=BE(e,n,r);return RE(t,i,o)},zE=function(t,e){var n=["data-mce-selected"],r=e&&e.dom?e.dom:Tc.DOM,i=e&&e.schema?e.schema:ds(t);t.entity_encoding=t.entity_encoding||"named",t.remove_trailing_brs=!("remove_trailing_brs"in t)||t.remove_trailing_brs;var o=ME(t,i);EE(o,t,r);var a=function(n,a){void 0===a&&(a={});var s=Ht({format:"html"},a),u=DE(e,n,s),c=PE(r,u,s),l=IE(o,c,s);return"tree"===s.format?l:LE(e,t,i,l,s)};return{schema:i,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:function(t){i.addValidElements(t)},setRules:function(t){i.setValidElements(t)},addTempAttr:b(NE,o,n),getTempAttrs:function(){return n},getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters}},jE=function(t,e){var n=zE(t,e);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},FE="html",$E=function(t,e){void 0===e&&(e={});var n=e.format?e.format:FE;return OM(t,e,n)},HE=function(t,e,n){return void 0===n&&(n={}),TM(t,e,n)},VE=Tc.DOM,UE=function(t){VE.setStyle(t.id,"display",t.orgDisplay)},qE=function(t){return O.from(t).each((function(t){return t.destroy()}))},WE=function(t){t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.bodyElement=t.contentDocument=t.contentWindow=null,t.iframeElement=t.targetElm=null,t.selection&&(t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null)},KE=function(t){var e=t.formElement;e&&(e._mceOldSubmit&&(e.submit=e._mceOldSubmit,e._mceOldSubmit=null),VE.unbind(e,"submit reset",t.formEventDelegate))},GE=function(t){if(!t.removed){var e=t._selectionOverrides,n=t.editorUpload,r=t.getBody(),i=t.getElement();r&&t.save({is_removing:!0}),t.removed=!0,t.unbindAllNativeEvents(),t.hasHiddenInput&&i&&VE.remove(i.nextSibling),Ag(t),t.editorManager.remove(t),!t.inline&&r&&UE(t),Dg(t),VE.remove(t.getContainer()),qE(e),qE(n),t.destroy()}},YE=function(t,e){var n=t.selection,r=t.dom;t.destroyed||(e||t.removed?(e||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),qE(n),qE(r)),KE(t),WE(t),t.destroyed=!0):t.remove())},XE=Object.prototype.hasOwnProperty,ZE=function(t,e){var n=P(t)&&P(e);return n?QE(t,e):e},JE=function(t){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<e.length;i++){var o=e[i];for(var a in o)XE.call(o,a)&&(r[a]=t(r[a],o[a]))}return r}},QE=JE(ZE),tO=function(t,e){return{sections:g(t),settings:g(e)}},eO=$e().deviceType,nO=eO.isTouch(),rO=eO.isPhone(),iO=eO.isTablet(),oO=["lists","autolink","autosave"],aO={table_grid:!1,object_resizing:!1,resize:!1},sO=function(t){var e=I(t)?t.join(" "):t,n=X(R(e)?e.split(" "):[],ce);return tt(n,(function(t){return t.length>0}))},uO=function(t){return tt(t,b(G,oO))},cO=function(t,e){var n=kt(e,(function(e,n){return G(t,n)}));return tO(n.t,n.f)},lO=function(t,e,n){void 0===n&&(n={});var r=t.sections(),i=r.hasOwnProperty(e)?r[e]:{};return ln.extend({},n,i)},fO=function(t,e){return t.sections().hasOwnProperty(e)},dO=function(t,e,n){var r=t.sections();return fO(t,e)&&r[e].theme===n},hO=function(t,e){return fO(t,e)?t.sections()[e]:{}},pO=function(t,e){return Tt(t,"toolbar_mode").orThunk((function(){return Tt(t,"toolbar_drawer").map((function(t){return!1===t?"wrap":t}))})).getOr(e)},mO=function(t,e,n,r,i){var o={id:e,theme:"silver",toolbar_mode:pO(t,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i};return Ht(Ht({},o),r?aO:{})},gO=function(t,e){var n={resize:!1,toolbar_mode:pO(t,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return Ht(Ht(Ht({},aO),n),e?r:{})},vO=function(t,e){var n=e.external_plugins?e.external_plugins:{};return t&&t.external_plugins?ln.extend({},t.external_plugins,n):n},bO=function(t,e){return[].concat(sO(t)).concat(sO(e))},yO=function(t,e,n,r){return t&&dO(e,"mobile","mobile")?uO(r):t&&fO(e,"mobile")?r:n},wO=function(t,e,n,r){var i=sO(n.forced_plugins),o=sO(r.plugins),a=hO(e,"mobile"),s=a.plugins?sO(a.plugins):o,u=yO(t,e,o,s),c=bO(i,u);if(Xe.browser.isIE()&&G(c,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return ln.extend(r,{plugins:c.join(" ")})},_O=function(t,e){return t&&fO(e,"mobile")},xO=function(t,e,n,r,i){var o=t?{mobile:gO(i.mobile||{},e)}:{},a=cO(["mobile"],QE(o,i)),s=ln.extend(n,r,a.settings(),_O(t,a)?lO(a,"mobile"):{},{validate:!0,external_plugins:vO(r,a.settings())});return wO(t,a,r,s)},CO=function(t,e,n,r,i){var o=mO(i,e,n,nO,t);return xO(rO||iO,rO,o,r,i)},SO=function(t,e,n){return O.from(e.settings[n]).filter(t)},kO=function(t){var e={};return"string"===typeof t?Z(t.indexOf("=")>0?t.split(/[;,](?![^=;,]*(?:[;,]|$))/):t.split(","),(function(t){var n=t.split("=");n.length>1?e[ln.trim(n[0])]=ln.trim(n[1]):e[ln.trim(n[0])]=ln.trim(n[0])})):e=t,e},MO=function(t){return function(e){return I(e)&&ut(e,t)}},EO=function(t,e,n,r){var i=e in t.settings?t.settings[e]:n;return"hash"===r?kO(i):"string"===r?SO(R,t,e).getOr(n):"number"===r?SO(H,t,e).getOr(n):"boolean"===r?SO(L,t,e).getOr(n):"object"===r?SO(P,t,e).getOr(n):"array"===r?SO(I,t,e).getOr(n):"string[]"===r?SO(MO(R),t,e).getOr(n):"function"===r?SO($,t,e).getOr(n):i},OO=function(){var t={},e=function(e,n){t[e]=n},n=function(e){return t[e]?t[e]:{icons:{}}},r=function(e){return At(t,e)};return{add:e,get:n,has:r}},TO=OO(),AO=function(t,e){var n=e.dom;return n[t]},DO=function(t,e){return parseInt(mi(e,t),10)},NO=b(AO,"clientWidth"),RO=b(AO,"clientHeight"),PO=b(DO,"margin-top"),IO=b(DO,"margin-left"),BO=function(t){return t.dom.getBoundingClientRect()},LO=function(t,e,n){var r=NO(t),i=RO(t);return e>=0&&n>=0&&e<=r&&n<=i},zO=function(t,e,n,r){var i=BO(e),o=t?i.left+e.dom.clientLeft+IO(e):0,a=t?i.top+e.dom.clientTop+PO(e):0,s=n-o,u=r-a;return{x:s,y:u}},jO=function(t,e,n){var r=gn.fromDom(t.getBody()),i=t.inline?r:Vn(r),o=zO(t.inline,i,e,n);return LO(i,o.x,o.y)},FO=function(t){return O.from(t).map(gn.fromDom)},$O=function(t){var e=t.inline?t.getBody():t.getContentAreaContainer();return FO(e).map(Cr).getOr(!1)};function HO(){var t=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:t,close:t,reposition:t,getArgs:t}}function VO(t){var e=[],n=function(){var e=t.theme;return e&&e.getNotificationManagerImpl?e.getNotificationManagerImpl():HO()},r=function(){return O.from(e[0])},i=function(t,e){return t.type===e.type&&t.text===e.text&&!t.progressBar&&!t.timeout&&!e.progressBar&&!e.timeout},o=function(){e.length>0&&n().reposition(e)},a=function(t){e.push(t)},s=function(t){ot(e,(function(e){return e===t})).each((function(t){e.splice(t,1)}))},u=function(u,c){if(void 0===c&&(c=!0),!t.removed&&$O(t))return c&&t.fire("BeforeOpenNotification",{notification:u}),it(e,(function(t){return i(n().getArgs(t),u)})).getOrThunk((function(){t.editorManager.setActive(t);var e=n().open(u,(function(){s(e),o(),r().fold((function(){return t.focus()}),(function(t){return Uv(gn.fromDom(t.getEl()))}))}));return a(e),o(),t.fire("OpenNotification",Ht({},e)),e}))},c=function(){r().each((function(t){n().close(t),s(t),o()}))},l=function(){return e},f=function(t){t.on("SkinLoaded",(function(){var e=qd(t);e&&u({text:e,type:"warning",timeout:0},!1)})),t.on("ResizeEditor ResizeWindow NodeChange",(function(){uo.requestAnimationFrame(o)})),t.on("remove",(function(){Z(e.slice(),(function(t){n().close(t)}))}))};return f(t),{open:u,close:c,getNotifications:l}}var UO=Qc.PluginManager,qO=Qc.ThemeManager;function WO(){var t=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:t,openUrl:t,alert:t,confirm:t,close:t,getParams:t,setParams:t}}var KO=function(t){var e=[],n=function(){var e=t.theme;return e&&e.getWindowManagerImpl?e.getWindowManagerImpl():WO()},r=function(t,e){return function(){return e?e.apply(t,arguments):void 0}},i=function(e){t.fire("OpenWindow",{dialog:e})},o=function(e){t.fire("CloseWindow",{dialog:e})},a=function(t){e.push(t),i(t)},s=function(n){o(n),e=tt(e,(function(t){return t!==n})),0===e.length&&t.focus()},u=function(){return O.from(e[e.length-1])},c=function(e){t.editorManager.setActive(t),Cb(t);var n=e();return a(n),n},l=function(t,e){return c((function(){return n().open(t,e,s)}))},f=function(t){return c((function(){return n().openUrl(t,s)}))},d=function(t,e,i){n().alert(t,r(i||this,e))},h=function(t,e,i){n().confirm(t,r(i||this,e))},p=function(){u().each((function(t){n().close(t),s(t)}))};return t.on("remove",(function(){Z(e,(function(t){n().close(t)}))})),{open:l,openUrl:f,alert:d,confirm:h,close:p}},GO=function(t,e){t.notificationManager.open({type:"error",text:e})},YO=function(t,e){t._skinLoaded?GO(t,e):t.on("SkinLoaded",(function(){GO(t,e)}))},XO=function(t,e){YO(t,Zc.translate(["Failed to upload image: {0}",e]))},ZO=function(t,e,n){jg(t,e,{message:n}),console.error(n)},JO=function(t,e,n){return n?"Failed to load "+t+": "+n+" from url "+e:"Failed to load "+t+" url: "+e},QO=function(t,e,n){ZO(t,"PluginLoadError",JO("plugin",e,n))},tT=function(t,e,n){ZO(t,"IconsLoadError",JO("icons",e,n))},eT=function(t,e,n){ZO(t,"LanguageLoadError",JO("language",e,n))},nT=function(t,e,n){var r=Zc.translate(["Failed to initialize plugin: {0}",e]);rT(r,n),YO(t,r)},rT=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,Ut([t],e)):r.log.apply(r,Ut([t],e)))},iT=function(t){return/^[a-z0-9\-]+$/i.test(t)},oT=function(t){var e=zd(t),n=t.editorManager.baseURL+"/skins/content",r=t.editorManager.suffix,i="content"+r+".css",o=!0===t.inline;return X(e,(function(e){return iT(e)&&!o?n+"/"+e+"/"+i:t.documentBaseURI.toAbsolute(e)}))},aT=function(t){t.contentCSS=t.contentCSS.concat(oT(t))};function sT(t,e){var n={},r=function(t,e){return t?t.replace(/\/$/,"")+"/"+e.replace(/^\//,""):e},i=function(t,n,i,o){var a=new XMLHttpRequest;a.open("POST",e.url),a.withCredentials=e.credentials,a.upload.onprogress=function(t){o(t.loaded/t.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)i("HTTP Error: "+a.status);else{var t=JSON.parse(a.responseText);t&&"string"===typeof t.location?n(r(e.basePath,t.location)):i("Invalid JSON: "+a.responseText)}};var s=new FormData;s.append("file",t.blob(),t.filename()),a.send(s)},o=function(){return new eo((function(t){t([])}))},a=function(t,e){return{url:e,blobInfo:t,status:!0}},s=function(t,e,n){return{url:"",blobInfo:t,status:!1,error:{message:e,options:n}}},u=function(t,e){ln.each(n[t],(function(t){t(e)})),delete n[t]},c=function(e,n,r){return t.markPending(e.blobUri()),new eo((function(i){var o,c,l=function(){};try{var f=function(){o&&(o.close(),c=l)},d=function(n){f(),t.markUploaded(e.blobUri(),n),u(e.blobUri(),a(e,n)),i(a(e,n))},h=function(n,r){var o=r||{};f(),t.removeFailed(e.blobUri()),u(e.blobUri(),s(e,n,o)),i(s(e,n,o))};c=function(t){t<0||t>100||(o||(o=r()),o.progressBar.value(t))},n(e,d,h,c)}catch(p){i(s(e,p.message,{}))}}))},l=function(t){return t===i},f=function(t){var e=t.blobUri();return new eo((function(t){n[e]=n[e]||[],n[e].push(t)}))},d=function(n,r){return n=ln.grep(n,(function(e){return!t.isUploaded(e.blobUri())})),eo.all(ln.map(n,(function(n){return t.isPending(n.blobUri())?f(n):c(n,e.handler,r)})))},h=function(t,n){return!e.url&&l(e.handler)?o():d(t,n)};return!1===$(e.handler)&&(e.handler=i),{upload:h}}function uT(){var t=1,e=2,n={},r=function(t,e){return{status:t,resultUri:e}},i=function(t){return t in n},o=function(t){var e=n[t];return e?e.resultUri:null},a=function(e){return!!i(e)&&n[e].status===t},s=function(t){return!!i(t)&&n[t].status===e},u=function(e){n[e]=r(t,null)},c=function(t,i){n[t]=r(e,i)},l=function(t){delete n[t]},f=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:u,markUploaded:c,removeFailed:l,destroy:f}}var cT=0,lT=function(){var t=function(){return Math.round(4294967295*Math.random()).toString(36)},e=(new Date).getTime();return"s"+e.toString(36)+t()+t()+t()},fT=function(t){return t+cT+++lT()},dT=function(){var t=[],e=function(t){var e={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return e[t.toLowerCase()]||"dat"},n=function(t,e,n,i,o){if(R(t)){var a=t;return r({id:a,name:i,filename:o,blob:e,base64:n})}if(P(t))return r(t);throw new Error("Unknown input type")},r=function(t){if(!t.blob||!t.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=t.id||fT("blobid"),r=t.name||n,i=t.blob;return{id:g(n),name:g(r),filename:g(t.filename||r+"."+e(i.type)),blob:g(i),base64:g(t.base64),blobUri:g(t.blobUri||URL.createObjectURL(i)),uri:g(t.uri)}},i=function(e){a(e.id())||t.push(e)},o=function(e){return it(t,e).getOrUndefined()},a=function(t){return o((function(e){return e.id()===t}))},s=function(t){return o((function(e){return e.blobUri()===t}))},u=function(t,e){return o((function(n){return n.base64()===t&&n.blob().type===e}))},c=function(e){t=tt(t,(function(t){return t.blobUri()!==e||(URL.revokeObjectURL(t.blobUri()),!1)}))},l=function(){Z(t,(function(t){URL.revokeObjectURL(t.blobUri())})),t=[]};return{create:n,add:i,get:a,getByUri:s,getByData:u,findFirst:o,removeByUri:c,destroy:l}},hT=function(t){var e=zc(null);t.on("change AddUndo",(function(t){e.set(Ht({},t.level))}));var n=function(){var n=t.undoManager.data;mt(n).filter((function(t){return!Bk(e.get(),t)})).each((function(e){t.setDirty(!0),t.fire("change",{level:e,lastLevel:ht(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},pT=function(t){var e,n,r=dT(),i=uT(),o=[],a=hT(t),s=function(e){return function(n){return t.selection?e(n):[]}},u=function(t){return t+(-1===t.indexOf("?")?"?":"&")+(new Date).getTime()},c=function(t,e,n){var r=0;do{r=t.indexOf(e,r),-1!==r&&(t=t.substring(0,r)+n+t.substr(r+e.length),r+=n.length-e.length+1)}while(-1!==r);return t},l=function(t,e,n){var r='src="'+n+'"'+(n===Xe.transparentSrc?' data-mce-placeholder="1"':"");return t=c(t,'src="'+e+'"',r),t=c(t,'data-mce-src="'+e+'"','data-mce-src="'+n+'"'),t},f=function(e,n){Z(t.undoManager.data,(function(t){"fragmented"===t.type?t.fragments=X(t.fragments,(function(t){return l(t,e,n)})):t.content=l(t.content,e,n)}))},d=function(){return t.notificationManager.open({text:t.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},h=function(e,n){var r=t.convertURL(n,"src");f(e.src,n),t.$(e).attr({src:Sd(t)?u(n):n,"data-mce-src":r})},p=function(n){return e||(e=sT(i,{url:Od(t),basePath:Td(t),credentials:Ad(t),handler:Dd(t)})),b().then(s((function(i){var o=X(i,(function(t){return t.blobInfo}));return e.upload(o,d).then(s((function(e){var o=[],s=X(e,(function(e,n){var a=i[n].blobInfo,s=i[n].image;return e.status&&kd(t)?(r.removeByUri(s.src),h(s,e.url)):e.error&&(e.error.options.remove&&(f(s.getAttribute("src"),Xe.transparentSrc),o.push(s)),XO(t,e.error.message)),{element:s,status:e.status,uploadUri:e.url,blobInfo:a}}));return s.length>0&&a.fireIfChanged(),o.length>0&&(iM(t)?console.error("Removing images on failed uploads is currently unsupported for RTC"):t.undoManager.transact((function(){Z(o,(function(e){t.dom.remove(e),r.removeByUri(e.src)}))}))),n&&n(s),s})))})))},m=function(e){if(Cd(t))return p(e)},g=function(e){if(!1===ut(o,(function(t){return t(e)})))return!1;if(0===e.getAttribute("src").indexOf("data:")){var n=xd(t);return n(e)}return!0},v=function(t){o.push(t)},b=function(){return n||(n=lE(i,r)),n.findAll(t.getBody(),g).then(s((function(e){return e=tt(e,(function(e){return"string"!==typeof e||(YO(t,e),!1)})),Z(e,(function(t){f(t.image.src,t.blobInfo.blobUri()),t.image.src=t.blobInfo.blobUri(),t.image.removeAttribute("data-mce-src")})),e})))},y=function(){r.destroy(),i.destroy(),n=e=null},w=function(e){return e.replace(/src="(blob:[^"]+)"/g,(function(e,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=nt(t.editorManager.get(),(function(t,e){return t||e.editorUpload&&e.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return e}))};return t.on("SetContent",(function(){Cd(t)?m():b()})),t.on("RawSaveContent",(function(t){t.content=w(t.content)})),t.on("GetContent",(function(t){t.source_view||"raw"===t.format||"tree"===t.format||(t.content=w(t.content))})),t.on("PostRender",(function(){t.parser.addNodeFilter("img",(function(t){Z(t,(function(t){var e=t.attr("src");if(!r.getByUri(e)){var n=i.getResultUri(e);n&&t.attr("src",n)}}))}))})),{blobCache:r,addFilter:v,uploadImages:p,uploadImagesAuto:m,scanForImages:b,destroy:y}},mT=function(t){var e={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(t,e,n){return zr(t)&&t.hasAttribute("href")},onformat:function(e,n,r){ln.each(r,(function(n,r){t.setAttrib(e,r,n)}))}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return ln.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),(function(t){e[t]={block:t,remove:"all"}})),e};function gT(t){var e={},n=function(t){return t?e[t]:e},r=function(t){return At(e,t)},i=function(t,n){t&&("string"!==typeof t?ln.each(t,(function(t,e){i(e,t)})):(I(n)||(n=[n]),ln.each(n,(function(t){"undefined"===typeof t.deep&&(t.deep=!t.selector),"undefined"===typeof t.split&&(t.split=!t.selector||t.inline),"undefined"===typeof t.remove&&t.selector&&!t.inline&&(t.remove="none"),t.selector&&t.inline&&(t.mixed=!0,t.block_expand=!0),"string"===typeof t.classes&&(t.classes=t.classes.split(/\s+/))})),e[t]=n))},o=function(t){return t&&e[t]&&delete e[t],e};return i(mT(t.dom)),i(Yd(t)),{get:n,has:r,register:i,unregister:o}}var vT,bT=ln.each,yT=Tc.DOM,wT=function(t,e){var n,r,i,o=e&&e.schema||ds({}),a=function(t,e){e.classes.length&&yT.addClass(t,e.classes.join(" ")),yT.setAttribs(t,e.attrs)},s=function(t){r="string"===typeof t?{name:t,classes:[],attrs:{}}:t;var e=yT.create(r.name);return a(e,r),e},u=function(t,e){var n="string"!==typeof t?t.nodeName.toLowerCase():t,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(e&&-1!==ln.inArray(i,e)?e:i[0])},c=function(t,e,n){var r,i,o=e.length>0&&e[0],a=o&&o.name,l=u(t,a);if(l)a===l?(i=e[0],e=e.slice(1)):i=l;else if(o)i=e[0],e=e.slice(1);else if(!n)return t;return i&&(r=s(i),r.appendChild(t)),n&&(r||(r=yT.create("div"),r.appendChild(t)),ln.each(n,(function(e){var n=s(e);r.insertBefore(n,t)}))),c(r,e,i&&i.siblings)};return t&&t.length?(r=t[0],n=s(r),i=yT.create("div"),i.appendChild(c(n,t.slice(1),r.siblings)),i):""},_T=function(t){var e,n={classes:[],attrs:{}};return t=n.selector=ln.trim(t),"*"!==t&&(e=t.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(t,e,r,i,o){switch(e){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==ln.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=e||"div",n},xT=function(t){return t&&"string"===typeof t?(t=t.split(/\s*,\s*/)[0],t=t.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ln.map(t.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(t){var e=ln.map(t.split(/(?:~\+|~|\+)/),_T),n=e.pop();return e.length&&(n.siblings=e),n})).reverse()):[]},CT=function(t,e){var n,r,i,o="",a=Xd(t);if(""===a)return"";var s=function(t){return t.replace(/%(\w+)/g,"")};if("string"===typeof e){if(e=t.formatter.get(e),!e)return;e=e[0]}if("preview"in e){var u=Tt(e,"preview");if(u.is(!1))return"";a=u.getOr(a)}n=e.block||e.inline||"span";var c=xT(e.selector);c.length?(c[0].name||(c[0].name=n),n=e.selector,r=wT(c,t)):r=wT([n],t);var l=yT.select(n,r)[0]||r.firstChild;return bT(e.styles,(function(t,e){var n=s(t);n&&yT.setStyle(l,e,n)})),bT(e.attributes,(function(t,e){var n=s(t);n&&yT.setAttrib(l,e,n)})),bT(e.classes,(function(t){var e=s(t);yT.hasClass(l,e)||yT.addClass(l,e)})),t.fire("PreviewFormats"),yT.setStyles(r,{position:"absolute",left:-65535}),t.getBody().appendChild(r),i=yT.getStyle(t.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,bT(a.split(" "),(function(e){var n=yT.getStyle(l,e,!0);if(("background-color"!==e||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=yT.getStyle(t.getBody(),e,!0),"#ffffff"!==yT.toHex(n).toLowerCase()))&&("color"!==e||"#000000"!==yT.toHex(n).toLowerCase())){if("font-size"===e&&/em|%$/.test(n)){if(0===i)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*i+"px"}"border"===e&&n&&(o+="padding:0 2px;"),o+=e+":"+n+";"}})),t.fire("AfterPreviewFormats"),yT.remove(r),o},ST=function(t){t.addShortcut("meta+b","","Bold"),t.addShortcut("meta+i","","Italic"),t.addShortcut("meta+u","","Underline");for(var e=1;e<=6;e++)t.addShortcut("access+"+e,"",["FormatBlock",!1,"h"+e]);t.addShortcut("access+7","",["FormatBlock",!1,"p"]),t.addShortcut("access+8","",["FormatBlock",!1,"div"]),t.addShortcut("access+9","",["FormatBlock",!1,"address"])},kT=function(t){var e=gT(t),n=zc(null);return ST(t),AC(t),{get:e.get,has:e.has,register:e.register,unregister:e.unregister,apply:function(e,n,r){SM(t,e,n,r)},remove:function(e,n,r,i){kM(t,e,n,r,i)},toggle:function(e,n,r){MM(t,e,n,r)},match:function(e,n,r){return yM(t,e,n,r)},closest:function(e){return CM(t,e)},matchAll:function(e,n){return wM(t,e,n)},matchNode:function(e,n,r,i){return _M(t,e,n,r,i)},canApply:function(e){return xM(t,e)},formatChanged:function(e,r,i){return EM(t,n,e,r,i)},getCssText:b(CT,t)}},MT=function(t,e,n){var r=zc(!1),i=function(t){zk(e,!1,n),e.add({},t)};t.on("init",(function(){e.add()})),t.on("BeforeExecCommand",(function(t){var r=t.command.toLowerCase();"undo"!==r&&"redo"!==r&&"mcerepaint"!==r&&(jk(e,n),e.beforeChange())})),t.on("ExecCommand",(function(t){var e=t.command.toLowerCase();"undo"!==e&&"redo"!==e&&"mcerepaint"!==e&&i(t)})),t.on("ObjectResizeStart cut",(function(){e.beforeChange()})),t.on("SaveContent ObjectResized blur",i),t.on("dragend",i),t.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),t.nodeChanged()),46!==o&&8!==o||t.nodeChanged(),r.get()&&e.typing&&!1===Bk(Ak(t),e.data[0])&&(!1===t.isDirty()&&(t.setDirty(!0),t.fire("change",{level:e.data[0],lastLevel:null})),t.fire("TypingUndo"),r.set(!1),t.nodeChanged()))})),t.on("keydown",(function(t){var o=t.keyCode;if(!t.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)e.typing&&i(t);else{var a=t.ctrlKey&&!t.altKey||t.metaKey;!(o<16||o>20)||224===o||91===o||e.typing||a||(e.beforeChange(),zk(e,!0,n),e.add({},t),r.set(!0))}})),t.on("mousedown",(function(t){e.typing&&i(t)}));var o=function(t){return"insertReplacementText"===t.inputType},a=function(t){return"insertText"===t.inputType&&null===t.data},s=function(t){return"insertFromPaste"===t.inputType||"insertFromDrop"===t.inputType};t.on("input",(function(t){t.inputType&&(o(t)||a(t)||s(t))&&i(t)})),t.on("AddUndo Undo Redo ClearUndos",(function(e){e.isDefaultPrevented()||t.nodeChanged()}))},ET=function(t){t.addShortcut("meta+z","","Undo"),t.addShortcut("meta+y,meta+shift+z","","Redo")},OT=function(t){var e=zc(O.none()),n=zc(0),r=zc(0),i={data:[],typing:!1,beforeChange:function(){uM(t,n,e)},add:function(o,a){return cM(t,i,r,n,e,o,a)},undo:function(){return lM(t,i,n,r)},redo:function(){return fM(t,r,i.data)},clear:function(){dM(t,i,r)},reset:function(){hM(t,i)},hasUndo:function(){return pM(t,i,r)},hasRedo:function(){return mM(t,i,r)},transact:function(e){return gM(t,i,n,e)},ignore:function(e){vM(t,n,e)},extra:function(e,n){bM(t,i,r,e,n)}};return iM(t)||MT(t,i,n),ET(t),i},TT=[9,27,Fg.HOME,Fg.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fg.DOWN,Fg.UP,Fg.LEFT,Fg.RIGHT].concat(Xe.browser.isFirefox()?[224]:[]),AT="data-mce-placeholder",DT=function(t){return"keydown"===t.type||"keyup"===t.type},NT=function(t){var e=t.keyCode;return e===Fg.BACKSPACE||e===Fg.DELETE},RT=function(t){if(DT(t)){var e=t.keyCode;return!NT(t)&&(Fg.metaKeyPressed(t)||t.altKey||e>=112&&e<=123||G(TT,e))}return!1},PT=function(t){return DT(t)&&!(NT(t)||"keyup"===t.type&&229===t.keyCode)},IT=function(t,e,n){if(Ta(gn.fromDom(e),!1)){var r=""===n,i=e.firstElementChild;return!i||!t.getStyle(e.firstElementChild,"padding-left")&&!t.getStyle(e.firstElementChild,"padding-right")&&(r?!t.isBlock(i):n===i.nodeName.toLowerCase())}return!1},BT=function(t){var e=t.dom,n=pd(t),r=Vd(t),i=function(o,a){if(!RT(o)){var s=t.getBody(),u=!PT(o)&&IT(e,s,n),c=""!==e.getAttrib(s,AT);(c!==u||a)&&(e.setAttrib(s,AT,u?r:null),e.setAttrib(s,"aria-placeholder",u?r:null),zg(t,u),t.on(u?"keydown":"keyup",i),t.off(u?"keyup":"keydown",i))}};r&&t.on("init",(function(e){i(e,!0),t.on("change SetContent ExecCommand",i),t.on("paste",(function(e){return uo.setEditorTimeout(t,(function(){return i(e)}))}))}))},LT=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,zT=function(t){return LT.test(t)},jT=function(t,e){return kn(gn.fromDom(e),Fd(t))},FT=function(t){return"rtl"===Tc.DOM.getStyle(t,"direction",!0)||zT(t.textContent)},$T=function(t,e,n){return tt(Tc.DOM.getParents(n.container(),"*",e),t)},HT=function(t,e,n){var r=$T(t,e,n);return O.from(r[r.length-1])},VT=function(t,e,n){var r=Zh(e,t),i=Zh(n,t);return r&&r===i},UT=function(t){return Yo(t)||Xo(t)},qT=function(t,e){if(!e)return e;var n=e.container(),r=e.offset();return t?qo(n)?Gr(n.nextSibling)?Cf(n.nextSibling,0):Cf.after(n):Yo(e)?Cf(n,r+1):e:qo(n)?Gr(n.previousSibling)?Cf(n.previousSibling,n.previousSibling.data.length):Cf.before(n):Xo(e)?Cf(n,r-1):e},WT=b(qT,!0),KT=b(qT,!1),GT=function(t){return function(e){return Tn(t,gn.fromDom(e.dom.parentNode))}},YT=function(t,e){return Nn(t,e)?Gi(e,(function(t){return Oo(t)||Ao(t)}),GT(t)):O.none()},XT=function(t){var e=t.getBody(),n=e.firstChild&&t.dom.isBlock(e.firstChild)?e.firstChild:e;t.selection.setCursorLocation(n,0)},ZT=function(t){t.dom.isEmpty(t.getBody())&&(t.setContent(""),XT(t))},JT=function(t,e,n){return Ll(zp(n),jp(n),(function(r,i){var o=qT(!0,r),a=qT(!1,i),s=qT(!1,e);return t?Bp(n,s).exists((function(t){return t.isEqual(a)&&e.isEqual(o)})):Lp(n,s).exists((function(t){return t.isEqual(o)&&e.isEqual(a)}))})).getOr(!0)},QT=function(t,e){return{block:t,position:e}},tA=function(t,e){return{from:t,to:e}},eA=function(t,e){var n=gn.fromDom(t),r=gn.fromDom(e.container());return YT(n,r).map((function(t){return QT(t,e)}))},nA=function(t){return!1===Tn(t.from.block,t.to.block)},rA=function(t){return qn(t.from.block).bind((function(e){return qn(t.to.block).filter((function(t){return Tn(e,t)}))})).isSome()},iA=function(t){return!1===ei(t.from.block.dom)&&!1===ei(t.to.block.dom)},oA=function(t,e,n){return Jr(n.position.getNode())&&!1===Ta(n.block)?Ip(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Np(e,t,r).bind((function(e){return eA(t,e)})):O.some(n)})).getOr(n):n},aA=function(t,e,n){var r=eA(t,Cf.fromRangeStart(n)),i=r.bind((function(n){return Np(e,t,n.position).bind((function(n){return eA(t,n).map((function(n){return oA(t,e,n)}))}))}));return Ll(r,i,tA).filter((function(t){return nA(t)&&rA(t)&&iA(t)}))},sA=function(t,e,n){return n.collapsed?aA(t,e,n):O.none()},uA=function(t){var e=Jn(t);return ot(e,So).fold((function(){return e}),(function(t){return e.slice(0,t)}))},cA=function(t){var e=uA(t);return Z(e,_r),e},lA=function(t,e){var n=xw(e,t);return it(n.reverse(),(function(t){return Ta(t)})).each(_r)},fA=function(t){return 0===tt(Xn(t),(function(t){return!Ta(t)})).length},dA=function(t,e,n,r){if(Ta(n))return vw(n),zp(n.dom);fA(r)&&Ta(e)&&hr(r,gn.fromTag("br"));var i=Lp(n.dom,Cf.before(r.dom));return Z(cA(e),(function(t){hr(r,t)})),lA(t,e),i},hA=function(t,e,n){if(Ta(n))return _r(n),Ta(e)&&vw(e),zp(e.dom);var r=jp(n.dom);return Z(cA(e),(function(t){gr(n,t)})),lA(t,e),r},pA=function(t,e){var n=xw(e,t);return O.from(n[n.length-1])},mA=function(t,e){return Nn(e,t)?pA(e,t):O.none()},gA=function(t,e){Ip(t,e.dom).map((function(t){return t.getNode()})).map(gn.fromDom).filter(Eo).each(_r)},vA=function(t,e,n){return gA(!0,e),gA(!1,n),mA(e,n).fold(b(hA,t,e,n),b(dA,t,e,n))},bA=function(t,e,n,r){return e?vA(t,r,n):vA(t,n,r)},yA=function(t,e){var n=gn.fromDom(t.getBody()),r=sA(n.dom,e,t.selection.getRng()).bind((function(t){return bA(n,e,t.from.block,t.to.block)}));return r.each((function(e){t.selection.setRng(e.toRange())})),r.isSome()},wA=function(t,e){var n=e.getRng();return Ll(YT(t,gn.fromDom(n.startContainer)),YT(t,gn.fromDom(n.endContainer)),(function(r,i){return!1===Tn(r,i)&&(n.deleteContents(),bA(t,!0,r,i).each((function(t){e.setRng(t.toRange())})),!0)})).getOr(!1)},_A=function(t,e){var n=gn.fromDom(e),r=b(Tn,t);return Ki(n,No,r).isSome()},xA=function(t,e){return _A(t,e.startContainer)||_A(t,e.endContainer)},CA=function(t,e){var n=Lp(t.dom,Cf.fromRangeStart(e)).isNone(),r=Bp(t.dom,Cf.fromRangeEnd(e)).isNone();return!xA(t,e)&&n&&r},SA=function(t){return t.setContent(""),t.selection.setCursorLocation(),!0},kA=function(t){var e=gn.fromDom(t.getBody()),n=t.selection.getRng();return CA(e,n)?SA(t):wA(e,t.selection)},MA=function(t,e){return!t.selection.isCollapsed()&&kA(t)},EA=ti,OA=ei,TA=function(t,e,n,r,i){return O.from(e._selectionOverrides.showCaret(t,n,r,i))},AA=function(t){var e=t.ownerDocument.createRange();return e.selectNode(t),e},DA=function(t,e){var n=t.fire("BeforeObjectSelected",{target:e});return n.isDefaultPrevented()?O.none():O.some(AA(e))},NA=function(t,e,n){var r=op(1,t.getBody(),e),i=Cf.fromRangeStart(r),o=i.getNode();if(zh(o))return TA(1,t,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(zh(a))return TA(1,t,a,!1,!1);var s=t.dom.getParent(i.getNode(),(function(t){return OA(t)||EA(t)}));return zh(s)?TA(1,t,s,!1,n):O.none()},RA=function(t,e,n){return e.collapsed?NA(t,e,n).getOr(e):e},PA=function(t){return hw(t)||cw(t)},IA=function(t){return pw(t)||lw(t)},BA=function(t,e){Gr(e)&&0===e.data.length&&t.remove(e)},LA=function(t,e,n,r,i,o){return TA(r,t,o.getNode(!i),i,!0).each((function(n){if(e.collapsed){var r=e.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else e.deleteContents();t.selection.setRng(n)})),BA(t.dom,n),!0},zA=function(t,e){var n=t.selection.getRng();if(!Gr(n.commonAncestorContainer))return!1;var r=e?xf.Forwards:xf.Backwards,i=Sp(t.getBody()),o=b(lp,e?i.next:i.prev),a=e?PA:IA,s=sp(r,t.getBody(),n),u=qT(e,o(s));if(!u||!fp(s,u))return!1;if(a(u))return LA(t,n,s.getNode(),r,e,u);var c=o(u);return!!(c&&a(c)&&fp(u,c))&&LA(t,n,s.getNode(),r,e,c)},jA=function(t,e){return zA(t,e)},FA=function(t){return No(gn.fromDom(t))||Ao(gn.fromDom(t))},$A=Vi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),HA=function(t,e){var n=e.getNode(!1===t),r=t?"after":"before";return zr(n)&&n.getAttribute("data-mce-caret")===r},VA=function(t,e,n,r){var i=function(e){return Mo(gn.fromDom(e))&&!Jh(n,r,t)};return ap(!e,n).fold((function(){return ap(e,r).fold(x,i)}),i)},UA=function(t,e,n,r){var i=r.getNode(!1===e);return YT(gn.fromDom(t),gn.fromDom(n.getNode())).map((function(t){return Ta(t)?$A.remove(t.dom):$A.moveToElement(i)})).orThunk((function(){return O.some($A.moveToElement(i))}))},qA=function(t,e,n){return Np(e,t,n).bind((function(r){return FA(r.getNode())||VA(t,e,n,r)?O.none():e&&ei(r.getNode())||!1===e&&ei(r.getNode(!0))?UA(t,e,n,r):e&&pw(n)||!1===e&&hw(n)?O.some($A.moveToPosition(r)):O.none()}))},WA=function(t,e){return t&&ei(e.nextSibling)?O.some($A.moveToElement(e.nextSibling)):!1===t&&ei(e.previousSibling)?O.some($A.moveToElement(e.previousSibling)):O.none()},KA=function(t,e,n){return n.fold((function(t){return O.some($A.remove(t))}),(function(t){return O.some($A.moveToElement(t))}),(function(n){return Jh(e,n,t)?O.none():O.some($A.moveToPosition(n))}))},GA=function(t,e,n){return HA(e,n)?WA(e,n.getNode(!1===e)).fold((function(){return qA(t,e,n)}),O.some):qA(t,e,n).bind((function(e){return KA(t,n,e)}))},YA=function(t,e,n){var r=op(e?1:-1,t,n),i=Cf.fromRangeStart(r),o=gn.fromDom(t);return!1===e&&pw(i)?O.some($A.remove(i.getNode(!0))):e&&hw(i)?O.some($A.remove(i.getNode())):!1===e&&hw(i)&&Pw(o,i)?Iw(o,i).map((function(t){return $A.remove(t.getNode())})):e&&pw(i)&&Rw(o,i)?Bw(o,i).map((function(t){return $A.remove(t.getNode())})):GA(t,e,i)},XA=function(t,e){return function(n){return t._selectionOverrides.hideFakeCaret(),O_(t,e,gn.fromDom(n)),!0}},ZA=function(t,e){return function(n){var r=e?Cf.before(n):Cf.after(n);return t.selection.setRng(r.toRange()),!0}},JA=function(t){return function(e){return t.selection.setRng(e.toRange()),!0}},QA=function(t,e){return O.from(Mg(t.getBody(),e))},tD=function(t,e){var n=t.selection.getNode();return QA(t,n).filter(ei).fold((function(){return YA(t.getBody(),e,t.selection.getRng()).exists((function(n){return n.fold(XA(t,e),ZA(t,e),JA(t))}))}),C)},eD=function(t){Z(pl(t,".mce-offscreen-selection"),_r)},nD=function(t,e){var n=t.selection.getNode();if(ei(n)){var r=QA(t,n.parentNode).filter(ei);return r.fold((function(){return eD(gn.fromDom(t.getBody())),O_(t,e,gn.fromDom(t.selection.getNode())),ZT(t),!0}),(function(){return!0}))}return!1},rD=function(t){var e=t.dom,n=t.selection,r=Mg(t.getBody(),n.getNode());if(ti(r)&&e.isBlock(r)&&e.isEmpty(r)){var i=e.create("br",{"data-mce-bogus":"1"});e.setHTML(r,""),r.appendChild(i),n.setRng(Cf.before(i).toRange())}return!0},iD=function(t,e){return t.selection.isCollapsed()?tD(t,e):nD(t,e)},oD=function(t,e){var n=Cf.fromRangeStart(t.selection.getRng());return Np(e,t.getBody(),n).filter((function(t){return e?sw(t):uw(t)})).bind((function(t){return O.from(Qh(e?0:-1,t))})).exists((function(e){return t.selection.select(e),!0}))},aD=function(t,e){return!!t.selection.isCollapsed()&&oD(t,e)},sD=Gr,uD=function(t){return sD(t)&&t.data[0]===jo},cD=function(t){return sD(t)&&t.data[t.data.length-1]===jo},lD=function(t){return t.ownerDocument.createTextNode(jo)},fD=function(t){if(sD(t.previousSibling))return cD(t.previousSibling)||t.previousSibling.appendData(jo),t.previousSibling;if(sD(t))return uD(t)||t.insertData(0,jo),t;var e=lD(t);return t.parentNode.insertBefore(e,t),e},dD=function(t){if(sD(t.nextSibling))return uD(t.nextSibling)||t.nextSibling.insertData(0,jo),t.nextSibling;if(sD(t))return cD(t)||t.appendData(jo),t;var e=lD(t);return t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e),e},hD=function(t,e){return t?fD(e):dD(e)},pD=b(hD,!0),mD=b(hD,!1),gD=function(t,e){return Gr(t.container())?hD(e,t.container()):hD(e,t.getNode())},vD=function(t,e){var n=e.get();return n&&t.container()===n&&qo(n)},bD=function(t,e){return e.fold((function(e){Oh(t.get());var n=pD(e);return t.set(n),O.some(Cf(n,n.length-1))}),(function(e){return zp(e).map((function(e){if(vD(e,t))return Cf(t.get(),1);Oh(t.get());var n=gD(e,!0);return t.set(n),Cf(n,1)}))}),(function(e){return jp(e).map((function(e){if(vD(e,t))return Cf(t.get(),t.get().length-1);Oh(t.get());var n=gD(e,!1);return t.set(n),Cf(n,n.length-1)}))}),(function(e){Oh(t.get());var n=mD(e);return t.set(n),O.some(Cf(n,1))}))},yD=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].apply(null,e);if(r.isSome())return r}return O.none()},wD=Vi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),_D=function(t,e){var n=Zh(e,t);return n||t},xD=function(t,e,n){var r=WT(n),i=_D(e,r.container());return HT(t,i,r).fold((function(){return Bp(i,r).bind(b(HT,t,i)).map((function(t){return wD.before(t)}))}),O.none)},CD=function(t,e){return null===Hp(t,e)},SD=function(t,e,n){return HT(t,e,n).filter(b(CD,e))},kD=function(t,e,n){var r=KT(n);return SD(t,e,r).bind((function(t){var e=Lp(t,r);return e.isNone()?O.some(wD.start(t)):O.none()}))},MD=function(t,e,n){var r=WT(n);return SD(t,e,r).bind((function(t){var e=Bp(t,r);return e.isNone()?O.some(wD.end(t)):O.none()}))},ED=function(t,e,n){var r=KT(n),i=_D(e,r.container());return HT(t,i,r).fold((function(){return Lp(i,r).bind(b(HT,t,i)).map((function(t){return wD.after(t)}))}),O.none)},OD=function(t){return!1===FT(AD(t))},TD=function(t,e,n){var r=yD([xD,kD,MD,ED],[t,e,n]);return r.filter(OD)},AD=function(t){return t.fold(v,v,v,v)},DD=function(t){return t.fold(g("before"),g("start"),g("end"),g("after"))},ND=function(t){return t.fold(wD.before,wD.before,wD.after,wD.after)},RD=function(t){return t.fold(wD.start,wD.start,wD.end,wD.end)},PD=function(t,e){return DD(t)===DD(e)&&AD(t)===AD(e)},ID=function(t,e,n,r,i,o){return Ll(HT(e,n,r),HT(e,n,i),(function(e,r){return e!==r&&VT(n,e,r)?wD.after(t?e:r):o})).getOr(o)},BD=function(t,e){return t.fold(C,(function(t){return!PD(t,e)}))},LD=function(t,e,n,r,i){var o=qT(t,i),a=Np(t,n,o).map(b(qT,t)),s=a.fold((function(){return r.map(ND)}),(function(i){return TD(e,n,i).map(b(ID,t,e,n,o,i)).filter(b(BD,r))}));return s.filter(OD)},zD=function(t,e){return t?e.fold(p(O.some,wD.start),O.none,p(O.some,wD.after),O.none):e.fold(O.none,p(O.some,wD.before),O.none,p(O.some,wD.end))},jD=function(t,e,n,r){var i=qT(t,r),o=TD(e,n,i);return TD(e,n,i).bind(b(zD,t)).orThunk((function(){return LD(t,e,n,o,r)}))},FD=(b(jD,!1),b(jD,!0),function(t){return $(t.selection.getSel().modify)}),$D=function(t,e,n){var r=t?1:-1;return e.setRng(Cf(n.container(),n.offset()+r).toRange()),e.getSel().modify("move",t?"forward":"backward","word"),!0},HD=function(t,e){var n=e.selection.getRng(),r=t?Cf.fromRangeEnd(n):Cf.fromRangeStart(n);return!!FD(e)&&(t&&Yo(r)?$D(!0,e.selection,r):!(t||!Xo(r))&&$D(!1,e.selection,r))},VD=function(t,e){var n=t.dom.createRng();n.setStart(e.container(),e.offset()),n.setEnd(e.container(),e.offset()),t.selection.setRng(n)},UD=function(t,e){t?e.setAttribute("data-mce-selected","inline-boundary"):e.removeAttribute("data-mce-selected")},qD=function(t,e,n){return bD(e,n).map((function(e){return VD(t,e),n}))},WD=function(t,e,n){var r=t.getBody(),i=Cf.fromRangeStart(t.selection.getRng()),o=b(jT,t),a=jD(n,o,r,i);return a.bind((function(n){return qD(t,e,n)}))},KD=function(t,e,n){var r=X(pl(gn.fromDom(e.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(t){return t.dom})),i=tt(r,t),o=tt(n,t);Z(lt(i,o),b(UD,!1)),Z(lt(o,i),b(UD,!0))},GD=function(t,e){if(t.selection.isCollapsed()&&!0!==t.composing&&e.get()){var n=Cf.fromRangeStart(t.selection.getRng());Cf.isTextPosition(n)&&!1===UT(n)&&(VD(t,Eh(e.get(),n)),e.set(null))}},YD=function(t,e,n,r){if(e.selection.isCollapsed()){var i=tt(r,t);Z(i,(function(r){var i=Cf.fromRangeStart(e.selection.getRng());TD(t,e.getBody(),i).bind((function(t){return qD(e,n,t)}))}))}},XD=function(t,e,n){return!!Gd(t)&&WD(t,e,n).isSome()},ZD=function(t,e,n){return!!Gd(e)&&HD(t,e)},JD=function(t){var e=zc(null),n=b(jT,t);return t.on("NodeChange",(function(r){!Gd(t)||Xe.browser.isIE()&&r.initial||(KD(n,t.dom,r.parents),GD(t,e),YD(n,t,e,r.parents))})),e},QD=b(ZD,!0),tN=b(ZD,!1),eN=function(t,e){var n=document.createRange();return n.setStart(t.container(),t.offset()),n.setEnd(e.container(),e.offset()),n},nN=function(t){return Ll(zp(t),jp(t),(function(e,n){var r=qT(!0,e),i=qT(!1,n);return Bp(t,r).forall((function(t){return t.isEqual(i)}))})).getOr(!0)},rN=function(t,e){return function(n){return bD(e,n).exists((function(e){return VD(t,e),!0}))}},iN=function(t,e,n,r){var i=t.getBody(),o=b(jT,t);t.undoManager.ignore((function(){t.selection.setRng(eN(n,r)),t.execCommand("Delete"),TD(o,i,Cf.fromRangeStart(t.selection.getRng())).map(RD).map(rN(t,e))})),t.nodeChanged()},oN=function(t,e){var n=Zh(e,t);return n||t},aN=function(t,e,n,r){var i=oN(t.getBody(),r.container()),o=b(jT,t),a=TD(o,i,r);return a.bind((function(t){return n?t.fold(g(O.some(RD(t))),O.none,g(O.some(ND(t))),O.none):t.fold(O.none,g(O.some(ND(t))),O.none,g(O.some(RD(t))))})).map(rN(t,e)).getOrThunk((function(){var s=Rp(n,i,r),u=s.bind((function(t){return TD(o,i,t)}));return Ll(a,u,(function(){return HT(o,i,r).exists((function(e){return!!nN(e)&&(O_(t,n,gn.fromDom(e)),!0)}))})).orThunk((function(){return u.bind((function(i){return s.map((function(i){return n?iN(t,e,r,i):iN(t,e,i,r),!0}))}))})).getOr(!1)}))},sN=function(t,e,n){if(t.selection.isCollapsed()&&Gd(t)){var r=Cf.fromRangeStart(t.selection.getRng());return aN(t,e,n,r)}return!1},uN=function(t,e){var n=xw(e,t);return ot(n,So).fold(g(n),(function(t){return n.slice(0,t)}))},cN=function(t){return 1===Jn(t).length},lN=function(t,e,n,r){var i=b(NC,e),o=X(tt(r,i),(function(t){return t.dom}));if(0===o.length)O_(e,t,n);else{var a=DC(n.dom,o);e.selection.setRng(a.toRange())}},fN=function(t,e){var n=gn.fromDom(t.getBody()),r=gn.fromDom(t.selection.getStart()),i=tt(uN(n,r),cN);return mt(i).exists((function(n){var r=Cf.fromRangeStart(t.selection.getRng());return!(!JT(e,r,n.dom)||RC(n))&&(lN(e,t,n,i),!0)}))},dN=function(t,e){return!!t.selection.isCollapsed()&&fN(t,e)},hN=function(t,e,n){return t._selectionOverrides.hideFakeCaret(),O_(t,e,gn.fromDom(n)),!0},pN=function(t,e){var n=e?cw:lw,r=e?xf.Forwards:xf.Backwards,i=sp(r,t.getBody(),t.selection.getRng());return n(i)?hN(t,e,i.getNode(!e)):O.from(qT(e,i)).filter((function(t){return n(t)&&fp(i,t)})).exists((function(n){return hN(t,e,n.getNode(!e))}))},mN=function(t,e){var n=t.selection.getNode();return!!ri(n)&&hN(t,e,n)},gN=function(t,e){return t.selection.isCollapsed()?pN(t,e):mN(t,e)},vN=function(t){return Gi(t,(function(t){return ti(t.dom)||ei(t.dom)})).exists((function(t){return ti(t.dom)}))},bN=function(t){var e=parseInt(t,10);return isNaN(e)?0:e},yN=function(t,e){var n=t||ko(e)?"margin":"padding",r="rtl"===mi(e,"direction")?"-right":"-left";return n+r},wN=function(t,e,n,r,i,o){var a=yN(n,gn.fromDom(o));if("outdent"===e){var s=Math.max(0,bN(o.style[a])-r);t.setStyle(o,a,s?s+i:"")}else{s=bN(o.style[a])+r+i;t.setStyle(o,a,s)}},_N=function(t,e){return ut(e,(function(e){var n=yN(Bd(t),e),r=vi(e,n).map(bN).getOr(0),i=t.dom.getContentEditable(e.dom);return"false"!==i&&r>0}))},xN=function(t){var e=kN(t);return!t.mode.isReadOnly()&&(e.length>1||_N(t,e))},CN=function(t){return To(t)||Ao(t)},SN=function(t){return qn(t).map(CN).getOr(!1)},kN=function(t){return tt(X(t.selection.getSelectedBlocks(),gn.fromDom),(function(t){return!CN(t)&&!SN(t)&&vN(t)}))},MN=function(t,e){var n=t.dom,r=t.selection,i=t.formatter,o=Ld(t),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),u=Bd(t),c=pd(t);t.queryCommandState("InsertUnorderedList")||t.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),Z(kN(t),(function(t){wN(n,e,u,s,a,t.dom)}))},EN=function(t,e){if(t.selection.isCollapsed()&&xN(t)){var n=t.dom,r=t.selection.getRng(),i=Cf.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&Ew(gn.fromDom(o),i))return MN(t,"outdent"),!0}return!1},ON=function(t,e){t.getDoc().execCommand(e,!1,null)},TN=function(t,e){EN(t)||iD(t,!1)||jA(t,!1)||sN(t,e,!1)||yA(t,!1)||vx(t)||aD(t,!1)||gN(t,!1)||MA(t)||dN(t,!1)||(ON(t,"Delete"),ZT(t))},AN=function(t,e){iD(t,!0)||jA(t,!0)||sN(t,e,!0)||yA(t,!0)||vx(t)||aD(t,!0)||gN(t,!0)||MA(t)||dN(t,!0)||ON(t,"ForwardDelete")},DN=function(t,e){t.addCommand("delete",(function(){TN(t,e)})),t.addCommand("forwardDelete",(function(){AN(t,e)}))},NN=5,RN=400,PN=function(t){return void 0===t.touches||1!==t.touches.length?O.none():O.some(t.touches[0])},IN=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>NN||r>NN},BN=function(t){var e=zc(O.none()),n=zc(!1),r=el((function(e){t.fire("longpress",Ht(Ht({},e),{type:"longpress"})),n.set(!0)}),RN);t.on("touchstart",(function(t){PN(t).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:t.target};r.throttle(t),n.set(!1),e.set(O.some(o))}))}),!0),t.on("touchmove",(function(i){r.cancel(),PN(i).each((function(r){e.get().each((function(i){IN(r,i)&&(e.set(O.none()),n.set(!1),t.fire("longpresscancel"))}))}))}),!0),t.on("touchend touchcancel",(function(i){r.cancel(),"touchcancel"!==i.type&&e.get().filter((function(t){return t.target.isEqualNode(i.target)})).each((function(){n.get()?i.preventDefault():t.fire("tap",Ht(Ht({},i),{type:"tap"}))}))}),!0)},LN=function(t,e){return t.hasOwnProperty(e.nodeName)},zN=function(t,e){return!!Gr(e)||!!zr(e)&&(!LN(t,e)&&!cm(e))},jN=function(t,e,n){return Y(_w(gn.fromDom(n),gn.fromDom(e)),(function(e){return LN(t,e.dom)}))},FN=function(t,e){if(Gr(e)){if(0===e.nodeValue.length)return!0;if(/^\s+$/.test(e.nodeValue)&&(!e.nextSibling||LN(t,e.nextSibling)))return!0}return!1},$N=function(t){var e,n,r,i=t.dom,o=t.selection,a=t.schema,s=a.getBlockElements(),u=o.getStart(),c=t.getBody(),l=pd(t);if(u&&zr(u)&&l){var f=c.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!jN(s,c,u)){var d=o.getRng(),h=d.startContainer,p=d.startOffset,m=d.endContainer,g=d.endOffset,v=Jb(t);u=c.firstChild;while(u)if(zN(s,u)){if(FN(s,u)){n=u,u=u.nextSibling,i.remove(n);continue}e||(e=i.create(l,md(t)),u.parentNode.insertBefore(e,u),r=!0),n=u,u=u.nextSibling,e.appendChild(n)}else e=null,u=u.nextSibling;r&&v&&(d.setStart(h,p),d.setEnd(m,g),o.setRng(d),t.nodeChanged())}}},HN=function(t){pd(t)&&t.on("NodeChange",b($N,t))},VN=function(t){return Ji(gn.fromDom(t.getBody()),"*[data-mce-caret]").fold(g(null),(function(t){return t.dom}))},UN=function(t){t.selection.setRng(t.selection.getRng())},qN=function(t,e){e.hasAttribute("data-mce-caret")&&(na(e),UN(t),t.selection.scrollIntoView(e))},WN=function(t,e){var n=VN(t);if(n)return"compositionstart"===e.type?(e.preventDefault(),e.stopPropagation(),void qN(t,n)):void(Ko(n)&&(qN(t,n),t.undoManager.add()))},KN=function(t){t.on("keyup compositionstart",b(WN,t))};(function(t){t[t["Br"]=0]="Br",t[t["Block"]=1]="Block",t[t["Wrap"]=2]="Wrap",t[t["Eol"]=3]="Eol"})(vT||(vT={}));var GN,YN=function(t,e){return t===xf.Backwards?ct(e):e},XN=function(t,e,n){return t===xf.Forwards?e.next(n):e.prev(n)},ZN=function(t,e,n,r){return Jr(r.getNode(e===xf.Forwards))?vT.Br:!1===Jh(n,r)?vT.Block:vT.Wrap},JN=function(t,e,n,r){var i,o=Sp(n),a=r,s=[];while(a){if(i=XN(e,o,a),!i)break;if(Jr(i.getNode(!1)))return e===xf.Forwards?{positions:YN(e,s).concat([i]),breakType:vT.Br,breakAt:O.some(i)}:{positions:YN(e,s),breakType:vT.Br,breakAt:O.some(i)};if(i.isVisible()){if(t(a,i)){var u=ZN(n,e,a,i);return{positions:YN(e,s),breakType:u,breakAt:O.some(i)}}s.push(i),a=i}else a=i}return{positions:YN(e,s),breakType:vT.Eol,breakAt:O.none()}},QN=function(t,e,n,r){return e(n,r).breakAt.map((function(r){var i=e(n,r).positions;return t===xf.Backwards?i.concat(r):[r].concat(i)})).getOr([])},tR=function(t,e){return nt(t,(function(t,n){return t.fold((function(){return O.some(n)}),(function(r){return Ll(pt(r.getClientRects()),pt(n.getClientRects()),(function(t,i){var o=Math.abs(e-t.left),a=Math.abs(e-i.left);return a<=o?n:r})).or(t)}))}),O.none())},eR=function(t,e){return pt(e.getClientRects()).bind((function(e){return tR(t,e.left)}))},nR=b(JN,_f.isAbove,-1),rR=b(JN,_f.isBelow,1),iR=function(t,e){return nR(t,e).breakAt.isNone()},oR=function(t,e){return rR(t,e).breakAt.isNone()},aR=b(QN,-1,nR),sR=b(QN,1,rR),uR=function(t){return zp(t).map((function(e){return[e].concat(rR(t,e).positions)})).getOr([])},cR=function(t){return jp(t).map((function(e){return nR(t,e).positions.concat(e)})).getOr([])},lR=function(t){var e=function(e){return X(e,(function(e){return e=$l(e),e.node=t,e}))};if(zr(t))return e(t.getClientRects());if(Gr(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}},fR=function(t){return st(t,lR)};(function(t){t[t["Up"]=-1]="Up",t[t["Down"]=1]="Down"})(GN||(GN={}));var dR,hR,pR=function(t,e,n,r){while(r=Xh(r,t,ba,e))if(n(r))return},mR=function(t,e,n,r,i,o){var a=0,s=[],u=function(r){var o,u,l;for(l=fR([r]),-1===t&&(l=l.reverse()),o=0;o<l.length;o++)if(u=l[o],!n(u,c)){if(s.length>0&&e(u,$t(s))&&a++,u.line=a,i(u))return!0;s.push(u)}},c=$t(o.getClientRects());if(!c)return s;var l=o.getNode();return u(l),pR(t,r,u,l),s},gR=function(t,e){return e.line>t},vR=function(t,e){return e.line===t},bR=b(mR,GN.Up,ql,Wl),yR=b(mR,GN.Down,Wl,ql),wR=function(t,e,n,r){var i,o,a,s,u,c=Sp(e),l=[],f=0,d=function(t){return $t(t.getClientRects())};1===t?(i=c.next,o=Wl,a=ql,s=Cf.after(r)):(i=c.prev,o=ql,a=Wl,s=Cf.before(r));var h=d(s);do{if(s.isVisible()&&(u=d(s),!a(u,h))){if(l.length>0&&o(u,$t(l))&&f++,u=$l(u),u.position=s,u.line=f,n(u))return l;l.push(u)}}while(s=i(s));return l},_R=function(t){return function(e){return gR(t,e)}},xR=function(t){return function(e){return vR(t,e)}},CR=ei,SR=Xh,kR=function(t,e){return Math.abs(t.left-e)},MR=function(t,e){return Math.abs(t.right-e)},ER=function(t,e){return t>=e.left&&t<=e.right},OR=function(t,e){return t>=e.top&&t<=e.bottom},TR=function(t,e){return jt(t,(function(t,n){var r=Math.min(kR(t,e),MR(t,e)),i=Math.min(kR(n,e),MR(n,e));return ER(e,n)?n:ER(e,t)?t:i===r&&CR(n.node)||i<r?n:t}))},AR=function(t,e,n,r,i){var o=SR(r,t,ba,e,!i);do{if(!o||n(o))return}while(o=SR(o,t,ba,e))},DR=function(t,e,n){void 0===n&&(n=!0);var r=[],i=function(t,n){var i=tt(fR([n]),(function(n){return!t(n,e)}));return r=r.concat(i),0===i.length};return r.push(e),AR(GN.Up,t,b(i,ql),e.node,n),AR(GN.Down,t,b(i,Wl),e.node,n),r},NR=function(t){return tt(gt(t.getElementsByTagName("*")),jh)},RR=function(t,e){return{node:t.node,before:kR(t,e)<MR(t,e)}},PR=function(t,e,n){var r=fR(NR(t)),i=tt(r,b(OR,n)),o=TR(i,e);if(o){var a=!qr(o.node)&&!ri(o.node);if(o=TR(DR(t,o,a),e),o&&jh(o.node))return RR(o,e)}return null},IR=function(t,e){t.selection.setRng(e),Hv(t,t.selection.getRng())},BR=function(t,e,n){return O.some(RA(t,e,n))},LR=function(t,e,n,r,i,o){var a=e===xf.Forwards,s=Sp(t.getBody()),u=b(lp,a?s.next:s.prev),c=a?r:i;if(!n.collapsed){var l=Gl(n);if(o(l))return TA(e,t,l,e===xf.Backwards,!1)}var f=sp(e,t.getBody(),n);if(c(f))return DA(t,f.getNode(!a));var d=qT(a,u(f)),h=ra(n);if(!d)return h?O.some(n):O.none();if(c(d))return TA(e,t,d.getNode(!a),a,!1);var p=u(d);return p&&c(p)&&fp(d,p)?TA(e,t,p.getNode(!a),a,!1):h?BR(t,d.toRange(),!1):O.none()},zR=function(t,e,n,r,i,o){var a=sp(e,t.getBody(),n),s=$t(a.getClientRects()),u=e===GN.Down;if(!s)return O.none();var c,l=u?yR:bR,f=l(t.getBody(),_R(1),a),d=tt(f,xR(1)),h=s.left,p=TR(d,h);if(p&&o(p.node)){var m=Math.abs(h-p.left),g=Math.abs(h-p.right);return TA(e,t,p.node,m<g,!1)}if(c=r(a)?a.getNode():i(a)?a.getNode(!0):Gl(n),c){var v=wR(e,t.getBody(),_R(1),c),b=TR(tt(v,xR(1)),h);if(b)return BR(t,b.position.toRange(),!1);if(b=$t(tt(v,xR(0))),b)return BR(t,b.position.toRange(),!1)}return 0===d.length?jR(t,u).filter(u?i:r).map((function(e){return RA(t,e.toRange(),!1)})):O.none()},jR=function(t,e){var n=t.selection.getRng(),r=t.getBody();if(e){var i=Cf.fromRangeEnd(n),o=rR(r,i);return mt(o.positions)}i=Cf.fromRangeStart(n),o=nR(r,i);return pt(o.positions)},FR=function(t,e,n){return jR(t,e).filter(n).exists((function(e){return t.selection.setRng(e.toRange()),!0}))},$R=ei,HR=function(t,e,n){return LR(e,t,n,hw,pw,$R)},VR=function(t,e,n){var r=function(t){return hw(t)||fw(t)},i=function(t){return pw(t)||dw(t)};return zR(e,t,n,r,i,$R)},UR=function(t){var e=t.dom.create(pd(t));return(!Xe.ie||Xe.ie>=11)&&(e.innerHTML='<br data-mce-bogus="1">'),e},qR=function(t,e,n){var r=Sp(t.getBody()),i=b(lp,1===e?r.next:r.prev);if(n.collapsed&&ah(t)){var o=t.dom.getParent(n.startContainer,"PRE");if(!o)return;var a=i(Cf.fromRangeStart(n));if(!a){var s=UR(t);1===e?t.$(o).after(s):t.$(o).before(s),t.selection.select(s,!0),t.selection.collapse()}}},WR=function(t,e){var n=e?xf.Forwards:xf.Backwards,r=t.selection.getRng();return HR(n,t,r).orThunk((function(){return qR(t,n,r),O.none()}))},KR=function(t,e){var n=e?1:-1,r=t.selection.getRng();return VR(n,t,r).orThunk((function(){return qR(t,n,r),O.none()}))},GR=function(t,e){return WR(t,e).exists((function(e){return IR(t,e),!0}))},YR=function(t,e){return KR(t,e).exists((function(e){return IR(t,e),!0}))},XR=function(t,e){var n=e?pw:hw;return FR(t,e,n)},ZR=function(t){return G(["figcaption"],Rn(t))},JR=function(t){var e=document.createRange();return e.setStartBefore(t.dom),e.setEndBefore(t.dom),e},QR=function(t,e,n){n?gr(t,e):mr(t,e)},tP=function(t,e){var n=gn.fromTag("br");return QR(t,n,e),JR(n)},eP=function(t,e,n,r){var i=gn.fromTag(n),o=gn.fromTag("br");return si(i,r),gr(i,o),QR(t,i,e),JR(o)},nP=function(t,e,n,r){return""===e?tP(t,r):eP(t,r,e,n)},rP=function(t,e){var n=b(Tn,e);return Gi(gn.fromDom(t.container()),So,n).filter(ZR)},iP=function(t,e,n){return e?oR(t.dom,n):iR(t.dom,n)},oP=function(t,e){var n=gn.fromDom(t.getBody()),r=Cf.fromRangeStart(t.selection.getRng()),i=pd(t),o=md(t);return rP(r,n).exists((function(){if(iP(n,e,r)){var a=nP(n,i,o,e);return t.selection.setRng(a),!0}return!1}))},aP=function(t,e){return!!t.selection.isCollapsed()&&oP(t,e)},sP=function(t){return X(t,(function(t){return Ht({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:h},t)}))},uP=function(t,e){return e.keyCode===t.keyCode&&e.shiftKey===t.shiftKey&&e.altKey===t.altKey&&e.ctrlKey===t.ctrlKey&&e.metaKey===t.metaKey},cP=function(t,e){return st(sP(t),(function(t){return uP(t,e)?[t]:[]}))},lP=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(null,e)}},fP=function(t,e){return it(cP(t,e),(function(t){return t.action()}))},dP=function(t,e){var n=e?xf.Forwards:xf.Backwards,r=t.selection.getRng();return LR(t,n,r,cw,lw,ri).exists((function(e){return IR(t,e),!0}))},hP=function(t,e){var n=e?1:-1,r=t.selection.getRng();return zR(t,n,r,cw,lw,ri).exists((function(e){return IR(t,e),!0}))},pP=function(t,e){var n=e?lw:cw;return FR(t,e,n)},mP=function(t,e){return{left:t.left-e,top:t.top-e,right:t.right+2*e,bottom:t.bottom+2*e,width:t.width+e,height:t.height+e}},gP=function(t,e){return st(e,(function(e){var n=mP($l(e.getBoundingClientRect()),-1);return[{x:n.left,y:t(n),cell:e},{x:n.right,y:t(n),cell:e}]}))},vP=function(t,e,n){return nt(t,(function(t,r){return t.fold((function(){return O.some(r)}),(function(t){var i=Math.sqrt(Math.abs(t.x-e)+Math.abs(t.y-n)),o=Math.sqrt(Math.abs(r.x-e)+Math.abs(r.y-n));return O.some(o<i?r:t)}))}),O.none())},bP=function(t,e,n,r,i){var o=pl(gn.fromDom(n),"td,th,caption").map((function(t){return t.dom})),a=tt(gP(t,o),(function(t){return e(t,i)}));return vP(a,r,i).map((function(t){return t.cell}))},yP=function(t){return t.bottom},wP=function(t){return t.top},_P=function(t,e){return t.y<e},xP=function(t,e){return t.y>e},CP=b(bP,yP,_P),SP=b(bP,wP,xP),kP=function(t,e){return pt(e.getClientRects()).bind((function(e){return CP(t,e.left,e.top)})).bind((function(t){return eR(cR(t),e)}))},MP=function(t,e){return mt(e.getClientRects()).bind((function(e){return SP(t,e.left,e.top)})).bind((function(t){return eR(uR(t),e)}))},EP=function(t,e,n){return n.breakAt.exists((function(n){return t(e,n).breakAt.isSome()}))},OP=function(t){return t.breakType===vT.Wrap&&0===t.positions.length},TP=function(t){return t.breakType===vT.Br&&1===t.positions.length},AP=function(t,e,n){var r=t(e,n);return OP(r)||!Jr(n.getNode())&&TP(r)?!EP(t,e,r):r.breakAt.isNone()},DP=b(AP,nR),NP=b(AP,rR),RP=function(t,e,n){var r=Cf.fromRangeStart(e);return Ip(!t,n).exists((function(t){return t.isEqual(r)}))},PP=function(t,e,n,r){var i=t.selection.getRng(),o=e?1:-1;return!(!Lh()||!RP(e,i,n))&&(TA(o,t,n,!e,!1).each((function(e){IR(t,e)})),!0)},IP=function(t,e,n){return kP(e,n).orThunk((function(){return pt(n.getClientRects()).bind((function(n){return tR(aR(t,Cf.before(e)),n.left)}))})).getOr(Cf.before(e))},BP=function(t,e,n){return MP(e,n).orThunk((function(){return pt(n.getClientRects()).bind((function(n){return tR(sR(t,Cf.after(e)),n.left)}))})).getOr(Cf.after(e))},LP=function(t,e){var n=e.getNode(t);return zr(n)&&"TABLE"===n.nodeName?O.some(n):O.none()},zP=function(t,e,n,r){var i=pd(e);i?e.undoManager.transact((function(){var r=gn.fromTag(i);si(r,md(e)),gr(r,gn.fromTag("br")),t?pr(gn.fromDom(n),r):hr(gn.fromDom(n),r);var o=e.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),IR(e,o)})):IR(e,r.toRange())},jP=function(t,e,n){var r=LP(!!e,n),i=!1===e;r.fold((function(){return IR(t,n.toRange())}),(function(r){return Ip(i,t.getBody()).filter((function(t){return t.isEqual(n)})).fold((function(){return IR(t,n.toRange())}),(function(i){return zP(e,t,r,n)}))}))},FP=function(t,e,n,r){var i=t.selection.getRng(),o=Cf.fromRangeStart(i),a=t.getBody();if(!e&&DP(r,o)){var s=IP(a,n,o);return jP(t,e,s),!0}if(e&&NP(r,o)){s=BP(a,n,o);return jP(t,e,s),!0}return!1},$P=function(t,e,n){return O.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind((function(r){return O.from(t.dom.getParent(r,"table")).map((function(i){return n(t,e,i,r)}))})).getOr(!1)},HP=function(t,e){return $P(t,e,PP)},VP=function(t,e){return $P(t,e,FP)},UP=function(t,e,n){var r=$e().os;fP([{keyCode:Fg.RIGHT,action:lP(GR,t,!0)},{keyCode:Fg.LEFT,action:lP(GR,t,!1)},{keyCode:Fg.UP,action:lP(YR,t,!1)},{keyCode:Fg.DOWN,action:lP(YR,t,!0)},{keyCode:Fg.RIGHT,action:lP(HP,t,!0)},{keyCode:Fg.LEFT,action:lP(HP,t,!1)},{keyCode:Fg.UP,action:lP(VP,t,!1)},{keyCode:Fg.DOWN,action:lP(VP,t,!0)},{keyCode:Fg.RIGHT,action:lP(dP,t,!0)},{keyCode:Fg.LEFT,action:lP(dP,t,!1)},{keyCode:Fg.UP,action:lP(hP,t,!1)},{keyCode:Fg.DOWN,action:lP(hP,t,!0)},{keyCode:Fg.RIGHT,action:lP(XD,t,e,!0)},{keyCode:Fg.LEFT,action:lP(XD,t,e,!1)},{keyCode:Fg.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:lP(QD,t,e)},{keyCode:Fg.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:lP(tN,t,e)},{keyCode:Fg.UP,action:lP(aP,t,!1)},{keyCode:Fg.DOWN,action:lP(aP,t,!0)}],n).each((function(t){n.preventDefault()}))},qP=function(t,e){t.on("keydown",(function(n){!1===n.isDefaultPrevented()&&UP(t,e,n)}))},WP=function(t,e,n){fP([{keyCode:Fg.BACKSPACE,action:lP(EN,t,!1)},{keyCode:Fg.BACKSPACE,action:lP(iD,t,!1)},{keyCode:Fg.DELETE,action:lP(iD,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(jA,t,!1)},{keyCode:Fg.DELETE,action:lP(jA,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(sN,t,e,!1)},{keyCode:Fg.DELETE,action:lP(sN,t,e,!0)},{keyCode:Fg.BACKSPACE,action:lP(vx,t,!1)},{keyCode:Fg.DELETE,action:lP(vx,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(aD,t,!1)},{keyCode:Fg.DELETE,action:lP(aD,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(gN,t,!1)},{keyCode:Fg.DELETE,action:lP(gN,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(MA,t,!1)},{keyCode:Fg.DELETE,action:lP(MA,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(yA,t,!1)},{keyCode:Fg.DELETE,action:lP(yA,t,!0)},{keyCode:Fg.BACKSPACE,action:lP(dN,t,!1)},{keyCode:Fg.DELETE,action:lP(dN,t,!0)}],n).each((function(t){n.preventDefault()}))},KP=function(t,e){fP([{keyCode:Fg.BACKSPACE,action:lP(rD,t)},{keyCode:Fg.DELETE,action:lP(rD,t)}],e)},GP=function(t,e){t.on("keydown",(function(n){!1===n.isDefaultPrevented()&&WP(t,e,n)})),t.on("keyup",(function(e){!1===e.isDefaultPrevented()&&KP(t,e)}))},YP=function(t){while(t){if(1===t.nodeType||3===t.nodeType&&t.data&&/[\r\n\s]/.test(t.data))return t;t=t.nextSibling}},XP=function(t,e){var n,r=e,i=t.dom,o=t.schema.getMoveCaretBeforeOnEnterElements();if(e){if(/^(LI|DT|DD)$/.test(e.nodeName)){var a=YP(e.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&e.insertBefore(i.doc.createTextNode(Bo),e.firstChild)}var s=i.createRng();if(e.normalize(),e.hasChildNodes()){var u=new ho(e,e);while(n=u.current()){if(Gr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=u.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else Jr(e)?e.nextSibling&&i.isBlock(e.nextSibling)?(s.setStartBefore(e),s.setEndBefore(e)):(s.setStartAfter(e),s.setEndAfter(e)):(s.setStart(e,0),s.setEnd(e,0));t.selection.setRng(s),Hv(t,s)}},ZP=function(t,e){var n,r,i=t.getRoot();n=e;while(n!==i&&"false"!==t.getContentEditable(n))"true"===t.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},JP=function(t){return O.from(t.dom.getParent(t.selection.getStart(!0),t.dom.isBlock))},QP=function(t){return JP(t).fold(g(""),(function(t){return t.nodeName.toUpperCase()}))},tI=function(t){return JP(t).filter((function(t){return Ao(gn.fromDom(t))})).isSome()},eI=function(t,e){return t.firstChild&&t.firstChild.nodeName===e},nI=function(t,e){return t&&t.parentNode&&t.parentNode.nodeName===e},rI=function(t){return t&&/^(OL|UL|LI)$/.test(t.nodeName)},iI=function(t){return rI(t)&&rI(t.parentNode)},oI=function(t){var e=t.parentNode;return/^(LI|DT|DD)$/.test(e.nodeName)?e:t},aI=function(t,e,n){var r=t[n?"firstChild":"lastChild"];while(r){if(zr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===e},sI=function(t,e,n,r,i){var o=t.dom,a=t.selection.getRng();if(n!==t.getBody()){iI(n)&&(i="LI");var s=i?e(i):o.create("BR");if(aI(n,r,!0)&&aI(n,r,!1))nI(n,"LI")?o.insertAfter(s,oI(n)):o.replace(s,n);else if(aI(n,r,!0))nI(n,"LI")?(o.insertAfter(s,oI(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n);else if(aI(n,r,!1))o.insertAfter(s,oI(n));else{n=oI(n);var u=a.cloneRange();u.setStartAfter(r),u.setEndAfter(n);var c=u.extractContents();"LI"===i&&eI(c,"LI")?(s=c.firstChild,o.insertAfter(c,n)):(o.insertAfter(c,n),o.insertAfter(s,n))}o.remove(r),XP(t,s)}},uI=function(t){Z(hl(gn.fromDom(t),zn),(function(t){var e=t.dom;e.nodeValue=$o(e.nodeValue)}))},cI=function(t,e){return e&&"A"===e.nodeName&&t.isEmpty(e)},lI=function(t){return t&&/^(TD|TH|CAPTION)$/.test(t.nodeName)},fI=function(t){t.innerHTML='<br data-mce-bogus="1">'},dI=function(t,e){return t.nodeName===e||t.previousSibling&&t.previousSibling.nodeName===e},hI=function(t,e){return e&&t.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&"true"!==t.getContentEditable(e)},pI=function(t,e,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(t.isBlock(i))return;zr(i)&&!e[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||cI(t,i))&&t.remove(i)}},mI=function(t,e,n){return!1===Gr(e)?n:t?1===n&&e.data.charAt(n-1)===jo?0:n:n===e.data.length-1&&e.data.charAt(n)===jo?e.data.length:n},gI=function(t){var e=t.cloneRange();return e.setStart(t.startContainer,mI(!0,t.startContainer,t.startOffset)),e.setEnd(t.endContainer,mI(!1,t.endContainer,t.endOffset)),e},vI=function(t){do{Gr(t)&&(t.nodeValue=t.nodeValue.replace(/^[\r\n]+/,"")),t=t.firstChild}while(t)},bI=function(t,e){var n,r,i=t.getRoot();n=e;while(n!==i&&"false"!==t.getContentEditable(n))"true"===t.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},yI=function(t,e,n){var r=t.dom;O.from(n.style).map(r.parseStyle).each((function(t){var n=bi(gn.fromDom(e)),i=Ht(Ht({},n),t);r.setStyles(e,i)}));var i=O.from(n.class).map((function(t){return t.split(/\s+/)})),o=O.from(e.className).map((function(t){return tt(t.split(/\s+/),(function(t){return""!==t}))}));Ll(i,o,(function(t,n){var i=tt(n,(function(e){return!G(t,e)})),o=Ut(t,i);r.setAttrib(e,"class",o.join(" "))}));var a=["style","class"],s=Mt(n,(function(t,e){return!G(a,e)}));r.setAttribs(e,s)},wI=function(t,e){var n=pd(t);if(n&&n.toLowerCase()===e.tagName.toLowerCase()){var r=md(t);yI(t,e,r)}},_I=function(t,e,n,r,i){var o,a,s,u,c,l,f=e||"P",d=t.dom,h=bI(d,r);if(a=d.getParent(r,d.isBlock),!a||!hI(d,a)){if(a=a||h,l=a===t.getBody()||lI(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=d.create(f),wI(t,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;u=r;while(u.parentNode!==a)u=u.parentNode;while(u&&!d.isBlock(u))s=u,u=u.previousSibling;if(s&&t.schema.isValidChild(l,f.toLowerCase())){o=d.create(f),wI(t,o),s.parentNode.insertBefore(o,s),u=s;while(u&&!d.isBlock(u))c=u.nextSibling,o.appendChild(u),u=c;n.setStart(r,i),n.setEnd(r,i)}}return r},xI=function(t,e){e.normalize();var n=e.lastChild;n&&!/^(left|right)$/gi.test(t.getStyle(n,"float",!0))||t.add(e,"br")},CI=function(t,e){var n,r,i,o,a,s,u,c,l,f,d=t.dom,h=t.schema,p=h.getNonEmptyElements(),m=t.selection.getRng(),g=function(e){var n,i,a,s=r,u=h.getTextInlineElements();if(n=e||"TABLE"===c||"HR"===c?d.create(e||l):o.cloneNode(!1),a=n,!1===bd(t))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(u[s.nodeName]){if($p(s)||cm(s))continue;i=s.cloneNode(!1),d.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==_);return wI(t,n),fI(a),n},v=function(t){var e,n,a=mI(t,r,i);if(Gr(r)&&(t?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&f&&!t)return!0;if(t&&zr(r)&&r===o.firstChild)return!0;if(dI(r,"TABLE")||dI(r,"HR"))return f&&!t||!f&&t;var s=new ho(r,o);Gr(r)&&(t&&0===a?s.prev():t||a!==r.nodeValue.length||s.next());while(e=s.current()){if(zr(e)){if(!e.getAttribute("data-mce-bogus")&&(n=e.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Gr(e)&&!wa(e.nodeValue))return!1;t?s.prev():s.next()}return!0},b=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(c)&&"HGROUP"!==x?g(l):g(),yd(t)&&hI(d,u)&&d.isEmpty(o)?a=d.split(u,o):d.insertAfter(a,o),XP(t,a)};av(d,m).each((function(t){m.setStart(t.startContainer,t.startOffset),m.setEnd(t.endContainer,t.endOffset)})),r=m.startContainer,i=m.startOffset,l=pd(t);var y=!(!e||!e.shiftKey),w=!(!e||!e.ctrlKey);zr(r)&&r.hasChildNodes()&&(f=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=f&&Gr(r)?r.nodeValue.length:0);var _=bI(d,r);if(_){(l&&!y||!l&&y)&&(r=_I(t,l,m,r,i)),o=d.getParent(r,d.isBlock),u=o?d.getParent(o.parentNode,d.isBlock):null,c=o?o.nodeName.toUpperCase():"";var x=u?u.nodeName.toUpperCase():"";"LI"!==x||w||(o=u,u=u.parentNode,c=x),/^(LI|DT|DD)$/.test(c)&&d.isEmpty(o)?sI(t,g,u,o,l):l&&o===t.getBody()||(l=l||"P",Uo(o)?(a=na(o),d.isEmpty(o)&&fI(o),wI(t,a),XP(t,a)):v()?b():v(!0)?(a=o.parentNode.insertBefore(g(),o),XP(t,dI(o,"HR")?a:o)):(n=gI(m).cloneRange(),n.setEndAfter(o),s=n.extractContents(),uI(s),vI(s),a=s.firstChild,d.insertAfter(s,o),pI(d,p,a),xI(d,o),d.isEmpty(o)&&fI(o),a.normalize(),d.isEmpty(a)?(d.remove(a),b()):(wI(t,a),XP(t,a))),d.setAttrib(a,"id",""),t.fire("NewBlock",{newBlock:a}))}},SI=function(t,e,n){var r,i=new ho(e,n),o=t.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},kI=function(t,e,n){var r=t.create("span",{}," ");n.parentNode.insertBefore(r,n),e.scrollIntoView(r),t.remove(r)},MI=function(t,e,n,r){var i=t.createRng();r?(i.setStartBefore(n),i.setEndBefore(n)):(i.setStartAfter(n),i.setEndAfter(n)),e.setRng(i)},EI=function(t,e){var n,r,i=t.selection,o=t.dom,a=i.getRng();av(o,a).each((function(t){a.setStart(t.startContainer,t.startOffset),a.setEnd(t.endContainer,t.endOffset)}));var s=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var c=s>u.childNodes.length-1;u=u.childNodes[Math.min(s,u.childNodes.length-1)]||u,s=c&&3===u.nodeType?u.nodeValue.length:0}var l=o.getParent(u,o.isBlock),f=l?o.getParent(l.parentNode,o.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!e||!e.ctrlKey);"LI"!==d||h||(l=f),u&&3===u.nodeType&&s>=u.nodeValue.length&&(SI(t.schema,u,l)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Ef(o,a,n),kI(o,i,n),MI(o,i,n,r),t.undoManager.add()},OI=function(t,e){var n=gn.fromTag("br");hr(gn.fromDom(e),n),t.undoManager.add()},TI=function(t,e){DI(t.getBody(),e)||pr(gn.fromDom(e),gn.fromTag("br"));var n=gn.fromTag("br");pr(gn.fromDom(e),n),kI(t.dom,t.selection,n.dom),MI(t.dom,t.selection,n.dom,!1),t.undoManager.add()},AI=function(t){return Jr(t.getNode())},DI=function(t,e){return!!AI(Cf.after(e))||Bp(t,Cf.after(e)).map((function(t){return Jr(t.getNode())})).getOr(!1)},NI=function(t){return t&&"A"===t.nodeName&&"href"in t},RI=function(t){return t.fold(x,NI,NI,x)},PI=function(t){var e=b(jT,t),n=Cf.fromRangeStart(t.selection.getRng());return TD(e,t.getBody(),n).filter(RI)},II=function(t,e){e.fold(h,b(OI,t),b(TI,t),h)},BI=function(t,e){var n=PI(t);n.isSome()?n.each(b(II,t)):EI(t,e)},LI=function(t,e){return JP(t).filter((function(t){return e.length>0&&kn(gn.fromDom(t),e)})).isSome()},zI=function(t){return LI(t,gd(t))},jI=function(t){return LI(t,vd(t))},FI=Vi.generate([{br:[]},{block:[]},{none:[]}]),$I=function(t,e){return jI(t)},HI=function(t){return function(e,n){var r=""===pd(e);return r===t}},VI=function(t){return function(e,n){return tI(e)===t}},UI=function(t,e){return function(n,r){var i=QP(n)===t.toUpperCase();return i===e}},qI=function(t){return UI("pre",t)},WI=function(){return UI("summary",!0)},KI=function(t){return function(e,n){return hd(e)===t}},GI=function(t,e){return zI(t)},YI=function(t,e){return e},XI=function(t){var e=pd(t),n=ZP(t.dom,t.selection.getStart());return n&&t.schema.isValidChild(n.nodeName,e||"P")},ZI=function(t,e){return function(n,r){var i=nt(t,(function(t,e){return t&&e(n,r)}),!0);return i?O.some(e):O.none()}},JI=function(t,e){return yD([ZI([$I],FI.none()),ZI([WI()],FI.br()),ZI([qI(!0),KI(!1),YI],FI.br()),ZI([qI(!0),KI(!1)],FI.block()),ZI([qI(!0),KI(!0),YI],FI.block()),ZI([qI(!0),KI(!0)],FI.br()),ZI([VI(!0),YI],FI.br()),ZI([VI(!0)],FI.block()),ZI([HI(!0),YI,XI],FI.block()),ZI([HI(!0)],FI.br()),ZI([GI],FI.br()),ZI([HI(!1),YI],FI.br()),ZI([XI],FI.block())],[t,!(!e||!e.shiftKey)]).getOr(FI.none())},QI=function(t,e){JI(t,e).fold((function(){BI(t,e)}),(function(){CI(t,e)}),h)},tB=function(t,e){e.isDefaultPrevented()||(e.preventDefault(),Fk(t.undoManager),t.undoManager.transact((function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),QI(t,e)})))},eB=function(t){t.on("keydown",(function(e){e.keyCode===Fg.ENTER&&tB(t,e)}))},nB=function(t,e){fP([{keyCode:Fg.END,action:lP(XR,t,!0)},{keyCode:Fg.HOME,action:lP(XR,t,!1)},{keyCode:Fg.END,action:lP(pP,t,!0)},{keyCode:Fg.HOME,action:lP(pP,t,!1)}],e).each((function(t){e.preventDefault()}))},rB=function(t){t.on("keydown",(function(e){!1===e.isDefaultPrevented()&&nB(t,e)}))},iB=$e().browser,oB=function(t){var e=tl((function(){t.composing||i_(t)}),0);iB.isIE()&&(t.on("keypress",(function(t){e.throttle()})),t.on("remove",(function(t){e.cancel()})))},aB=function(t){oB(t),t.on("input",(function(e){!1===e.isComposing&&i_(t)}))},sB=function(t,e){var n=e.container(),r=e.offset();return Gr(n)?(n.insertData(r,t),O.some(_f(n,r+t.length))):up(e).map((function(n){var r=gn.fromText(t);return e.isAtEnd()?pr(n,r):hr(n,r),_f(r.dom,t.length)}))},uB=b(sB,Bo),cB=b(sB," "),lB=function(t){return function(e){return e.fold((function(e){return Lp(t.dom,Cf.before(e))}),(function(t){return zp(t)}),(function(t){return jp(t)}),(function(e){return Bp(t.dom,Cf.after(e))}))}},fB=function(t,e){return function(n){return Ww(t,n)?uB(e):cB(e)}},dB=function(t){return function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}},hB=function(t){var e=Cf.fromRangeStart(t.selection.getRng()),n=gn.fromDom(t.getBody());if(t.selection.isCollapsed()){var r=b(jT,t),i=Cf.fromRangeStart(t.selection.getRng());return TD(r,t.getBody(),i).bind(lB(n)).bind(fB(n,e)).exists(dB(t))}return!1},pB=function(t,e){fP([{keyCode:Fg.SPACEBAR,action:lP(hB,t)}],e).each((function(t){e.preventDefault()}))},mB=function(t){t.on("keydown",(function(e){!1===e.isDefaultPrevented()&&pB(t,e)}))},gB=function(t){var e=JD(t);return KN(t),qP(t,e),GP(t,e),eB(t),mB(t),aB(t),rB(t),e},vB=function(t){return iM(t)?zc(null):gB(t)},bB=function(){function t(t){var e;this.lastPath=[],this.editor=t;var n=this;"onselectionchange"in t.getDoc()||t.on("NodeChange click mouseup keyup focus",(function(n){var r=t.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Gg(i,e)||t.fire("SelectionChange"),e=i})),t.on("contextmenu",(function(){t.fire("SelectionChange")})),t.on("SelectionChange",(function(){var e=t.selection.getStart(!0);!e||!Xe.range&&t.selection.isCollapsed()||fg(t)&&!n.isSameElementPath(e)&&t.dom.isChildOf(e,t.getBody())&&t.nodeChanged({selectionChange:!0})})),t.on("mouseup",(function(e){!e.isDefaultPrevented()&&fg(t)&&("IMG"===t.selection.getNode().nodeName?uo.setEditorTimeout(t,(function(){t.nodeChanged()})):t.nodeChanged())}))}return t.prototype.nodeChanged=function(t){var e,n,r,i=this.editor.selection;this.editor.initialized&&i&&!uh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),e=i.getStart(!0)||r,e.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(e,r)||(e=r),n=[],this.editor.dom.getParent(e,(function(t){if(t===r)return!0;n.push(t)})),t=t||{},t.element=e,t.parents=n,this.editor.fire("NodeChange",t))},t.prototype.isSameElementPath=function(t){var e,n=this.editor.$(t).parentsUntil(this.editor.getBody()).add(t);if(n.length===this.lastPath.length){for(e=n.length;e>=0;e--)if(n[e]!==this.lastPath[e])break;if(-1===e)return this.lastPath=n,!0}return this.lastPath=n,!1},t}(),yB=function(t){t.on("click",(function(e){t.dom.getParent(e.target,"details")&&e.preventDefault()}))},wB=function(t){t.parser.addNodeFilter("details",(function(t){Z(t,(function(t){t.attr("data-mce-open",t.attr("open")),t.attr("open","open")}))})),t.serializer.addNodeFilter("details",(function(t){Z(t,(function(t){var e=t.attr("data-mce-open");t.attr("open",R(e)?e:null),t.attr("data-mce-open",null)}))}))},_B=function(t){yB(t),wB(t)},xB=function(t){return zr(t)&&Oo(gn.fromDom(t))},CB=function(t){var e=t.selection.getRng(),n=_f.fromRangeStart(e),r=_f.fromRangeEnd(e);if(_f.isElementPosition(n)){var i=n.container();xB(i)&&zp(i).each((function(t){return e.setStart(t.container(),t.offset())}))}if(_f.isElementPosition(r)){i=n.container();xB(i)&&jp(i).each((function(t){return e.setEnd(t.container(),t.offset())}))}t.selection.setRng(wx(e))},SB=function(t){t.on("click",(function(e){e.detail>=3&&CB(t)}))},kB=function(){var t=zc(O.none()),e=function(){return t.set(O.none())},n=function(e){return t.set(O.some(e))},r=function(){return t.get().isSome()},i=function(e){return t.get().each(e)};return{clear:e,set:n,isSet:r,on:i}},MB=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:e.top+i.pageYOffset-r.clientTop,left:e.left+i.pageXOffset-r.clientLeft}},EB=function(t){return t.inline?MB(t.getBody()):{left:0,top:0}},OB=function(t){var e=t.getBody();return t.inline?{left:e.scrollLeft,top:e.scrollTop}:{left:0,top:0}},TB=function(t){var e=t.getBody(),n=t.getDoc().documentElement,r={left:e.scrollLeft,top:e.scrollTop},i={left:e.scrollLeft||n.scrollLeft,top:e.scrollTop||n.scrollTop};return t.inline?r:i},AB=function(t,e){if(e.target.ownerDocument!==t.getDoc()){var n=MB(t.getContentAreaContainer()),r=TB(t);return{left:e.pageX-n.left+r.left,top:e.pageY-n.top+r.top}}return{left:e.pageX,top:e.pageY}},DB=function(t,e,n){return{pageX:n.left-t.left+e.left,pageY:n.top-t.top+e.top}},NB=function(t,e){return DB(EB(t),OB(t),AB(t,e))},RB=ei,PB=ti,IB=function(t,e){return RB(e)&&e!==t},BB=function(t,e,n){return e!==n&&!t.dom.isChildOf(e,n)&&!RB(e)},LB=function(t){var e=t.cloneNode(!0);return e.removeAttribute("data-mce-selected"),e},zB=function(t,e,n,r){var i=t.dom,o=e.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},jB=function(t,e){t.parentNode!==e&&e.appendChild(t)},FB=function(t,e,n,r,i,o){var a=0,s=0;t.style.left=e.pageX+"px",t.style.top=e.pageY+"px",e.pageX+n>i&&(a=e.pageX+n-i),e.pageY+r>o&&(s=e.pageY+r-o),t.style.width=n-a+"px",t.style.height=r-s+"px"},$B=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},HB=function(t){return 0===t.button},VB=function(t,e){return{pageX:e.pageX-t.relX,pageY:e.pageY+5}},UB=function(t,e){return function(n){if(HB(n)){var r=it(e.dom.getParents(n.target),Jl(RB,PB)).getOr(null);if(IB(e.getBody(),r)){var i=e.dom.getPos(r),o=e.getBody(),a=e.getDoc().documentElement;t.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(e.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(e.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:zB(e,r,r.offsetWidth,r.offsetHeight)})}}}},qB=function(t,e){var n=uo.throttle((function(t,n){e._selectionOverrides.hideFakeCaret(),e.selection.placeCaretAt(t,n)}),0);return e.on("remove",n.stop),function(r){return t.on((function(t){var i=Math.max(Math.abs(r.screenX-t.screenX),Math.abs(r.screenY-t.screenY));if(!t.dragging&&i>10){var o=e.fire("dragstart",{target:t.element});if(o.isDefaultPrevented())return;t.dragging=!0,e.focus()}if(t.dragging){var a=VB(t,NB(e,r));jB(t.ghost,e.getBody()),FB(t.ghost,a,t.width,t.height,t.maxX,t.maxY),n(r.clientX,r.clientY)}}))}},WB=function(t){var e=t.getSel().getRangeAt(0),n=e.startContainer;return 3===n.nodeType?n.parentNode:n},KB=function(t,e){return function(n){t.on((function(t){if(t.dragging&&BB(e,WB(e.selection),t.element)){var r=LB(t.element),i=e.fire("drop",{clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||e.undoManager.transact((function(){$B(t.element),e.insertContent(e.dom.getOuterHTML(r)),e._selectionOverrides.hideFakeCaret()}))}})),YB(t)}},GB=function(t,e){return function(){t.on((function(t){t.dragging&&e.fire("dragend")})),YB(t)}},YB=function(t){t.on((function(t){$B(t.ghost)})),t.clear()},XB=function(t){var e=kB(),n=Tc.DOM,r=document,i=UB(e,t),o=qB(e,t),a=KB(e,t),s=GB(e,t);t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),t.on("remove",(function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)}))},ZB=function(t){t.on("drop",(function(e){var n="undefined"!==typeof e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;(RB(n)||"false"===t.dom.getContentEditableParent(n))&&e.preventDefault()}))},JB=function(t){var e=function(e){if(!e.defaultPrevented){var n=e.dataTransfer;n&&(G(n.types,"Files")||n.files.length>0)&&(e.preventDefault(),"drop"===e.type&&YO(t,"Dropped file type is not supported"))}},n=function(n){zb(t,n.target)&&e(n)},r=function(){var r=Tc.DOM,i=t.dom,o=document,a=t.inline?t.getBody():t.getDoc(),s=["drop","dragover"];Z(s,(function(t){r.bind(o,t,n),i.bind(a,t,e)})),t.on("remove",(function(){Z(s,(function(t){r.unbind(o,t,n),i.unbind(a,t,e)}))}))};t.on("init",(function(){uo.setEditorTimeout(t,r,0)}))},QB=function(t){XB(t),ZB(t),hh(t)&&JB(t)},tL=function(t){var e=tl((function(){if(!t.removed&&t.getBody().contains(document.activeElement)){var e=t.selection.getRng();if(e.collapsed){var n=RA(t,e,!1);t.selection.setRng(n)}}}),0);t.on("focus",(function(){e.throttle()})),t.on("blur",(function(){e.cancel()}))},eL=function(t){t.on("init",(function(){t.on("focusin",(function(e){var n=e.target;if(ri(n)){var r=Mg(t.getBody(),n),i=ei(r)?r:n;t.selection.getNode()!==i&&DA(t,i).each((function(e){return t.selection.setRng(e)}))}}))}))},nL=ti,rL=ei,iL=function(t,e){return Mg(t.getBody(),e)},oL=function(t){var e,n=t.selection,r=t.dom,i=r.isBlock,o=t.getBody(),a=Bh(t,o,i,(function(){return Jb(t)})),s="sel-"+r.uniqueId(),u="data-mce-selected",c=function(t){return r.hasClass(t,"mce-offscreen-selection")},l=function(t){return t!==o&&(rL(t)||ri(t))&&r.isChildOf(t,o)},f=function(t){return hw(t)||pw(t)||cw(t)||lw(t)},d=function(){var t=r.get(s);return t?t.getElementsByTagName("*")[0]:t},h=function(t){t&&n.setRng(t)},p=n.getRng,m=function(e,r,i,o){void 0===o&&(o=!0);var s=t.fire("ShowCaret",{target:r,direction:e,before:i});return s.isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===e),a.show(i,r))},g=function(t){t.hasAttribute("data-mce-caret")&&(na(t),h(p()),n.scrollIntoView(t))},v=function(){t.on("mouseup",(function(e){var n=p();n.collapsed&&jO(t,e.clientX,e.clientY)&&NA(t,n,!1).each(h)})),t.on("click",(function(e){var i=iL(t,e.target);i&&(rL(i)&&(e.preventDefault(),t.focus()),nL(i)&&r.isChildOf(i,n.getNode())&&S())})),t.on("blur NewBlock",S),t.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(t){var e=Sp(t);if(!t.firstChild)return!1;var n=Cf.before(t.firstChild),r=e.next(n);return r&&!f(r)},u=function(t,e){var n=r.getParent(t,i),o=r.getParent(e,i);return n===o},g=function(e,n){var o=r.getParent(e,i),a=r.getParent(n,i);return!(!o||e===a||!r.isChildOf(o,a)||!1!==rL(iL(t,o)))||o&&!u(o,a)&&s(o)};t.on("tap",(function(e){var n=e.target,r=iL(t,n);rL(r)?(e.preventDefault(),DA(t,r).each(C)):l(n)&&DA(t,n).each(C)}),!0),t.on("mousedown",(function(e){var i=e.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==jO(t,e.clientX,e.clientY)){var a=iL(t,i);if(a)rL(a)?(e.preventDefault(),DA(t,a).each(C)):(S(),nL(a)&&e.shiftKey||Eg(e.clientX,e.clientY,n.getRng())||(M(),n.placeCaretAt(e.clientX,e.clientY)));else if(l(i))DA(t,i).each(C);else if(!1===jh(i)){S(),M();var s=PR(o,e.clientX,e.clientY);if(s&&!g(i,s.node)){e.preventDefault();var u=m(1,s.node,s.before,!1);t.getBody().focus(),h(u)}}}})),t.on("keypress",(function(t){Fg.modifierPressed(t)||rL(n.getNode())&&t.preventDefault()})),t.on("GetSelectionRange",(function(t){var n=t.range;if(e){if(!e.parentNode)return void(e=null);n=n.cloneRange(),n.selectNode(e),t.range=n}})),t.on("SetSelectionRange",(function(t){t.range=w(t.range);var e=C(t.range,t.forward);e&&(t.range=e)}));var v=function(t){return"mcepastebin"===t.id};t.on("AfterSetSelectionRange",(function(t){var e=t.range,n=e.startContainer.parentNode;y(e)||v(n)||M(),c(n)||S()})),t.on("copy",(function(t){var e=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!Xe.ie){var n=d();n&&(t.preventDefault(),e.clearData(),e.setData("text/html",n.outerHTML),e.setData("text/plain",n.outerText||n.innerText))}})),QB(t),tL(t),eL(t)},b=function(t){return Wo(t)||Qo(t)||ta(t)},y=function(t){return b(t.startContainer)||b(t.endContainer)},w=function(e){var n=t.schema.getShortEndedElements(),i=r.createRng(),o=e.startContainer,a=e.startOffset,s=e.endContainer,u=e.endOffset;return At(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),At(n,s.nodeName.toLowerCase())?0===u?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,u),i},_=function(e,i,o){var a=t.$,u=Ji(gn.fromDom(t.getBody()),"#"+s).fold((function(){return a([])}),(function(t){return a([t.dom])}));0===u.length&&(u=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),u.appendTo(t.getBody()));var c=r.createRng();i===o&&Xe.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),c.setStartAfter(u[0].firstChild.firstChild),c.setEndAfter(i)):(u.empty().append(Bo).append(i).append(Bo),c.setStart(u[0].firstChild,1),c.setEnd(u[0].lastChild,0)),u.css({top:r.getPos(e,t.getBody()).y}),u[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(c),c},x=function(n){var i=n.cloneNode(!0),o=t.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=_(n,o.targetClone,i),s=gn.fromDom(n);return Z(pl(gn.fromDom(t.getBody()),"*[data-mce-selected]"),(function(t){Tn(s,t)||fi(t,u)})),r.getAttrib(n,u)||n.setAttribute(u,"1"),e=n,M(),a},C=function(t,e){if(!t)return null;if(t.collapsed){if(!y(t)){var n=e?1:-1,i=sp(n,o,t),a=i.getNode(!e);if(jh(a))return m(n,a,!!e&&!i.isAtEnd(),!1);var s=i.getNode(e);if(jh(s))return m(n,s,!e&&!i.isAtEnd(),!1)}return null}var u=t.startContainer,c=t.startOffset,f=t.endOffset;if(3===u.nodeType&&0===c&&rL(u.parentNode)&&(u=u.parentNode,c=r.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(f===c+1&&u===t.endContainer){var d=u.childNodes[c];if(l(d))return x(d)}return null},S=function(){e&&e.removeAttribute(u),Ji(gn.fromDom(t.getBody()),"#"+s).each(_r),e=null},k=function(){a.destroy(),e=null},M=function(){a.hide()};return Xe.ceFalse&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:M,destroy:k}},aL=function(t){var e=ln.each,n=Fg.BACKSPACE,r=Fg.DELETE,i=t.dom,o=t.selection,a=t.parser,s=Xe.gecko,u=Xe.ie,c=Xe.webkit,l="data:text/mce-internal,",f=u?"Text":"URL",d=function(e,n){try{t.getDoc().execCommand(e,!1,n)}catch(r){}},h=function(t){return t.isDefaultPrevented()},p=function(e){var n,r;e.dataTransfer&&(t.selection.isCollapsed()&&"IMG"===e.target.tagName&&o.select(e.target),n=t.selection.getContent(),n.length>0&&(r=l+escape(t.id)+","+escape(n),e.dataTransfer.setData(f,r)))},m=function(t){var e;return t.dataTransfer&&(e=t.dataTransfer.getData(f),e&&e.indexOf(l)>=0)?(e=e.substr(l.length).split(","),{id:unescape(e[0]),html:unescape(e[1])}):null},g=function(e,n){t.queryCommandSupported("mceInsertClipboardContent")?t.execCommand("mceInsertClipboardContent",!1,{content:e,internal:n}):t.execCommand("mceInsertContent",!1,e)},v=function(){var e=function(t){var e=i.create("body"),n=t.cloneContents();return e.appendChild(n),o.serializer.serialize(e,{format:"html"})},a=function(n){var r=e(n),o=i.createRng();o.selectNode(t.getBody());var a=e(o);return r===a};t.on("keydown",(function(e){var o,s,u=e.keyCode;if(!h(e)&&(u===r||u===n)){if(o=t.selection.isCollapsed(),s=t.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(t.selection.getRng()))return;e.preventDefault(),t.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?t.selection.setCursorLocation(s.firstChild,0):t.selection.setCursorLocation(s,0),t.nodeChanged()}}))},b=function(){t.shortcuts.add("meta+a",null,"SelectAll")},y=function(){t.inline||i.bind(t.getDoc(),"mousedown mouseup",(function(e){var n;if(e.target===t.getDoc().documentElement)if(n=o.getRng(),t.getBody().focus(),"mousedown"===e.type){if(Wo(n.startContainer))return;o.placeCaretAt(e.clientX,e.clientY)}else o.setRng(n)}))},w=function(){t.on("keydown",(function(e){if(!h(e)&&e.keyCode===n){if(!t.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void e.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),e.preventDefault())}}}))},_=function(){Range.prototype.getClientRects||t.on("mousedown",(function(e){if(!h(e)&&"HTML"===e.target.nodeName){var n=t.getBody();n.blur(),uo.setEditorTimeout(t,(function(){n.focus()}))}}))},x=function(){t.on("click",(function(e){var n=e.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(e.preventDefault(),t.selection.select(n),t.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(e.preventDefault(),o.select(n))}))},C=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==t.getBody()&&(i.setAttrib(r,"style",null),e(n,(function(t){r.setAttributeNode(t.cloneNode(!0))})))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};t.on("keypress",(function(e){var i;if(!h(e)&&(8===e.keyCode||46===e.keyCode)&&r())return i=n(),t.getDoc().execCommand("delete",!1,null),i(),e.preventDefault(),!1})),i.bind(t.getDoc(),"cut",(function(e){var i;!h(e)&&r()&&(i=n(),uo.setEditorTimeout(t,(function(){i()})))}))},S=function(){t.on("keydown",(function(t){if(!h(t)&&t.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var e=o.getNode().previousSibling;if(e&&e.nodeName&&"table"===e.nodeName.toLowerCase())return t.preventDefault(),!1}}))},k=function(){t.on("keydown",(function(e){var n,r;if(!h(e)&&e.keyCode===Fg.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,u=i.getRoot();if(r=a,n.collapsed&&0===s){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==u)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(t.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}}))},M=function(){var e=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),$d(t)||d("enableObjectResizing",!1)};ch(t)||t.on("BeforeExecCommand mousedown",e)},E=function(){var n=function(){e(i.select("a"),(function(t){var e=t.parentNode,n=i.getRoot();if(e.lastChild===t){while(e&&!i.isBlock(e)){if(e.parentNode.lastChild!==e||e===n)return;e=e.parentNode}i.add(e,"br",{"data-mce-bogus":1})}}))};t.on("SetContent ExecCommand",(function(t){"setcontent"!==t.type&&"mceInsertLink"!==t.command||n()}))},O=function(){pd(t)&&t.on("init",(function(){d("DefaultParagraphSeparator",pd(t))}))},T=function(){t.on("keyup focusin mouseup",(function(t){Fg.modifierPressed(t)||o.normalize()}),!0)},A=function(){t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},D=function(){t.inline||t.on("keydown",(function(){document.activeElement===document.body&&t.getWin().focus()}))},N=function(){t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",(function(e){var n;if("HTML"===e.target.nodeName){if(Xe.ie>11)return void t.getBody().focus();n=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(n),t.selection.normalize(),t.nodeChanged()}})))},R=function(){Xe.mac&&t.on("keydown",(function(e){if(Fg.metaKeyPressed(e)&&!e.shiftKey&&(37===e.keyCode||39===e.keyCode)){e.preventDefault();var n=t.selection.getSel();n.modify("move",37===e.keyCode?"backward":"forward","lineboundary")}}))},P=function(){d("AutoUrlDetect",!1)},I=function(){t.on("click",(function(t){var e=t.target;do{if("A"===e.tagName)return void t.preventDefault()}while(e=e.parentNode)})),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},B=function(){t.on("init",(function(){t.dom.bind(t.getBody(),"submit",(function(t){t.preventDefault()}))}))},L=function(){a.addNodeFilter("br",(function(t){var e=t.length;while(e--)"Apple-interchange-newline"===t[e].attr("class")&&t[e].remove()}))},z=function(){t.on("dragstart",(function(t){p(t)})),t.on("drop",(function(e){if(!h(e)){var n=m(e);if(n&&n.id!==t.id){e.preventDefault();var r=Kg(e.x,e.y,t.getDoc());o.setRng(r),g(n.html,!0)}}}))},j=function(){},F=function(){if(!s||t.removed)return!1;var e=t.selection.getSel();return!e||!e.rangeCount||0===e.rangeCount};return k(),v(),Xe.windowsPhone||T(),c&&(y(),x(),O(),B(),S(),L(),Xe.iOS?(D(),N(),I()):b()),Xe.ie>=11&&(N(),S()),Xe.ie&&(b(),P(),z()),s&&(w(),_(),C(),M(),E(),A(),R(),S()),{refreshContentEditable:j,isHidden:F}},sL=Tc.DOM,uL=function(t,e){var n=gn.fromDom(t.getBody()),r=ur(sr(n)),i=gn.fromTag("style");ai(i,"type","text/css"),gr(i,gn.fromText(e)),gr(r,i),t.on("remove",(function(){_r(i)}))},cL=function(t){return t.inline?t.getElement().nodeName.toLowerCase():void 0},lL=function(t){return Mt(t,(function(t){return!1===z(t)}))},fL=function(t){var e=t.settings,n=t.editorUpload.blobCache;return lL({allow_conditional_comments:e.allow_conditional_comments,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_html_in_named_anchor:e.allow_html_in_named_anchor,allow_script_urls:e.allow_script_urls,allow_unsafe_link_target:e.allow_unsafe_link_target,convert_fonts_to_spans:e.convert_fonts_to_spans,fix_list_elements:e.fix_list_elements,font_size_legacy_values:e.font_size_legacy_values,forced_root_block:e.forced_root_block,forced_root_block_attrs:e.forced_root_block_attrs,padd_empty_with_br:e.padd_empty_with_br,preserve_cdata:e.preserve_cdata,remove_trailing_brs:e.remove_trailing_brs,inline_styles:e.inline_styles,root_name:cL(t),validate:!0,blob_cache:n,images_dataimg_filter:e.images_dataimg_filter})},dL=function(t){var e=t.settings;return Ht(Ht({},fL(t)),lL({url_converter:e.url_converter,url_converter_scope:e.url_converter_scope,element_format:e.element_format,entities:e.entities,entity_encoding:e.entity_encoding,indent:e.indent,indent_after:e.indent_after,indent_before:e.indent_before,block_elements:e.block_elements,boolean_attributes:e.boolean_attributes,custom_elements:e.custom_elements,extended_valid_elements:e.extended_valid_elements,invalid_elements:e.invalid_elements,invalid_styles:e.invalid_styles,move_caret_before_on_enter_elements:e.move_caret_before_on_enter_elements,non_empty_elements:e.non_empty_elements,schema:e.schema,self_closing_elements:e.self_closing_elements,short_ended_elements:e.short_ended_elements,special:e.special,text_block_elements:e.text_block_elements,text_inline_elements:e.text_inline_elements,valid_children:e.valid_children,valid_classes:e.valid_classes,valid_elements:e.valid_elements,valid_styles:e.valid_styles,verify_html:e.verify_html,whitespace_elements:e.whitespace_elements}))},hL=function(t){var e=ME(fL(t),t.schema);return e.addAttributeFilter("src,href,style,tabindex",(function(e,n){var r,i,o=e.length,a=t.dom,s="data-mce-"+n;while(o--)if(r=e[o],i=r.attr(n),i&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,t.convertURL(i,n,r.name))}})),e.addNodeFilter("script",(function(t){var e=t.length;while(e--){var n=t[e],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),t.settings.preserve_cdata&&e.addNodeFilter("#cdata",(function(e){var n=e.length;while(n--){var r=e[n];r.type=8,r.name="#comment",r.value="[CDATA["+t.dom.encode(r.value)+"]]"}})),e.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(e){var n=e.length,r=t.schema.getNonEmptyElements();while(n--){var i=e[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new Ty("br",1)).shortEnded=!0)}})),e},pL=function(t){t.settings.auto_focus&&uo.setEditorTimeout(t,(function(){var e;e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus),e.destroyed||e.focus()}),100)},mL=function(t){var e=t.dom.getRoot();t.inline||fg(t)&&t.selection.getStart(!0)!==e||zp(e).each((function(e){var n=e.getNode(),r=qr(n)?zp(n).getOr(e):e;Xe.browser.isIE()?Sb(t,r.toRange()):t.selection.setRng(r.toRange())}))},gL=function(t){t.bindPendingEventDelegates(),t.initialized=!0,Lg(t),t.focus(!0),mL(t),t.nodeChanged({initial:!0}),t.execCallback("init_instance_callback",t),pL(t)},vL=function(t){return t.inline?t.ui.styleSheetLoader:t.dom.styleSheetLoader},bL=function(t,e){var n=vL(t),r=function(){t.on("remove",(function(){return n.unloadAll(e)})),gL(t)};n.loadAll(e,r,r)},yL=function(t,e){var n=t.settings,r=t.getDoc(),i=t.getBody();n.browser_spellcheck||n.gecko_spellcheck||(r.body.spellcheck=!1,sL.setAttrib(i,"spellcheck","false")),t.quirks=aL(t),Bg(t);var o=jd(t);if(void 0!==o&&(i.dir=o),n.protect&&t.on("BeforeSetContent",(function(t){ln.each(n.protect,(function(e){t.content=t.content.replace(e,(function(t){return"\x3c!--mce:protected "+escape(t)+"--\x3e"}))}))})),t.on("SetContent",(function(){t.addVisual(t.getBody())})),!1===e&&t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",(function(e){t.composing="compositionstart"===e.type})),t.contentStyles.length>0){var a="";ln.each(t.contentStyles,(function(t){a+=t+"\r\n"})),t.dom.addStyle(a)}bL(t,t.contentCSS),n.content_style&&uL(t,n.content_style)},wL=function(t,e){var n=t.settings,r=t.getElement(),i=t.getDoc();n.inline||(t.getElement().style.visibility=t.orgVisibility),e||t.inline||(i.open(),i.write(t.iframeHTML),i.close()),t.inline&&(sL.addClass(r,"mce-content-body"),t.contentDocument=i=document,t.contentWindow=window,t.bodyElement=r,t.contentAreaContainer=r);var o=t.getBody();o.disabled=!0,t.readonly=!!n.readonly,t.readonly||(t.inline&&"static"===sL.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=t.getParam("content_editable_state",!0)),o.disabled=!1,t.editorUpload=pT(t),t.schema=ds(n),t.dom=Tc(i,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:Nd(t),referrerPolicy:Rd(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=hL(t),t.serializer=jE(dL(t),t),t.selection=GM(t.dom,t.getWin(),t.serializer,t),t.annotator=Cg(t),t.formatter=kT(t),t.undoManager=OT(t),t._nodeChangeDispatcher=new bB(t),t._selectionOverrides=oL(t),BN(t),_B(t),iM(t)||SB(t);var a=vB(t);DN(t,a),HN(t),BT(t),Ig(t),oM(t).fold((function(){yL(t,!1)}),(function(e){t.setProgressState(!0),e.then((function(e){t.setProgressState(!1),yL(t,e)}))}))},_L=Tc.DOM,xL=function(t,e){if(document.domain!==window.location.hostname&&Xe.browser.isIE()){var n=fT("mce");t[n]=function(){wL(t)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return _L.setAttrib(e,"src",r),!0}return!1},CL=function(t,e,n,r){var i=gn.fromTag("iframe");return si(i,r),si(i,{id:t+"_ifr",frameBorder:"0",allowTransparency:"true",title:e}),cl(i,"tox-edit-area__iframe"),i},SL=function(t){var e=ud(t)+"<html><head>";cd(t)!==t.documentBaseUrl&&(e+='<base href="'+t.documentBaseURI.getURI()+'" />'),e+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=ld(t),r=fd(t);return dd(t)&&(e+='<meta http-equiv="Content-Security-Policy" content="'+dd(t)+'" />'),e+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+t.id+'"><br></body></html>',e},kL=function(t,e){var n=t.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=CL(t.id,n,e.height,sd(t)).dom;r.onload=function(){r.onload=null,t.fire("load")};var i=xL(t,r);return t.contentAreaContainer=e.iframeContainer,t.iframeElement=r,t.iframeHTML=SL(t),_L.add(e.iframeContainer,r),i},ML=function(t,e){var n=kL(t,e);e.editorContainer&&(_L.get(e.editorContainer).style.display=t.orgDisplay,t.hidden=_L.isHidden(e.editorContainer)),t.getElement().style.display="none",_L.setAttrib(t.id,"aria-hidden","true"),n||wL(t)},EL=Tc.DOM,OL=function(t,e,n){var r=UO.get(n),i=UO.urls[n]||t.documentBaseUrl.replace(/\/$/,"");if(n=ln.trim(n),r&&-1===ln.inArray(e,n)){if(ln.each(UO.dependencies(n),(function(n){OL(t,e,n)})),t.plugins[n])return;try{var o=new r(t,i,t.$);t.plugins[n]=o,o.init&&(o.init(t,i),e.push(n))}catch(gF){nT(t,n,gF)}}},TL=function(t){return t.replace(/^\-/,"")},AL=function(t){var e=[];ln.each(fh(t).split(/[ ,]/),(function(n){OL(t,e,TL(n))}))},DL=function(t){var e=ln.trim(Md(t)),n=t.ui.registry.getAll().icons,r=Ht(Ht({},TO.get("default").icons),TO.get(e).icons);wt(r,(function(e,r){At(n,r)||t.ui.registry.addIcon(r,e)}))},NL=function(t){var e=Wd(t);if(R(e)){t.settings.theme=TL(e);var n=qO.get(e);t.theme=new n(t,qO.urls[e]),t.theme.init&&t.theme.init(t,qO.urls[e]||t.documentBaseUrl.replace(/\/$/,""),t.$)}else t.theme={}},RL=function(t){return t.theme.renderUI()},PL=function(t){var e=t.getElement(),n=Wd(t),r=n(t,e);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||t.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||t.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:e.offsetHeight,r},IL=function(t){return{editorContainer:t,iframeContainer:t,api:{}}},BL=function(t){var e=EL.create("div");return EL.insertAfter(e,t),IL(e)},LL=function(t){var e=t.getElement();return t.inline?IL(null):BL(e)},zL=function(t){var e=t.getElement();return t.orgDisplay=e.style.display,R(Wd(t))?RL(t):$(Wd(t))?PL(t):LL(t)},jL=function(t,e){var n={show:O.from(e.show).getOr(h),hide:O.from(e.hide).getOr(h),disable:O.from(e.disable).getOr(h),isDisabled:O.from(e.isDisabled).getOr(x),enable:function(){t.mode.isReadOnly()||O.from(e.enable).map(_)}};t.ui=Ht(Ht({},t.ui),n)},FL=function(t){t.fire("ScriptsLoaded"),DL(t),NL(t),AL(t);var e=zL(t);jL(t,O.from(e.api).getOr({}));var n={editorContainer:e.editorContainer,iframeContainer:e.iframeContainer};return t.editorContainer=n.editorContainer?n.editorContainer:null,aT(t),t.inline?wL(t):ML(t,n)},$L=Tc.DOM,HL=function(t){return"-"===t.charAt(0)},VL=function(t,e){var n=Pd(e),r=Id(e);if(!1===Zc.hasCode(n)&&"en"!==n){var i=""!==r?r:e.editorManager.baseURL+"/langs/"+n+".js";t.add(i,h,void 0,(function(){eT(e,i,n)}))}},UL=function(t,e,n,r){var i=Wd(e);if(R(i)){if(!HL(i)&&!qO.urls.hasOwnProperty(i)){var o=Qd(e);o?qO.load(i,e.documentBaseURI.toAbsolute(o)):qO.load(i,"themes/"+i+"/theme"+n+".js")}t.loadQueue((function(){qO.waitFor(i,r)}))}else r()},qL=function(t){return O.from(Ed(t)).filter((function(t){return t.length>0})).map((function(t){return{url:t,name:O.none()}}))},WL=function(t,e,n){return O.from(e).filter((function(t){return t.length>0&&!TO.has(t)})).map((function(e){return{url:t.editorManager.baseURL+"/icons/"+e+"/icons"+n+".js",name:O.some(e)}}))},KL=function(t,e,n){var r=WL(e,"default",n),i=qL(e).orThunk((function(){return WL(e,Md(e),"")}));Z(Bl([r,i]),(function(n){t.add(n.url,h,void 0,(function(){tT(e,n.url,n.name.getOrUndefined())}))}))},GL=function(t,e){ln.each(dh(t),(function(e,n){UO.load(n,e,h,void 0,(function(){QO(t,e,n)})),t.settings.plugins+=" "+n})),ln.each(fh(t).split(/[ ,]/),(function(n){if(n=ln.trim(n),n&&!UO.urls[n])if(HL(n)){n=n.substr(1,n.length);var r=UO.dependencies(n);ln.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+e+".js"},i=UO.createUrl(r,n);UO.load(i.resource,i,h,void 0,(function(){QO(t,i.prefix+i.resource+i.suffix,i.resource)}))}))}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+e+".js"};UO.load(n,i,h,void 0,(function(){QO(t,i.prefix+i.resource+i.suffix,n)}))}}))},YL=function(t,e){var n=Lc.ScriptLoader;UL(n,t,e,(function(){VL(n,t),KL(n,t,e),GL(t,e),n.loadQueue((function(){t.removed||FL(t)}),t,(function(){t.removed||FL(t)}))}))},XL=function(t,e){return fo.forElement(t,{contentCssCors:lh(e),referrerPolicy:Rd(e)})},ZL=function(t){var e=t.id;Zc.setCode(Pd(t));var n=function(){$L.unbind(window,"ready",n),t.render()};if(Us.Event.domLoaded){if(t.getElement()&&Xe.contentEditable){var r=gn.fromDom(t.getElement()),i=di(r);t.on("remove",(function(){J(r.dom.attributes,(function(t){return fi(r,t.name)})),si(r,i)})),t.ui.styleSheetLoader=XL(r,t),th(t)?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var o=t.getElement().form||$L.getParent(e,"form");o&&(t.formElement=o,eh(t)&&!Kr(t.getElement())&&($L.insertAfter($L.create("input",{type:"hidden",name:e}),e),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},$L.bind(o,"submit reset",t.formEventDelegate),t.on("reset",(function(){t.resetContent()})),!nh(t)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),o._mceOldSubmit(o)})),t.windowManager=KO(t),t.notificationManager=VO(t),rh(t)&&t.on("GetContent",(function(t){t.save&&(t.content=$L.encode(t.content))})),ih(t)&&t.on("submit",(function(){t.initialized&&t.save()})),oh(t)&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),YL(t,t.suffix)}}else $L.bind(window,"ready",n)},JL=function(t,e){return NM(t,e)},QL={"font-size":"size","font-family":"face"},tz=function(t,e,n){var r=function(e){return vi(e,t).orThunk((function(){return"font"===Rn(e)?Tt(QL,t).bind((function(t){return ci(e,t)})):O.none()}))},i=function(t){return Tn(gn.fromDom(e),t)};return hy(gn.fromDom(n),(function(t){return r(t)}),i)},ez=function(t){return t.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},nz=function(t,e){return O.from(Tc.DOM.getStyle(e,t,!0))},rz=function(t){return function(e,n){return O.from(n).map(gn.fromDom).filter(Ln).bind((function(n){return tz(t,e,n.dom).or(nz(t,n.dom))})).getOr("")}},iz=rz("font-size"),oz=p(ez,rz("font-family")),az=function(t){return zp(t.getBody()).map((function(t){var e=t.container();return Gr(e)?e.parentNode:e}))},sz=function(t){return O.from(t.selection.getRng()).bind((function(e){var n=t.getBody(),r=e.startContainer===n&&0===e.startOffset;return r?O.none():O.from(t.selection.getStart(!0))}))},uz=function(t,e){return sz(t).orThunk(b(az,t)).map(gn.fromDom).filter(Ln).map(e)},cz=function(t,e){if(/^[0-9.]+$/.test(e)){var n=parseInt(e,10);if(n>=1&&n<=7){var r=wd(t),i=_d(t);return i?i[n-1]||e:r[n-1]||e}return e}return e},lz=function(t){var e=t.split(/\s*,\s*/);return X(e,(function(t){return-1===t.indexOf(" ")||se(t,'"')||se(t,"'")?t:"'"+t+"'"})).join(",")},fz=function(t,e){var n=cz(t,e);t.formatter.toggle("fontname",{value:lz(n)}),t.nodeChanged()},dz=function(t){return uz(t,(function(e){return oz(t.getBody(),e.dom)})).getOr("")},hz=function(t,e){t.formatter.toggle("fontsize",{value:cz(t,e)}),t.nodeChanged()},pz=function(t){return uz(t,(function(e){return iz(t.getBody(),e.dom)})).getOr("")},mz=function(t){return uz(t,(function(e){var n=gn.fromDom(t.getBody()),r=hy(e,(function(t){return vi(t,"line-height")}),b(Tn,n)),i=function(){var t=parseFloat(mi(e,"line-height")),n=parseFloat(mi(e,"font-size"));return String(t/n)};return r.getOrThunk(i)})).getOr("")},gz=function(t,e){t.undoManager.transact((function(){t.formatter.toggle("lineheight",{value:String(e)}),t.nodeChanged()}))},vz=function(t){var e;return"string"!==typeof t?(e=ln.extend({paste:t.paste,data:{paste:t.paste}},t),{content:t.content,details:e}):{content:t,details:{}}},bz=function(t,e){var n=vz(e);AM(t,n.content,n.details)},yz=ln.each,wz=ln.map,_z=ln.inArray,xz=function(){function t(t){this.commands={state:{},exec:{},value:{}},this.editor=t,this.setupCommands(t)}return t.prototype.execCommand=function(t,e,n,r){var i,o=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||r&&r.skip_focus?Mb(a.editor):a.editor.focus(),r=a.editor.fire("BeforeExecCommand",{command:t,ui:e,value:n}),r.isDefaultPrevented())return!1;var s=t.toLowerCase();if(i=a.commands.exec[s])return i(s,e,n),a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0;if(yz(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(t,e,n))return a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),o=!0,!1})),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(t,e,n))return a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0;try{o=a.editor.getDoc().execCommand(t,e,n)}catch(u){}return!!o&&(a.editor.fire("ExecCommand",{command:t,ui:e,value:n}),!0)}},t.prototype.queryCommandState=function(t){var e;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(t=t.toLowerCase(),e=this.commands.state[t])return e(t);try{return this.editor.getDoc().queryCommandState(t)}catch(n){}return!1}},t.prototype.queryCommandValue=function(t){var e;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(t=t.toLowerCase(),e=this.commands.value[t])return e(t);try{return this.editor.getDoc().queryCommandValue(t)}catch(n){}}},t.prototype.addCommands=function(t,e){void 0===e&&(e="exec");var n=this;yz(t,(function(t,r){yz(r.toLowerCase().split(","),(function(r){n.commands[e][r]=t}))}))},t.prototype.addCommand=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.exec[t]=function(t,i,o,a){return e.call(n||r.editor,i,o,a)}},t.prototype.queryCommandSupported=function(t){if(t=t.toLowerCase(),this.commands.exec[t])return!0;try{return this.editor.getDoc().queryCommandSupported(t)}catch(e){}return!1},t.prototype.addQueryStateHandler=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.state[t]=function(){return e.call(n||r.editor)}},t.prototype.addQueryValueHandler=function(t,e,n){var r=this;t=t.toLowerCase(),this.commands.value[t]=function(){return e.call(n||r.editor)}},t.prototype.hasCustomCommand=function(t){return t=t.toLowerCase(),!!this.commands.exec[t]},t.prototype.execNativeCommand=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(t,e,n)},t.prototype.isFormatMatch=function(t){return this.editor.formatter.match(t)},t.prototype.toggleFormat=function(t,e){this.editor.formatter.toggle(t,e?{value:e}:void 0),this.editor.nodeChanged()},t.prototype.storeSelection=function(t){this.selectionBookmark=this.editor.selection.getBookmark(t)},t.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},t.prototype.setupCommands=function(t){var e=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){t.undoManager.add()},"Cut,Copy,Paste":function(n){var r,i=t.getDoc();try{e.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=t.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Xe.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),t.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(t.selection.isCollapsed()){var e=t.dom.getParent(t.selection.getStart(),"a");e&&t.dom.remove(e,!0)}else t.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),yz("left,center,right,justify".split(","),(function(e){r!==e&&t.formatter.remove("align"+e)})),"none"!==r&&e.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;e.execNativeCommand(n);var i=t.dom.getParent(t.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(e.storeSelection(),t.dom.split(r,i),e.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(t){e.toggleFormat(t)},"ForeColor,HiliteColor":function(t,n,r){e.toggleFormat(t,r)},FontName:function(e,n,r){fz(t,r)},FontSize:function(e,n,r){hz(t,r)},LineHeight:function(e,n,r){gz(t,r)},RemoveFormat:function(e){t.formatter.remove(e)},mceBlockQuote:function(){e.toggleFormat("blockquote")},FormatBlock:function(t,n,r){return e.toggleFormat(r||"p")},mceCleanup:function(){var e=t.selection.getBookmark();t.setContent(t.getContent()),t.selection.moveToBookmark(e)},mceRemoveNode:function(n,r,i){var o=i||t.selection.getNode();o!==t.getBody()&&(e.storeSelection(),t.dom.remove(o,!0),e.restoreSelection())},mceSelectNodeDepth:function(e,n,r){var i=0;t.dom.getParent(t.selection.getNode(),(function(e){if(1===e.nodeType&&i++===r)return t.selection.select(e),!1}),t.getBody())},mceSelectNode:function(e,n,r){t.selection.select(r)},mceInsertContent:function(e,n,r){bz(t,r)},mceInsertRawHTML:function(e,n,r){t.selection.setContent("tiny_mce_marker");var i=t.getContent();t.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(e,n,r){QI(t,r)},mceToggleFormat:function(t,n,r){e.toggleFormat(r)},mceSetContent:function(e,n,r){t.setContent(r)},"Indent,Outdent":function(e){MN(t,e)},mceRepaint:function(){},InsertHorizontalRule:function(){t.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){t.hasVisual=!t.hasVisual,t.addVisual()},mceReplaceContent:function(e,n,r){t.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,t.selection.getContent({format:"text"})))},mceInsertLink:function(e,n,r){"string"===typeof r&&(r={href:r});var i=t.dom.getParent(t.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||t.formatter.remove("link"),r.href&&t.formatter.apply("link",r,i)},selectAll:function(){var e=t.dom.getParent(t.selection.getStart(),ti);if(e){var n=t.dom.createRng();n.selectNodeContents(e),t.selection.setRng(n)}},mceNewDocument:function(){t.setContent("")},InsertLineBreak:function(e,n,r){return BI(t,r),!0}});var n=function(e){return function(){var n=t.selection,r=n.isCollapsed()?[t.dom.getParent(n.getNode(),t.dom.isBlock)]:n.getSelectedBlocks(),i=wz(r,(function(n){return!!t.formatter.matchNode(n,e)}));return-1!==_z(i,!0)}};e.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(t){return e.isFormatMatch(t)},mceBlockQuote:function(){return e.isFormatMatch("blockquote")},Outdent:function(){return xN(t)},"InsertUnorderedList,InsertOrderedList":function(e){var n=t.dom.getParent(t.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===e&&"UL"===n.tagName||"insertorderedlist"===e&&"OL"===n.tagName)}},"state"),e.addCommands({Undo:function(){t.undoManager.undo()},Redo:function(){t.undoManager.redo()}}),e.addQueryValueHandler("FontName",(function(){return dz(t)}),this),e.addQueryValueHandler("FontSize",(function(){return pz(t)}),this),e.addQueryValueHandler("LineHeight",(function(){return mz(t)}),this)},t}(),Cz="data-mce-contenteditable",Sz=function(t,e,n){dl(t,e)&&!1===n?fl(t,e):n&&cl(t,e)},kz=function(t,e,n){try{t.getDoc().execCommand(e,!1,String(n))}catch(r){}},Mz=function(t,e){t.dom.contentEditable=e?"true":"false"},Ez=function(t){Z(pl(t,'*[contenteditable="true"]'),(function(t){ai(t,Cz,"true"),Mz(t,!1)}))},Oz=function(t){Z(pl(t,"*["+Cz+'="true"]'),(function(t){fi(t,Cz),Mz(t,!0)}))},Tz=function(t){O.from(t.selection.getNode()).each((function(t){t.removeAttribute("data-mce-selected")}))},Az=function(t){t.selection.setRng(t.selection.getRng())},Dz=function(t,e){var n=gn.fromDom(t.getBody());Sz(n,"mce-content-readonly",e),e?(t.selection.controlSelection.hideResizeRect(),t._selectionOverrides.hideFakeCaret(),Tz(t),t.readonly=!0,Mz(n,!1),Ez(n)):(t.readonly=!1,Mz(n,!0),Oz(n),kz(t,"StyleWithCSS",!1),kz(t,"enableInlineTableEditing",!1),kz(t,"enableObjectResizing",!1),Qb(t)&&t.focus(),Az(t),t.nodeChanged())},Nz=function(t){return t.readonly},Rz=function(t){t.parser.addAttributeFilter("contenteditable",(function(e){Nz(t)&&Z(e,(function(t){t.attr(Cz,t.attr("contenteditable")),t.attr("contenteditable","false")}))})),t.serializer.addAttributeFilter(Cz,(function(e){Nz(t)&&Z(e,(function(t){t.attr("contenteditable",t.attr(Cz))}))})),t.serializer.addTempAttr(Cz)},Pz=function(t){t.serializer?Rz(t):t.on("PreInit",(function(){Rz(t)}))},Iz=function(t){return"click"===t.type},Bz=function(t,e){var n=function(e){return Tn(e,gn.fromDom(t.getBody()))};return Qi(e,"a",n).bind((function(t){return ci(t,"href")}))},Lz=function(t,e){if(Iz(e)&&!Fg.metaKeyPressed(e)){var n=gn.fromDom(e.target);Bz(t,n).each((function(n){if(e.preventDefault(),/^#/.test(n)){var r=t.dom.select(n+',[name="'+oe(n,"#")+'"]');r.length&&t.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},zz=function(t){t.on("ShowCaret",(function(e){Nz(t)&&e.preventDefault()})),t.on("ObjectSelected",(function(e){Nz(t)&&e.preventDefault()}))},jz=ln.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),Fz=function(){function t(t){this.bindings={},this.settings=t||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||x}return t.isNative=function(t){return!!jz[t.toLowerCase()]},t.prototype.fire=function(t,e){var n=t.toLowerCase(),r=e||{};r.type=n,r.target||(r.target=this.scope),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=C},r.stopPropagation=function(){r.isPropagationStopped=C},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=C},r.isDefaultPrevented=x,r.isPropagationStopped=x,r.isImmediatePropagationStopped=x),this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}return r},t.prototype.on=function(t,e,n,r){if(!1===e&&(e=x),e){var i={func:e};r&&ln.extend(i,r);var o=t.toLowerCase().split(" "),a=o.length;while(a--){var s=o[a],u=this.bindings[s];u||(u=this.bindings[s]=[],this.toggleEvent(s,!0)),n?u.unshift(i):u.push(i)}}return this},t.prototype.off=function(t,e){var n=this;if(t){var r=t.toLowerCase().split(" "),i=r.length;while(i--){var o=r[i],a=this.bindings[o];if(!o)return wt(this.bindings,(function(t,e){n.toggleEvent(e,!1),delete n.bindings[e]})),this;if(a){if(e){var s=a.length;while(s--)a[s].func===e&&(a=a.slice(0,s).concat(a.slice(s+1)),this.bindings[o]=a)}else a.length=0;a.length||(this.toggleEvent(t,!1),delete this.bindings[o])}}}else wt(this.bindings,(function(t,e){n.toggleEvent(e,!1)})),this.bindings={};return this},t.prototype.once=function(t,e,n){return this.on(t,e,n,{once:!0})},t.prototype.has=function(t){return t=t.toLowerCase(),!(!this.bindings[t]||0===this.bindings[t].length)},t}(),$z=function(t){return t._eventDispatcher||(t._eventDispatcher=new Fz({scope:t,toggleEvent:function(e,n){Fz.isNative(e)&&t.toggleNativeEvent&&t.toggleNativeEvent(e,n)}})),t._eventDispatcher},Hz={fire:function(t,e,n){var r=this;if(r.removed&&"remove"!==t&&"detach"!==t)return e;var i=$z(r).fire(t,e);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(t,i,!1),o=o.parent()}return i},on:function(t,e,n){return $z(this).on(t,e,n)},off:function(t,e){return $z(this).off(t,e)},once:function(t,e){return $z(this).once(t,e)},hasEventListeners:function(t){return $z(this).has(t)}},Vz=Tc.DOM,Uz=function(t,e){if("selectionchange"===e)return t.getDoc();if(!t.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(e))return t.getDoc().documentElement;var n=Ud(t);return n?(t.eventRoot||(t.eventRoot=Vz.select(n)[0]),t.eventRoot):t.getBody()},qz=function(t){return!t.hidden&&!Nz(t)},Wz=function(t,e,n){qz(t)?t.fire(e,n):Nz(t)&&Lz(t,n)},Kz=function(t,e){var n;if(t.delegates||(t.delegates={}),!t.delegates[e]&&!t.removed){var r=Uz(t,e);if(Ud(t)){if(dR||(dR={},t.editorManager.on("removeEditor",(function(){t.editorManager.activeEditor||dR&&(wt(dR,(function(e,n){t.dom.unbind(Uz(t,n))})),dR=null)}))),dR[e])return;n=function(n){var r=n.target,i=t.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||Vz.isChildOf(r,a))&&Wz(i[o],e,n)}},dR[e]=n,Vz.bind(r,e,n)}else n=function(n){Wz(t,e,n)},Vz.bind(r,e,n),t.delegates[e]=n}},Gz=Ht(Ht({},Hz),{bindPendingEventDelegates:function(){var t=this;ln.each(t._pendingNativeEvents,(function(e){Kz(t,e)}))},toggleNativeEvent:function(t,e){var n=this;"focus"!==t&&"blur"!==t&&(e?n.initialized?Kz(n,t):n._pendingNativeEvents?n._pendingNativeEvents.push(t):n._pendingNativeEvents=[t]:n.initialized&&(n.dom.unbind(Uz(n,t),t,n.delegates[t]),delete n.delegates[t]))},unbindAllNativeEvents:function(){var t=this,e=t.getBody(),n=t.dom;t.delegates&&(wt(t.delegates,(function(e,n){t.dom.unbind(Uz(t,n),n,e)})),delete t.delegates),!t.inline&&e&&n&&(e.onload=null,n.unbind(t.getWin()),n.unbind(t.getDoc())),n&&(n.unbind(e),n.unbind(t.getContainer()))}}),Yz=["design","readonly"],Xz=function(t,e,n,r){var i=n[e.get()],o=n[r];try{o.activate()}catch(gF){return void console.error("problem while activating editor mode "+r+":",gF)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&Dz(t,o.editorReadOnly),e.set(r),Ng(t,r)},Zz=function(t,e,n,r){if(r!==n.get()){if(!At(e,r))throw new Error("Editor mode '"+r+"' is invalid");t.initialized?Xz(t,n,e,r):t.on("init",(function(){return Xz(t,n,e,r)}))}},Jz=function(t,e,n){var r;if(G(Yz,e))throw new Error("Cannot override default mode "+e);return Ht(Ht({},t),(r={},r[e]=Ht(Ht({},n),{deactivate:function(){try{n.deactivate()}catch(gF){console.error("problem while deactivating editor mode "+e+":",gF)}}}),r))},Qz=function(t){var e=zc("design"),n=zc({design:{activate:h,deactivate:h,editorReadOnly:!1},readonly:{activate:h,deactivate:h,editorReadOnly:!0}});return Pz(t),zz(t),{isReadOnly:function(){return Nz(t)},set:function(r){return Zz(t,n.get(),e,r)},get:function(){return e.get()},register:function(t,e){n.set(Jz(n.get(),t,e))}}},tj=ln.each,ej=ln.explode,nj={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},rj=ln.makeMap("alt,ctrl,shift,meta,access"),ij=function(){function t(t){this.shortcuts={},this.pendingPatterns=[],this.editor=t;var e=this;t.on("keyup keypress keydown",(function(t){!e.hasModifier(t)&&!e.isFunctionKey(t)||t.isDefaultPrevented()||(tj(e.shortcuts,(function(n){if(e.matchShortcut(t,n))return e.pendingPatterns=n.subpatterns.slice(0),"keydown"===t.type&&e.executeShortcutAction(n),!0})),e.matchShortcut(t,e.pendingPatterns[0])&&(1===e.pendingPatterns.length&&"keydown"===t.type&&e.executeShortcutAction(e.pendingPatterns[0]),e.pendingPatterns.shift()))}))}return t.prototype.add=function(t,e,n,r){var i=this,o=i.normalizeCommandFunc(n);return tj(ej(ln.trim(t)),(function(t){var n=i.createShortcut(t,e,o,r);i.shortcuts[n.id]=n})),!0},t.prototype.remove=function(t){var e=this.createShortcut(t);return!!this.shortcuts[e.id]&&(delete this.shortcuts[e.id],!0)},t.prototype.normalizeCommandFunc=function(t){var e=this,n=t;return"string"===typeof n?function(){e.editor.execCommand(n,!1,null)}:ln.isArray(n)?function(){e.editor.execCommand(n[0],n[1],n[2])}:n},t.prototype.parseShortcut=function(t){var e,n={};tj(ej(t.toLowerCase(),"+"),(function(t){t in rj?n[t]=!0:/^[0-9]{2,}$/.test(t)?n.keyCode=parseInt(t,10):(n.charCode=t.charCodeAt(0),n.keyCode=nj[t]||t.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(e in rj)n[e]?r.push(e):n[e]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,Xe.mac?n.ctrl=!0:n.shift=!0),n.meta&&(Xe.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},t.prototype.createShortcut=function(t,e,n,r){var i=ln.map(ej(t,">"),this.parseShortcut);return i[i.length-1]=ln.extend(i[i.length-1],{func:n,scope:r||this.editor}),ln.extend(i[0],{desc:this.editor.translate(e),subpatterns:i.slice(1)})},t.prototype.hasModifier=function(t){return t.altKey||t.ctrlKey||t.metaKey},t.prototype.isFunctionKey=function(t){return"keydown"===t.type&&t.keyCode>=112&&t.keyCode<=123},t.prototype.matchShortcut=function(t,e){return!!e&&(e.ctrl===t.ctrlKey&&e.meta===t.metaKey&&(e.alt===t.altKey&&e.shift===t.shiftKey&&(!!(t.keyCode===e.keyCode||t.charCode&&t.charCode===e.charCode)&&(t.preventDefault(),!0))))},t.prototype.executeShortcutAction=function(t){return t.func?t.func.call(t.scope):null},t}(),oj=function(){var t={},e={},n={},r={},i={},o={},a={},s=function(t,e){return function(n,r){return t[n.toLowerCase()]=Ht(Ht({},r),{type:e})}},u=function(t,e){return r[t.toLowerCase()]=e};return{addButton:s(t,"button"),addGroupToolbarButton:s(t,"grouptoolbarbutton"),addToggleButton:s(t,"togglebutton"),addMenuButton:s(t,"menubutton"),addSplitButton:s(t,"splitbutton"),addMenuItem:s(e,"menuitem"),addNestedMenuItem:s(e,"nestedmenuitem"),addToggleMenuItem:s(e,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:u,getAll:function(){return{buttons:t,menuItems:e,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},aj=function(){var t=oj();return{addAutocompleter:t.addAutocompleter,addButton:t.addButton,addContextForm:t.addContextForm,addContextMenu:t.addContextMenu,addContextToolbar:t.addContextToolbar,addIcon:t.addIcon,addMenuButton:t.addMenuButton,addMenuItem:t.addMenuItem,addNestedMenuItem:t.addNestedMenuItem,addSidebar:t.addSidebar,addSplitButton:t.addSplitButton,addToggleButton:t.addToggleButton,addGroupToolbarButton:t.addGroupToolbarButton,addToggleMenuItem:t.addToggleMenuItem,getAll:t.getAll}},sj=ln.each,uj=ln.trim,cj="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),lj={ftp:21,http:80,https:443,mailto:25},fj=function(){function t(e,n){e=uj(e),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))i.source=e;else{var o=0===e.indexOf("//");if(0!==e.indexOf("/")||o||(e=(r&&r.protocol||"http")+"://mce_host"+e),!/^[\w\-]*:?\/\//.test(e)){var a=this.settings.base_uri?this.settings.base_uri.path:new t(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)e="//mce_host"+i.toAbsPath(a,e);else{var s=/([^#?]*)([#?]?.*)/.exec(e);e=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}e=e.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);sj(cj,(function(t,e){var n=u[e];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[t]=n})),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}}return t.parseDataUri=function(t){var e,n=decodeURIComponent(t).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(e=r[1]),{type:e,data:n[1]}},t.getDocumentBaseUrl=function(t){var e;return e=0!==t.protocol.indexOf("http")&&"file:"!==t.protocol?t.href:t.protocol+"//"+t.host+t.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(e)&&(e=e.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e)||(e+="/")),e},t.prototype.setPath=function(t){var e=/^(.*?)\/?(\w+)?$/.exec(t);this.path=e[0],this.directory=e[1],this.file=e[2],this.source="",this.getURI()},t.prototype.toRelative=function(e){var n;if("./"===e)return e;var r=new t(e,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},t.prototype.toAbsolute=function(e,n){var r=new t(e,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},t.prototype.isSameOrigin=function(t){if(this.host==t.host&&this.protocol==t.protocol){if(this.port==t.port)return!0;var e=lj[this.protocol];if(e&&(this.port||e)==(t.port||e))return!0}return!1},t.prototype.toRelPath=function(t,e){var n,r,i=0,o="",a=t.substring(0,t.lastIndexOf("/")).split("/"),s=e.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return e;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},t.prototype.toAbsPath=function(t,e){var n,r,i=0,o=[],a=/\/$/.test(e)?"/":"",s=t.split("/"),u=e.split("/");for(sj(s,(function(t){t&&o.push(t)})),s=o,n=u.length-1,o=[];n>=0;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?i>0?i--:o.push(u[n]):i++);return n=s.length-i,r=n<=0?ct(o).join("/"):s.slice(0,n).join("/")+"/"+ct(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},t.prototype.getURI=function(t){var e;return void 0===t&&(t=!1),this.source&&!t||(e="",t||(this.protocol?e+=this.protocol+"://":e+="//",this.userInfo&&(e+=this.userInfo+"@"),this.host&&(e+=this.host),this.port&&(e+=":"+this.port)),this.path&&(e+=this.path),this.query&&(e+="?"+this.query),this.anchor&&(e+="#"+this.anchor),this.source=e),this.source},t}(),dj=Tc.DOM,hj=ln.extend,pj=ln.each,mj=ln.resolve,gj=Xe.ie,vj=function(){function t(t,e,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,hj(this,Gz),this.settings=CO(this,t,this.documentBaseUrl,n.defaultSettings,e),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Lc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Tc.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),Qc.languageLoad=this.settings.language_load,Qc.baseURL=n.baseURL,this.id=t,this.setDirty(!1),this.documentBaseURI=new fj(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new ij(this),this.editorCommands=new xz(this),this.settings.cache_suffix&&(Xe.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:aj(),styleSheetLoader:void 0,show:h,hide:h,enable:h,disable:h,isDisabled:x};var i=this,o=Qz(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=wc.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return t.prototype.render=function(){ZL(this)},t.prototype.focus=function(t){ny(this,t)},t.prototype.hasFocus=function(){return Jb(this)},t.prototype.execCallback=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i=this,o=i.settings[t];if(o)return i.callbackLookup&&(r=i.callbackLookup[t])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?mj(r):0,o=mj(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[t]={func:o,scope:r}),o.apply(r||i,e)},t.prototype.translate=function(t){return Zc.translate(t)},t.prototype.getParam=function(t,e,n){return EO(this,t,e,n)},t.prototype.hasPlugin=function(t,e){var n=G(fh(this).split(/[ ,]/),t);return!!n&&(!e||void 0!==UO.get(t))},t.prototype.nodeChanged=function(t){this._nodeChangeDispatcher.nodeChanged(t)},t.prototype.addCommand=function(t,e,n){this.editorCommands.addCommand(t,e,n)},t.prototype.addQueryStateHandler=function(t,e,n){this.editorCommands.addQueryStateHandler(t,e,n)},t.prototype.addQueryValueHandler=function(t,e,n){this.editorCommands.addQueryValueHandler(t,e,n)},t.prototype.addShortcut=function(t,e,n,r){this.shortcuts.add(t,e,n,r)},t.prototype.execCommand=function(t,e,n,r){return this.editorCommands.execCommand(t,e,n,r)},t.prototype.queryCommandState=function(t){return this.editorCommands.queryCommandState(t)},t.prototype.queryCommandValue=function(t){return this.editorCommands.queryCommandValue(t)},t.prototype.queryCommandSupported=function(t){return this.editorCommands.queryCommandSupported(t)},t.prototype.show=function(){var t=this;t.hidden&&(t.hidden=!1,t.inline?t.getBody().contentEditable="true":(dj.show(t.getContainer()),dj.hide(t.id)),t.load(),t.fire("show"))},t.prototype.hide=function(){var t=this,e=t.getDoc();t.hidden||(gj&&e&&!t.inline&&e.execCommand("SelectAll"),t.save(),t.inline?(t.getBody().contentEditable="false",t===t.editorManager.focusedEditor&&(t.editorManager.focusedEditor=null)):(dj.hide(t.getContainer()),dj.setStyle(t.id,"display",t.orgDisplay)),t.hidden=!0,t.fire("hide"))},t.prototype.isHidden=function(){return!!this.hidden},t.prototype.setProgressState=function(t,e){this.fire("ProgressState",{state:t,time:e})},t.prototype.load=function(t){var e,n=this,r=n.getElement();if(n.removed)return"";if(r){t=t||{},t.load=!0;var i=Kr(r)?r.value:r.innerHTML;return e=n.setContent(i,t),t.element=r,t.no_events||n.fire("LoadContent",t),t.element=r=null,e}},t.prototype.save=function(t){var e,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return t=t||{},t.save=!0,t.element=i,e=t.content=r.getContent(t),t.no_events||r.fire("SaveContent",t),"raw"===t.format&&r.fire("RawSaveContent",t),e=t.content,Kr(i)?i.value=e:(!t.is_removing&&r.inline||(i.innerHTML=e),(n=dj.getParent(r.id,"form"))&&pj(n.elements,(function(t){if(t.name===r.id)return t.value=e,!1}))),t.element=i=null,!1!==t.set_dirty&&r.setDirty(!1),e},t.prototype.setContent=function(t,e){return HE(this,t,e)},t.prototype.getContent=function(t){return $E(this,t)},t.prototype.insertContent=function(t,e){e&&(t=hj({content:t},e)),this.execCommand("mceInsertContent",!1,t)},t.prototype.resetContent=function(t){void 0===t?HE(this,this.startContent,{format:"raw"}):HE(this,t),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},t.prototype.isDirty=function(){return!this.isNotDirty},t.prototype.setDirty=function(t){var e=!this.isNotDirty;this.isNotDirty=!t,t&&t!==e&&this.fire("dirty")},t.prototype.getContainer=function(){var t=this;return t.container||(t.container=dj.get(t.editorContainer||t.id+"_parent")),t.container},t.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},t.prototype.getElement=function(){return this.targetElm||(this.targetElm=dj.get(this.id)),this.targetElm},t.prototype.getWin=function(){var t,e=this;return e.contentWindow||(t=e.iframeElement,t&&(e.contentWindow=t.contentWindow)),e.contentWindow},t.prototype.getDoc=function(){var t,e=this;return e.contentDocument||(t=e.getWin(),t&&(e.contentDocument=t.document)),e.contentDocument},t.prototype.getBody=function(){var t=this.getDoc();return this.bodyElement||(t?t.body:null)},t.prototype.convertURL=function(t,e,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",t,n,!0,e):!i.convert_urls||n&&"LINK"===n.nodeName||0===t.indexOf("file:")||0===t.length?t:i.relative_urls?r.documentBaseURI.toRelative(t):(t=r.documentBaseURI.toAbsolute(t,i.remove_script_host),t)},t.prototype.addVisual=function(t){JL(this,t)},t.prototype.remove=function(){GE(this)},t.prototype.destroy=function(t){YE(this,t)},t.prototype.uploadImages=function(t){return this.editorUpload.uploadImages(t)},t.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},t.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},t.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},t.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},t.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},t}(),bj=Tc.DOM,yj=ln.explode,wj=ln.each,_j=ln.extend,xj=0,Cj=!1,Sj=[],kj=[],Mj=function(t){return"length"!==t},Ej=function(t){var e=t.type;wj(Nj.get(),(function(n){switch(e){case"scroll":n.fire("ScrollWindow",t);break;case"resize":n.fire("ResizeWindow",t);break}}))},Oj=function(t){t!==Cj&&(t?wc(window).on("resize scroll",Ej):wc(window).off("resize scroll",Ej),Cj=t)},Tj=function(t){var e=kj;delete Sj[t.id];for(var n=0;n<Sj.length;n++)if(Sj[n]===t){Sj.splice(n,1);break}return kj=tt(kj,(function(e){return t!==e})),Nj.activeEditor===t&&(Nj.activeEditor=kj.length>0?kj[0]:null),Nj.focusedEditor===t&&(Nj.focusedEditor=null),e.length!==kj.length},Aj=function(t){return t&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(Tj(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null),t},Dj="CSS1Compat"!==document.compatMode,Nj=Ht(Ht({},Hz),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:wc,majorVersion:"5",minorVersion:"6.2",releaseDate:"2020-12-08",editors:Sj,i18n:Zc,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var t,e,n=this,r="";e=fj.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(e)&&(e=e.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e)||(e+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)t=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var u=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==u.indexOf(".min")&&(r=".min"),t=s.substring(0,s.lastIndexOf("/"));break}}}if(!t&&document.currentScript){s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),t=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new fj(e).toAbsolute(t),n.documentBaseURL=e,n.baseURI=new fj(n.baseURL),n.suffix=r,Hb(n)},overrideDefaults:function(t){var e=t.base_url;e&&this._setBaseUrl(e);var n=t.suffix;t.suffix&&(this.suffix=n),this.defaultSettings=t;var r=t.plugin_base_urls;void 0!==r&&wt(r,(function(t,e){Qc.PluginManager.urls[e]=t}))},init:function(t){var e,n=this,r=ln.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),i=function(t,e){return t.inline&&e.tagName.toLowerCase()in r},o=function(t){var e=t.id;return e||(e=Tt(t,"name").filter((function(t){return!bj.get(t)})).getOrThunk(bj.uniqueId),t.setAttribute("id",e)),e},a=function(e){var r=t[e];if(r)return r.apply(n,Array.prototype.slice.call(arguments,2))},s=function(t,e){return e.constructor===RegExp?e.test(t.className):bj.hasClass(t,e)},u=function(t){var e=[];if(Xe.browser.isIE()&&Xe.browser.version.major<11)return rT("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(Dj)return rT("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(t.types)return wj(t.types,(function(t){e=e.concat(bj.select(t.selector))})),e;if(t.selector)return bj.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":var n=t.elements||"";n.length>0&&wj(yj(n),(function(t){var n=bj.get(t);n?e.push(n):wj(document.forms,(function(n){wj(n.elements,(function(n){n.name===t&&(t="mce_editor_"+xj++,bj.setAttrib(n,"id",t),e.push(n))}))}))}));break;case"textareas":case"specific_textareas":wj(bj.select("textarea"),(function(n){t.editor_deselector&&s(n,t.editor_deselector)||t.editor_selector&&!s(n,t.editor_selector)||e.push(n)}));break}return e},c=function(t){e=t},l=function(){var e,r=0,s=[],f=function(t,i,o){var a=new vj(t,i,n);s.push(a),a.on("init",(function(){++r===e.length&&c(s)})),a.targetElm=a.targetElm||o,a.render()};bj.unbind(window,"ready",l),a("onpageload"),e=wc.unique(u(t)),t.types?wj(t.types,(function(n){ln.each(e,(function(e){return!bj.is(e,n.selector)||(f(o(e),_j({},t,n),e),!1)}))})):(ln.each(e,(function(t){Aj(n.get(t.id))})),e=ln.grep(e,(function(t){return!n.get(t.id)})),0===e.length?c([]):wj(e,(function(e){i(t,e)?rT("Could not initialize inline editor on invalid inline target element",e):f(o(e),t,e)})))};return n.settings=t,bj.bind(window,"ready",l),new eo((function(t){e?t(e):c=function(e){t(e)}}))},get:function(t){return 0===arguments.length?kj.slice(0):R(t)?it(kj,(function(e){return e.id===t})).getOr(null):H(t)&&kj[t]?kj[t]:null},add:function(t){var e=this,n=Sj[t.id];return n===t||(null===e.get(t.id)&&(Mj(t.id)&&(Sj[t.id]=t),Sj.push(t),kj.push(t)),Oj(!0),e.activeEditor=t,e.fire("AddEditor",{editor:t}),hR||(hR=function(t){var n=e.fire("BeforeUnload");if(n.returnValue)return t.preventDefault(),t.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",hR))),t},createEditor:function(t,e){return this.add(new vj(t,e,this))},remove:function(t){var e,n,r=this;if(t){if(!R(t))return n=t,B(r.get(n.id))?null:(Tj(n)&&r.fire("RemoveEditor",{editor:n}),0===kj.length&&window.removeEventListener("beforeunload",hR),n.remove(),Oj(kj.length>0),n);wj(bj.select(t),(function(t){n=r.get(t.id),n&&r.remove(n)}))}else for(e=kj.length-1;e>=0;e--)r.remove(kj[e])},execCommand:function(t,e,n){var r=this,i=r.get(n);switch(t){case"mceAddEditor":return r.get(n)||new vj(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",0,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(t,e,n)},triggerSave:function(){wj(kj,(function(t){t.save()}))},addI18n:function(t,e){Zc.add(t,e)},translate:function(t){return Zc.translate(t)},setActive:function(t){var e=this.activeEditor;this.activeEditor!==t&&(e&&e.fire("deactivate",{relatedTarget:t}),t.fire("activate",{relatedTarget:e})),this.activeEditor=t},_setBaseUrl:function(t){this.baseURL=new fj(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new fj(this.baseURL)}});Nj.setup();var Rj,Pj,Ij=Math.min,Bj=Math.max,Lj=Math.round,zj=function(t,e,n){var r=e.x,i=e.y,o=t.w,a=t.h,s=e.w,u=e.h,c=(n||"").split("");return"b"===c[0]&&(i+=u),"r"===c[1]&&(r+=s),"c"===c[0]&&(i+=Lj(u/2)),"c"===c[1]&&(r+=Lj(s/2)),"b"===c[3]&&(i-=a),"r"===c[4]&&(r-=o),"c"===c[3]&&(i-=Lj(a/2)),"c"===c[4]&&(r-=Lj(o/2)),Vj(r,i,o,a)},jj=function(t,e,n,r){var i,o;for(o=0;o<r.length;o++)if(i=zj(t,e,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},Fj=function(t,e,n){return Vj(t.x-e,t.y-n,t.w+2*e,t.h+2*n)},$j=function(t,e){var n=Bj(t.x,e.x),r=Bj(t.y,e.y),i=Ij(t.x+t.w,e.x+e.w),o=Ij(t.y+t.h,e.y+e.h);return i-n<0||o-r<0?null:Vj(n,r,i-n,o-r)},Hj=function(t,e,n){var r=t.x,i=t.y,o=t.x+t.w,a=t.y+t.h,s=e.x+e.w,u=e.y+e.h,c=Bj(0,e.x-r),l=Bj(0,e.y-i),f=Bj(0,o-s),d=Bj(0,a-u);return r+=c,i+=l,n&&(o+=c,a+=l,r-=f,i-=d),o-=f,a-=d,Vj(r,i,o-r,a-i)},Vj=function(t,e,n,r){return{x:t,y:e,w:n,h:r}},Uj=function(t){return Vj(t.left,t.top,t.width,t.height)},qj={inflate:Fj,relativePosition:zj,findBestRelativePosition:jj,intersect:$j,clamp:Hj,create:Vj,fromClientRect:Uj},Wj=function(t,e,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),t.apply(null,e))}},a=o(t),s=o(e),u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r||null!==i||(i=setTimeout((function(){return s.apply(null,t)}),n))};return{start:u,resolve:a,reject:s}},Kj=function(){var t={},e={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==t[n])return t[n];var a=new eo((function(t,a){var s=Wj(t,a);e[n]=s.resolve,Lc.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return t[n]=a,a},r=function(n,r){void 0!==e[n]&&(e[n](r),delete e[n]),t[n]=eo.resolve(r)};return{load:n,add:r}},Gj=Kj(),Yj=ln.each,Xj=ln.extend,Zj=function(){};Zj.extend=Rj=function(t){var e=this,n=e.prototype,r=function(){var t,e,n,r=this;if(!Pj&&(r.init&&r.init.apply(r,arguments),e=r.Mixins,e)){t=e.length;while(t--)n=e[t],n.init&&n.init.apply(r,arguments)}},i=function(){return this},o=function(t,e){return function(){var r=this,i=r._super;r._super=n[t];var o=e.apply(r,arguments);return r._super=i,o}};Pj=!0;var a=new e;return Pj=!1,t.Mixins&&(Yj(t.Mixins,(function(e){for(var n in e)"init"!==n&&(t[n]=e[n])})),n.Mixins&&(t.Mixins=n.Mixins.concat(t.Mixins))),t.Methods&&Yj(t.Methods.split(","),(function(e){t[e]=i})),t.Properties&&Yj(t.Properties.split(","),(function(e){var n="_"+e;t[e]=function(t){var e=this;return void 0!==t?(e[n]=t,e):e[n]}})),t.Statics&&Yj(t.Statics,(function(t,e){r[e]=t})),t.Defaults&&n.Defaults&&(t.Defaults=Xj({},n.Defaults,t.Defaults)),wt(t,(function(t,e){"function"===typeof t&&n[e]?a[e]=o(e,t):a[e]=t})),r.prototype=a,r.constructor=r,r.extend=Rj,r};var Jj,Qj=Math.min,tF=Math.max,eF=Math.round,nF=function(t){var e={},n=0,r=0,i=0,o=function(t,e,n){var r,i,o;r=0,i=0,o=0,t/=255,e/=255,n/=255;var a=Qj(t,Qj(e,n)),s=tF(t,tF(e,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var u=t===a?e-n:n===a?t-e:n-t;return r=t===a?3:n===a?1:5,r=60*(r-u/(s-a)),i=(s-a)/s,o=s,{h:eF(r),s:eF(100*i),v:eF(100*o)}},a=function(t,e,o){if(t=(parseInt(t,10)||0)%360,e=parseInt(e,10)/100,o=parseInt(o,10)/100,e=tF(0,Qj(e,1)),o=tF(0,Qj(o,1)),0!==e){var a=t/60,s=o*e,u=s*(1-Math.abs(a%2-1)),c=o-s;switch(Math.floor(a)){case 0:n=s,r=u,i=0;break;case 1:n=u,r=s,i=0;break;case 2:n=0,r=s,i=u;break;case 3:n=0,r=u,i=s;break;case 4:n=u,r=0,i=s;break;case 5:n=s,r=0,i=u;break;default:n=r=i=0}n=eF(255*(n+c)),r=eF(255*(r+c)),i=eF(255*(i+c))}else n=r=i=eF(255*o)},s=function(){var t=function(t){return t=parseInt(t,10).toString(16),t.length>1?t:"0"+t};return"#"+t(n)+t(r)+t(i)},u=function(){return{r:n,g:r,b:i}},c=function(){return o(n,r,i)},l=function(t){var o;return"object"===typeof t?"r"in t?(n=t.r,r=t.g,i=t.b):"v"in t&&a(t.h,t.s,t.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(t))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(t))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(t))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,e};return t&&l(t),e.toRgb=u,e.toHsv=c,e.toHex=s,e.parse=l,e},rF=function(t){var e=JSON.stringify(t);return R(e)?e.replace(/[\u0080-\uFFFF]/g,(function(t){var e=t.charCodeAt(0).toString(16);return"\\u"+"0000".substring(e.length)+e})):e},iF={serialize:rF,parse:function(t){try{return JSON.parse(t)}catch(e){}}},oF={callbacks:{},count:0,send:function(t){var e=this,n=Tc.DOM,r=void 0!==t.count?t.count:e.count,i="tinymce_jsonp_"+r;e.callbacks[r]=function(o){n.remove(i),delete e.callbacks[r],t.callback(o)},n.add(n.doc.body,"script",{id:i,src:t.url,type:"text/javascript"}),e.count++}},aF=Ht(Ht({},Hz),{send:function(t){var e,n=0,r=function(){!t.async||4===e.readyState||n++>1e4?(t.success&&n<1e4&&200===e.status?t.success.call(t.success_scope,""+e.responseText,e,t):t.error&&t.error.call(t.error_scope,n>1e4?"TIMED_OUT":"GENERAL",e,t),e=null):uo.setTimeout(r,10)};if(t.scope=t.scope||this,t.success_scope=t.success_scope||t.scope,t.error_scope=t.error_scope||t.scope,t.async=!1!==t.async,t.data=t.data||"",aF.fire("beforeInitialize",{settings:t}),e=new XMLHttpRequest,e.overrideMimeType&&e.overrideMimeType(t.content_type),e.open(t.type||(t.data?"POST":"GET"),t.url,t.async),t.crossDomain&&(e.withCredentials=!0),t.content_type&&e.setRequestHeader("Content-Type",t.content_type),t.requestheaders&&ln.each(t.requestheaders,(function(t){e.setRequestHeader(t.key,t.value)})),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e=aF.fire("beforeSend",{xhr:e,settings:t}).xhr,e.send(t.data),!t.async)return r();uo.setTimeout(r,10)}}),sF=ln.extend,uF=function(){function t(t){this.settings=sF({},t),this.count=0}return t.sendRPC=function(e){return(new t).send(e)},t.prototype.send=function(t){var e=t.error,n=t.success,r=sF(this.settings,t);r.success=function(t,i){t=iF.parse(t),"undefined"===typeof t&&(t={error:"JSON Parse error."}),t.error?e.call(r.error_scope||r.scope,t.error,i):n.call(r.success_scope||r.scope,t.result)},r.error=function(t,n){e&&e.call(r.error_scope||r.scope,t,n)},r.data=iF.serialize({id:t.id||"c"+this.count++,method:t.method,params:t.params}),r.content_type="application/json",aF.send(r)},t}(),cF=function(){return function(){var t={},e=[],n={getItem:function(e){var n=t[e];return n||null},setItem:function(n,r){e.push(n),t[n]=String(r)},key:function(t){return e[t]},removeItem:function(n){e=e.filter((function(t){return t===n})),delete t[n]},clear:function(){e=[],t={}},length:0};return Object.defineProperty(n,"length",{get:function(){return e.length},configurable:!1,enumerable:!1}),n}()};try{var lF="__storage_test__";Jj=window.localStorage,Jj.setItem(lF,lF),Jj.removeItem(lF)}catch(gF){Jj=cF()}var fF=Jj,dF={geom:{Rect:qj},util:{Promise:eo,Delay:uo,Tools:ln,VK:Fg,URI:fj,Class:Zj,EventDispatcher:Fz,Observable:Hz,I18n:Zc,XHR:aF,JSON:iF,JSONRequest:uF,JSONP:oF,LocalStorage:fF,Color:nF},dom:{EventUtils:Us,Sizzle:Ou,DomQuery:wc,TreeWalker:ho,TextSeeker:Il,DOMUtils:Tc,ScriptLoader:Lc,RangeUtils:lv,Serializer:jE,StyleSheetLoader:co,ControlSelection:Hg,BookmarkManager:kg,Selection:GM,Event:Us.Event},html:{Styles:Ns,Entities:es,Node:Ty,Schema:ds,SaxParser:qy,DomParser:ME,Writer:Dy,Serializer:Ny},Env:Xe,AddOnManager:Qc,Annotator:Cg,Formatter:kT,UndoManager:OT,EditorCommands:xz,WindowManager:KO,NotificationManager:VO,EditorObservable:Gz,Shortcuts:ij,Editor:vj,FocusManager:Ob,EditorManager:Nj,DOM:Tc.DOM,ScriptLoader:Lc.ScriptLoader,PluginManager:UO,ThemeManager:qO,IconManager:TO,Resource:Gj,trim:ln.trim,isArray:ln.isArray,is:ln.is,toArray:ln.toArray,makeMap:ln.makeMap,each:ln.each,map:ln.map,grep:ln.grep,inArray:ln.inArray,extend:ln.extend,create:ln.create,walk:ln.walk,createNS:ln.createNS,resolve:ln.resolve,explode:ln.explode,_addCacheSuffix:ln._addCacheSuffix,isOpera:Xe.opera,isWebKit:Xe.webkit,isIE:Xe.ie,isGecko:Xe.gecko,isMac:Xe.mac},hF=ln.extend(Nj,dF),pF=function(e){try{t.exports=e}catch(n){}},mF=function(t){window.tinymce=t,window.tinyMCE=t};mF(hF),pF(hF)})()}).call(this,n("c8ba"))},e61b:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64,s=a.Word,u=n.algo,c=[],l=[],f=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=e%5,i=(2*t+3*e)%5;t=r,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var u=0,d=0,h=0;h<7;h++){if(1&o){var p=(1<<h)-1;p<32?d^=1<<p:u^=1<<p-32}128&o?o=o<<1^113:o<<=1}f[a]=s.create(u,d)}})();var d=[];(function(){for(var t=0;t<25;t++)d[t]=s.create()})();var h=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[i];s.high^=a,s.low^=o}for(var u=0;u<24;u++){for(var h=0;h<5;h++){for(var p=0,m=0,g=0;g<5;g++){s=n[h+5*g];p^=s.high,m^=s.low}var v=d[h];v.high=p,v.low=m}for(h=0;h<5;h++){var b=d[(h+4)%5],y=d[(h+1)%5],w=y.high,_=y.low;for(p=b.high^(w<<1|_>>>31),m=b.low^(_<<1|w>>>31),g=0;g<5;g++){s=n[h+5*g];s.high^=p,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var C=s.high,S=s.low,k=c[x];k<32?(p=C<<k|S>>>32-k,m=S<<k|C>>>32-k):(p=S<<k-32|C>>>64-k,m=C<<k-32|S>>>64-k);var M=d[l[x]];M.high=p,M.low=m}var E=d[0],O=n[0];E.high=O.high,E.low=O.low;for(h=0;h<5;h++)for(g=0;g<5;g++){x=h+5*g,s=n[x];var T=d[x],A=d[(h+1)%5+5*g],D=d[(h+2)%5+5*g];s.high=T.high^~A.high&D.high,s.low=T.low^~A.low&D.low}s=n[0];var N=f[u];s.high^=N.high,s.low^=N.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],l=0;l<u;l++){var f=a[l],d=f.high,h=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(d)}return new i.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(h),n.HmacSHA3=o._createHmacHelper(h)}(Math),t.SHA3}))},e62d:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==a)return a;var t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;return t.parentNode.removeChild(t),a=e-r,a};var r=n("2b0e"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var a=void 0},e666:function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var i=n("4250"),o=n("19ea");n("3fb5")(c,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||e.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n("4362"))},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),u=n("c430"),c=n("da84"),l=n("d066"),f=n("fea9"),d=n("6eeb"),h=n("e2cc"),p=n("d44e"),m=n("2626"),g=n("861d"),v=n("1c0b"),b=n("19aa"),y=n("8925"),w=n("2266"),_=n("1c7e"),x=n("4840"),C=n("2cf4").set,S=n("b575"),k=n("cdf9"),M=n("44de"),E=n("f069"),O=n("e667"),T=n("69f3"),A=n("94ca"),D=n("b622"),N=n("605d"),R=n("2d00"),P=D("species"),I="Promise",B=T.get,L=T.set,z=T.getterFor(I),j=f,F=c.TypeError,$=c.document,H=c.process,V=l("fetch"),U=E.f,q=U,W=!!($&&$.createEvent&&c.dispatchEvent),K="function"==typeof PromiseRejectionEvent,G="unhandledrejection",Y="rejectionhandled",X=0,Z=1,J=2,Q=1,tt=2,et=A(I,(function(){var t=y(j)!==String(j);if(!t){if(66===R)return!0;if(!N&&!K)return!0}if(u&&!j.prototype["finally"])return!0;if(R>=51&&/native code/.test(j))return!1;var e=j.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[P]=n,!(e.then((function(){}))instanceof n)})),nt=et||!_((function(t){j.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;S((function(){var r=t.value,i=t.state==Z,o=0;while(n.length>o){var a,s,u,c=n[o++],l=i?c.ok:c.fail,f=c.resolve,d=c.reject,h=c.domain;try{l?(i||(t.rejection===tt&&ut(t),t.rejection=Q),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),u=!0)),a===c.promise?d(F("Promise-chain cycle")):(s=rt(a))?s.call(a,f,d):f(a)):d(r)}catch(p){h&&!u&&h.exit(),d(p)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&at(t)}))}},ot=function(t,e,n){var r,i;W?(r=$.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!K&&(i=c["on"+t])?i(r):t===G&&M("Unhandled promise rejection",n)},at=function(t){C.call(c,(function(){var e,n=t.facade,r=t.value,i=st(t);if(i&&(e=O((function(){N?H.emit("unhandledRejection",r,n):ot(G,n,r)})),t.rejection=N||st(t)?tt:Q,e.error))throw e.value}))},st=function(t){return t.rejection!==Q&&!t.parent},ut=function(t){C.call(c,(function(){var e=t.facade;N?H.emit("rejectionHandled",e):ot(Y,e,t.value)}))},ct=function(t,e,n){return function(r){t(e,r,n)}},lt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=J,it(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var r=rt(e);r?S((function(){var n={done:!1};try{r.call(e,ct(ft,n,t),ct(lt,n,t))}catch(i){lt(n,i,t)}})):(t.value=e,t.state=Z,it(t,!1))}catch(i){lt({done:!1},i,t)}}};et&&(j=function(t){b(this,j,I),v(t),r.call(this);var e=B(this);try{t(ct(ft,e),ct(lt,e))}catch(n){lt(e,n)}},r=function(t){L(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=h(j.prototype,{then:function(t,e){var n=z(this),r=U(x(this,j));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=N?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&it(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=B(t);this.promise=t,this.resolve=ct(ft,e),this.reject=ct(lt,e)},E.f=U=function(t){return t===j||t===o?new i(t):q(t)},u||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(t,e){var n=this;return new j((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(j,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:et},{Promise:j}),p(j,I,!1,!0),m(I),o=l(I),s({target:I,stat:!0,forced:et},{reject:function(t){var e=U(this);return e.reject.call(void 0,t),e.promise}}),s({target:I,stat:!0,forced:u||et},{resolve:function(t){return k(u&&this===o?j:this,t)}}),s({target:I,stat:!0,forced:nt},{all:function(t){var e=this,n=U(e),r=n.resolve,i=n.reject,o=O((function(){var n=v(e.resolve),o=[],a=0,s=1;w(t,(function(t){var u=a++,c=!1;o.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=U(e),r=n.reject,i=O((function(){var i=v(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e772:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=53)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},3:function(t,e){t.exports=n("8122")},34:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick(e)}}},[t._t("default",[n("span",[t._v(t._s(t.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),u="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},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(t,e){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof t?"undefined":u(t))&&"object"===("undefined"===typeof e?"undefined":u(e))&&t[i]===e[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(t,e){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(t,n)===Object(s["getValueByPath"])(e,n)}return t===e},contains:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];if(this.isObject){var n=this.select.valueKey;return t&&t.some((function(t){return Object(s["getValueByPath"])(t,n)===Object(s["getValueByPath"])(e,n)}))}return t&&t.indexOf(e)>-1},handleGroupDisabled:function(t){this.groupDisabled=t},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(t){this.visible=new RegExp(Object(s["escapeRegexpString"])(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var t=this.select,e=t.selected,n=t.multiple,r=n?e:[e],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=c,f=n(0),d=Object(f["a"])(l,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";e["a"]=d.exports},4:function(t,e){t.exports=n("d010")},53:function(t,e,n){"use strict";n.r(e);var r=n(34);r["a"].install=function(t){t.component(r["a"].name,r["a"])},e["default"]=r["a"]}})},e85f:function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},e8b0:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t){return t},n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},r="\ufeff",i=function(t){return t.replace(/\uFEFF/g,"")},o=function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",s={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f
\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[-឴឵---\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},u={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},c=[new RegExp(s.aletter),new RegExp(s.midnumlet),new RegExp(s.midletter),new RegExp(s.midnum),new RegExp(s.numeric),new RegExp(s.cr),new RegExp(s.lf),new RegExp(s.newline),new RegExp(s.extend),new RegExp(s.format),new RegExp(s.katakana),new RegExp(s.extendnumlet),new RegExp("@")],l="",f=new RegExp("^"+s.punctuation+"$"),d=/^\s+$/,h=c,p=u.OTHER,m=function(t){for(var e=p,n=h.length,r=0;r<n;++r){var i=h[r];if(i&&i.test(t)){e=r;break}}return e},g=function(t){var e={};return function(n){if(e[n])return e[n];var r=t(n);return e[n]=r,r}},v=function(t){var e=g(m);return o(t,e)},b=function(t,e){var n=t[e],r=t[e+1];if(e<0||e>t.length-1&&0!==e)return!1;if(n===u.ALETTER&&r===u.ALETTER)return!1;var i=t[e+2];if(n===u.ALETTER&&(r===u.MIDLETTER||r===u.MIDNUMLET||r===u.AT)&&i===u.ALETTER)return!1;var o=t[e-1];return(n!==u.MIDLETTER&&n!==u.MIDNUMLET&&r!==u.AT||r!==u.ALETTER||o!==u.ALETTER)&&((n!==u.NUMERIC&&n!==u.ALETTER||r!==u.NUMERIC&&r!==u.ALETTER)&&((n!==u.MIDNUM&&n!==u.MIDNUMLET||r!==u.NUMERIC||o!==u.NUMERIC)&&((n!==u.NUMERIC||r!==u.MIDNUM&&r!==u.MIDNUMLET||i!==u.NUMERIC)&&(n!==u.EXTEND&&n!==u.FORMAT&&o!==u.EXTEND&&o!==u.FORMAT&&r!==u.EXTEND&&r!==u.FORMAT&&((n!==u.CR||r!==u.LF)&&(n===u.NEWLINE||n===u.CR||n===u.LF||(r===u.NEWLINE||r===u.CR||r===u.LF||(n!==u.KATAKANA||r!==u.KATAKANA)&&((r!==u.EXTENDNUMLET||n!==u.ALETTER&&n!==u.NUMERIC&&n!==u.KATAKANA&&n!==u.EXTENDNUMLET)&&((n!==u.EXTENDNUMLET||r!==u.ALETTER&&r!==u.NUMERIC&&r!==u.KATAKANA)&&n!==u.AT)))))))))},y=l,w=d,_=f,x=function(t){return"http"===t||"https"===t},C=function(t,e){var n;for(n=e;n<t.length;n++)if(w.test(t[n]))break;return n},S=function(t,e){var n=C(t,e+1),r=t.slice(e+1,n).join(y);return"://"===r.substr(0,3)?n:e},k=function(t,e,n,r){for(var i=[],o=[],a=0;a<n.length;++a)if(o.push(t[a]),b(n,a)){var s=e[a];if((r.includeWhitespace||!w.test(s))&&(r.includePunctuation||!_.test(s))){var u=a-o.length+1,c=a+1,l=e.slice(u,c).join(y);if(x(l)){var f=S(e,a),d=t.slice(c,f);Array.prototype.push.apply(o,d),a=f}i.push(o)}o=[]}return i},M=function(){return{includeWhitespace:!1,includePunctuation:!1}},E=function(t,e,i){i=n(n({},M()),i);for(var o=[],a=[],s=0;s<t.length;s++){var u=e(t[s]);u!==r&&(o.push(t[s]),a.push(u))}var c=v(a);return k(o,a,c,i)},O=E,T=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),A=function(t,e){var n=e.getBlockElements(),r=e.getShortEndedElements(),o=function(t){return n[t.nodeName]||r[t.nodeName]},a=[],s="",u=new T(t,t);while(t=u.next())3===t.nodeType?s+=i(t.data):o(t)&&s.length&&(a.push(s),s="");return s.length&&a.push(s),a},D=function(t){return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},N=function(t,n){var r=A(t,n).join("\n");return O(r.split(""),e).length},R=function(t,e){var n=A(t,e).join("");return D(n)},P=function(t,e){var n=A(t,e).join("").replace(/\s/g,"");return D(n)},I=function(t,e){return function(){return e(t.getBody(),t.schema)}},B=function(t,e){return function(){return e(t.selection.getRng().cloneContents(),t.schema)}},L=function(t){return I(t,N)},z=function(t){return{body:{getWordCount:L(t),getCharacterCount:I(t,R),getCharacterCountWithoutSpaces:I(t,P)},selection:{getWordCount:B(t,N),getCharacterCount:B(t,R),getCharacterCountWithoutSpaces:B(t,P)},getCount:L(t)}},j=tinymce.util.Tools.resolve("tinymce.util.Delay"),F=function(t,e){t.fire("wordCountUpdate",{wordCount:{words:e.body.getWordCount(),characters:e.body.getCharacterCount(),charactersWithoutSpaces:e.body.getCharacterCountWithoutSpaces()}})},$=function(t,e){F(t,e)},H=function(t,e,n){var r=j.debounce((function(){return $(t,e)}),n);t.on("init",(function(){$(t,e),j.setEditorTimeout(t,(function(){t.on("SetContent BeforeAddUndo Undo Redo keyup",r)}),0)}))},V=function(t,e){t.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(e.body.getWordCount()),String(e.selection.getWordCount())],["Characters (no spaces)",String(e.body.getCharacterCountWithoutSpaces()),String(e.selection.getCharacterCountWithoutSpaces())],["Characters",String(e.body.getCharacterCount()),String(e.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},U=function(t,e){t.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:function(){return V(t,e)}}),t.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:function(){return V(t,e)}})};function q(e){void 0===e&&(e=300),t.add("wordcount",(function(t){var n=z(t);return U(t,n),H(t,n,e),n}))}q()})()},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},e974:function(t,e,n){"use strict";e.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5128");function a(t){return t&&t.__esModule?t:{default:t}}var s=i.default.prototype.$isServer?function(){}:n("6167"),u=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit("input",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,e),this.popperJS.onCreate((function(e){t.$emit("created",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)})),"function"===typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",u))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t={top:"bottom",bottom:"top",left:"right",right:"left"},e=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=t[e];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(e)>-1?"center "+n:n+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement("div");e&&r.setAttribute(e,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",u),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},ea34:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},ea53:function(t,e,n){"use strict";var r=n("80af"),i=n("f3a3"),o=i.getNAF,a=i.getJSF,s=i.assert;function u(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(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 n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<<n.step+1)-(n.step%2===0?2:1);i/=3;for(var a=[],u=0;u<r.length;u+=n.step){var c=0;for(e=u+n.step-1;e>=u;e--)c=(c<<1)+r[e];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u<a.length;u++){c=a[u];c===d?f=f.mixedAdd(n.points[u]):c===-d&&(f=f.mixedAdd(n.points[u].neg()))}l=l.add(f)}return l.toP()},u.prototype._wnafMul=function(t,e){var n=4,r=t._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(e,n,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(e=0;c>=0&&0===a[c];c--)e++;if(c>=0&&e++,u=u.dblp(e),c<0)break;var l=a[c];s(0!==l),u="affine"===t.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f<r;f++){var d=e[f],h=d._getNAFPoints(t);s[f]=h.wnd,u[f]=h.points}for(f=r-1;f>=1;f-=2){var p=f-1,m=f;if(1===s[p]&&1===s[m]){var g=[e[p],null,null,e[m]];0===e[p].y.cmp(e[m].y)?(g[1]=e[p].add(e[m]),g[2]=e[p].toJ().mixedAdd(e[m].neg())):0===e[p].y.cmp(e[m].y.redNeg())?(g[1]=e[p].toJ().mixedAdd(e[m]),g[2]=e[p].add(e[m].neg())):(g[1]=e[p].toJ().mixedAdd(e[m]),g[2]=e[p].toJ().mixedAdd(e[m].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],b=a(n[p],n[m]);l=Math.max(b[0].length,l),c[p]=new Array(l),c[m]=new Array(l);for(var y=0;y<l;y++){var w=0|b[0][y],_=0|b[1][y];c[p][y]=v[3*(w+1)+(_+1)],c[m][y]=0,u[p]=g}}else c[p]=o(n[p],s[p],this._bitLength),c[m]=o(n[m],s[m],this._bitLength),l=Math.max(c[p].length,l),l=Math.max(c[m].length,l)}var x=this.jpoint(null,null,null),C=this._wnafT4;for(f=l;f>=0;f--){var S=0;while(f>=0){var k=!0;for(y=0;y<r;y++)C[y]=0|c[y][f],0!==C[y]&&(k=!1);if(!k)break;S++,f--}if(f>=0&&S++,x=x.dblp(S),f<0)break;for(y=0;y<r;y++){var M=C[y];0!==M&&(M>0?d=u[y][M-1>>1]:M<0&&(d=u[y][-M-1>>1].neg()),x="affine"===d.type?x.mixedAdd(d):x.add(d))}}for(f=0;f<r;f++)u[f]=null;return i?x:x.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*n){6===t[0]?s(t[t.length-1]%2===0):7===t[0]&&s(t[t.length-1]%2===1);var r=this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));return r}if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(t){return this.encode(t,!0)},c.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},c.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},c.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},c.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},c.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},edc9:function(t,e,n){"use strict";var r=n("c3c0"),i=n("da3e");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},ee93:function(t,e,n){"use strict";var r=n("9d8a").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}function o(){}function a(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,n){if("function"===typeof e)return s(t,null,e);e||(e={}),n=i(n||o);var u=e.readable||!1!==e.readable&&t.readable,c=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||d()},f=t._writableState&&t._writableState.finished,d=function(){c=!1,f=!0,u||n.call(t)},h=t._readableState&&t._readableState.endEmitted,p=function(){u=!1,h=!0,c||n.call(t)},m=function(e){n.call(t,e)},g=function(){var e;return u&&!h?(t._readableState&&t._readableState.ended||(e=new r),n.call(t,e)):c&&!f?(t._writableState&&t._writableState.ended||(e=new r),n.call(t,e)):void 0},v=function(){t.req.on("finish",d)};return a(t)?(t.on("complete",d),t.on("abort",g),t.req?v():t.on("request",v)):c&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",p),t.on("finish",d),!1!==e.error&&t.on("error",m),t.on("close",g),function(){t.removeListener("complete",d),t.removeListener("abort",g),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",m),t.removeListener("close",g)}}t.exports=s},eedf:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=97)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},97:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"el-button",class:[t.type?"el-button--"+t.type:"",t.buttonSize?"el-button--"+t.buttonSize:"",{"is-disabled":t.buttonDisabled,"is-loading":t.loading,"is-plain":t.plain,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.buttonDisabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t.icon&&!t.loading?n("i",{class:t.icon}):t._e(),t.$slots.default?n("span",[t._t("default")],2):t._e()])},i=[];r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(t){this.$emit("click",t)}}},a=o,s=n(0),u=Object(s["a"])(a,r,i,!1,null,null,null);u.options.__file="packages/button/src/button.vue";var c=u.exports;c.install=function(t){t.component(c.name,c)};e["default"]=c}})},ef08:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},ef1f:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t,e){t.focus(),t.undoManager.transact((function(){t.setContent(e)})),t.selection.setCursorLocation(),t.nodeChanged()},n=function(t){return t.getContent({source_view:!0})},r=function(t){var r=n(t);t.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){e(t,n.getData().code),n.close()}})},i=function(t){t.addCommand("mceCodeEditor",(function(){r(t)}))},o=function(t){t.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return r(t)}}),t.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return r(t)}})};function a(){t.add("code",(function(t){return i(t),o(t),{}}))}a()})()},ef3a:function(t,e,n){"use strict";const r=n("343e"),i=n("20f6"),o=n("3fb5"),a=e;function s(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}a.define=function(t,e){return new s(t,e)},s.prototype._createNamed=function(t){const e=this.name;function n(t){this._initNamed(t,e)}return o(n,t),n.prototype._initNamed=function(e,n){t.call(this,e,n)},new n(this)},s.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i[t])),this.decoders[t]},s.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},s.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r[t])),this.encoders[t]},s.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f0d9:function(t,e,n){"use strict";e.__esModule=!0,e.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}}},f12a:function(t,e,n){t.exports=n("faa1").EventEmitter},f1c8:function(t,e,n){"use strict";t.exports=l;var r=n("d113").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n("5e7d");function c(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,n){d(t,e,n)}))}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n("3fb5")(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,n){n(new i("_transform()"))},l.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},f3a3:function(t,e,n){"use strict";var r=e,i=n("80af"),o=n("da3e"),a=n("7658");function s(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<<e+1,o=t.clone(),a=0;a<r.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r}function u(t,e){var n=[[],[]];t=t.clone(),e=e.clone();var r=0,i=0;while(t.cmpn(-r)>0||e.cmpn(-i)>0){var o,a,s=t.andln(3)+r&3,u=e.andln(3)+i&3;if(3===s&&(s=-1),3===u&&(u=-1),0===(1&s))o=0;else{var c=t.andln(7)+r&7;o=3!==c&&5!==c||2!==u?s:-s}if(n[0].push(o),0===(1&u))a=0;else{c=e.andln(7)+i&7;a=3!==c&&5!==c||2!==s?u:-u}n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n}function c(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function l(t){return"string"===typeof t?r.toArray(t,"hex"):t}function f(t){return new i(t,"hex","le")}r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=s,r.getJSF=u,r.cachedProperty=c,r.parseBytes=l,r.intFromLE=f},f3ad:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=76)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},11:function(t,e){t.exports=n("2bb5")},21:function(t,e){t.exports=n("d397")},4:function(t,e){t.exports=n("d010")},76:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["textarea"===t.type?"el-textarea":"el-input",t.inputSize?"el-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"el-input-group":t.$slots.prepend||t.$slots.append,"el-input-group--append":t.$slots.append,"el-input-group--prepend":t.$slots.prepend,"el-input--prefix":t.$slots.prefix||t.prefixIcon,"el-input--suffix":t.$slots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?n("input",t._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.prefixIcon?n("span",{staticClass:"el-input__prefix"},[t._t("prefix"),t.prefixIcon?n("i",{staticClass:"el-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?n("i",{staticClass:"el-input__icon",class:t.suffixIcon}):t._e()],t.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[t._v("\n "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+"\n ")])]):t._e()],2),t.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append?n("div",{staticClass:"el-input-group__append"},[t._t("append")],2):t._e()]:n("textarea",t._b({ref:"textarea",staticClass:"el-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autoComplete||t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?n("span",{staticClass:"el-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),u=n.n(s),c=void 0,l="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",f=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function d(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),i=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width")),o=f.map((function(t){return t+":"+e.getPropertyValue(t)})).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var r=d(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;c.setAttribute("style",s+";"+l),c.value=t.value||t.placeholder||"";var u=c.scrollHeight,f={};"border-box"===a?u+=o:"content-box"===a&&(u-=i),c.value="";var h=c.scrollHeight-i;if(null!==e){var p=h*e;"border-box"===a&&(p=p+i+o),u=Math.max(p,u),f.minHeight=p+"px"}if(null!==n){var m=h*n;"border-box"===a&&(m=m+i+o),u=Math.min(m,u)}return f.height=u+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,f}var p=n(9),m=n.n(p),g=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[a.a,u.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize,e=this.type;if("textarea"===e)if(t){var n=t.minRows,r=t.maxRows;this.textareaCalcStyle=h(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:h(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(t){var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(g["isKorean"])(n)},handleCompositionEnd:function(t){this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r<e.length;r++)if(e[r].parentNode===this.$el){n=e[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[t];this.$slots[o]?n.style.transform="translateX("+("suffix"===t?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){this.passwordVisible=!this.passwordVisible,this.focus()},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},b=v,y=n(0),w=Object(y["a"])(b,r,i,!1,null,null,null);w.options.__file="packages/input/src/input.vue";var _=w.exports;_.install=function(t){t.component(_.name,_)};e["default"]=_},9:function(t,e){t.exports=n("7f4d")}})},f460:function(t,e,n){var r=n("98e6"),i=n("8707").Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){var n,a=i.alloc(0),s=0;while(a.length<e)n=o(s++),a=i.concat([a,r("sha1").update(t).update(n).digest()]);return a.slice(0,e)}},f494:function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=116)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},116:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"el-radio",class:[t.border&&t.radioSize?"el-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElRadio",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var t=this.$parent;while(t){if("ElRadioGroup"===t.$options.componentName)return this._radioGroup=t,!0;t=t.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(t){this.isGroup?this.dispatch("ElRadioGroup","input",[t]):this.$emit("input",t),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||t},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var t=this;this.$nextTick((function(){t.$emit("change",t.model),t.isGroup&&t.dispatch("ElRadioGroup","handleChange",t.model)}))}}},u=s,c=n(0),l=Object(c["a"])(u,r,i,!1,null,null,null);l.options.__file="packages/radio/src/radio.vue";var f=l.exports;f.install=function(t){t.component(f.name,f)};e["default"]=f},4:function(t,e){t.exports=n("d010")}})},f4ea:function(t,e,n){(function(e,r,i){t.exports=r(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f557:function(t,e,n){n("5e4c")},f576:function(t,e,n){"use strict";var r=n("3fb5"),i=n("93e6"),o=n("8707").Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function c(t,e,n,r,i,o,a){return u(t+(e&n|~e&r)+i+o|0,a)+e|0}function l(t,e,n,r,i,o,a){return u(t+(e&r|n&~r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return u(t+(e^n^r)+i+o|0,a)+e|0}function d(t,e,n,r,i,o,a){return u(t+(n^(e|~r))+i+o|0,a)+e|0}r(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,t[0],3614090360,7),o=c(o,n,r,i,t[1],3905402710,12),i=c(i,o,n,r,t[2],606105819,17),r=c(r,i,o,n,t[3],3250441966,22),n=c(n,r,i,o,t[4],4118548399,7),o=c(o,n,r,i,t[5],1200080426,12),i=c(i,o,n,r,t[6],2821735955,17),r=c(r,i,o,n,t[7],4249261313,22),n=c(n,r,i,o,t[8],1770035416,7),o=c(o,n,r,i,t[9],2336552879,12),i=c(i,o,n,r,t[10],4294925233,17),r=c(r,i,o,n,t[11],2304563134,22),n=c(n,r,i,o,t[12],1804603682,7),o=c(o,n,r,i,t[13],4254626195,12),i=c(i,o,n,r,t[14],2792965006,17),r=c(r,i,o,n,t[15],1236535329,22),n=l(n,r,i,o,t[1],4129170786,5),o=l(o,n,r,i,t[6],3225465664,9),i=l(i,o,n,r,t[11],643717713,14),r=l(r,i,o,n,t[0],3921069994,20),n=l(n,r,i,o,t[5],3593408605,5),o=l(o,n,r,i,t[10],38016083,9),i=l(i,o,n,r,t[15],3634488961,14),r=l(r,i,o,n,t[4],3889429448,20),n=l(n,r,i,o,t[9],568446438,5),o=l(o,n,r,i,t[14],3275163606,9),i=l(i,o,n,r,t[3],4107603335,14),r=l(r,i,o,n,t[8],1163531501,20),n=l(n,r,i,o,t[13],2850285829,5),o=l(o,n,r,i,t[2],4243563512,9),i=l(i,o,n,r,t[7],1735328473,14),r=l(r,i,o,n,t[12],2368359562,20),n=f(n,r,i,o,t[5],4294588738,4),o=f(o,n,r,i,t[8],2272392833,11),i=f(i,o,n,r,t[11],1839030562,16),r=f(r,i,o,n,t[14],4259657740,23),n=f(n,r,i,o,t[1],2763975236,4),o=f(o,n,r,i,t[4],1272893353,11),i=f(i,o,n,r,t[7],4139469664,16),r=f(r,i,o,n,t[10],3200236656,23),n=f(n,r,i,o,t[13],681279174,4),o=f(o,n,r,i,t[0],3936430074,11),i=f(i,o,n,r,t[3],3572445317,16),r=f(r,i,o,n,t[6],76029189,23),n=f(n,r,i,o,t[9],3654602809,4),o=f(o,n,r,i,t[12],3873151461,11),i=f(i,o,n,r,t[15],530742520,16),r=f(r,i,o,n,t[2],3299628645,23),n=d(n,r,i,o,t[0],4096336452,6),o=d(o,n,r,i,t[7],1126891415,10),i=d(i,o,n,r,t[14],2878612391,15),r=d(r,i,o,n,t[5],4237533241,21),n=d(n,r,i,o,t[12],1700485571,6),o=d(o,n,r,i,t[3],2399980690,10),i=d(i,o,n,r,t[10],4293915773,15),r=d(r,i,o,n,t[1],2240044497,21),n=d(n,r,i,o,t[8],1873313359,6),o=d(o,n,r,i,t[15],4264355552,10),i=d(i,o,n,r,t[6],2734768916,15),r=d(r,i,o,n,t[13],1309151649,21),n=d(n,r,i,o,t[4],4149444226,6),o=d(o,n,r,i,t[11],3174756917,10),i=d(i,o,n,r,t[2],718787259,15),r=d(r,i,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.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=s},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f83c:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},f893:function(t,e,n){t.exports={default:n("8119"),__esModule:!0}},faa1:function(t,e,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};function a(t){console&&console.warn&&console.warn(t)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!==t};function u(){u.init.call(this)}t.exports=u,t.exports.once=w,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function d(t,e,n,r){var i,o,s;if(l(n),o=t._events,void 0===o?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"===typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=f(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,a(u)}return t}function h(){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,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function m(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?y(i):v(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function b(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function y(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function w(t,e){return new Promise((function(n,r){function i(){void 0!==o&&t.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==e&&(o=function(n){t.removeListener(e,i),r(n)},t.once("error",o)),t.once(e,i)}))}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)o(u,this,e);else{var c=u.length,l=v(u,c);for(n=0;n<c;++n)o(l[n],this,e)}return!0},u.prototype.addListener=function(t,e){return d(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return d(this,t,e,!0)},u.prototype.once=function(t,e){return l(e),this.on(t,p(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,p(this,t,e)),this},u.prototype.removeListener=function(t,e){var n,r,i,o,a;if(l(e),r=this._events,void 0===r)return this;if(n=r[t],void 0===n)return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():b(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)i=o[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],"function"===typeof e)this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},u.prototype.listenerCount=g,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},faf5:function(t,e,n){t.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fbd5:function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("9d8a").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function c(t){return t.setHeader&&"function"===typeof t.abort}function l(t,e,o,a){a=i(a);var u=!1;t.on("close",(function(){u=!0})),void 0===r&&(r=n("ee93")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);u=!0,a()}));var l=!1;return function(e){if(!u&&!l)return l=!0,c(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function f(t){t()}function d(t,e){return t.pipe(e)}function h(t){return t.length?"function"!==typeof t[t.length-1]?u:t.pop():u}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=h(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var o=e.map((function(t,n){var a=n<e.length-1,s=n>0;return l(t,a,s,(function(t){r||(r=t),t&&o.forEach(f),a||(o.forEach(f),i(r))}))}));return e.reduce(d)}t.exports=p},fc39:function(t,e){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-width":'<svg width="24" height="24"><path d="M5 14.8h14a1 1 0 010 2H5a1 1 0 010-2zm-.5 3.7h15c.3 0 .5.2.5.5s-.2.5-.5.5h-15a.5.5 0 110-1zm.5-8.3h14c.6 0 1 .4 1 1v1c0 .5-.4 1-1 1H5a1 1 0 01-1-1v-1c0-.6.4-1 1-1zm0-5.7h14c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-2c0-.6.4-1 1-1z" fill-rule="evenodd"/></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},fc5e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fcd4:function(t,e,n){e.f=n("cc15")},fda6:function(t,e,n){var r=n("8947"),i=n("4228"),o=n("e85f");function a(){return Object.keys(o)}e.createCipher=e.Cipher=r.createCipher,e.createCipheriv=e.Cipheriv=r.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=a},fdac:function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(7);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(a){}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise},fed5:function(t,e){e.f=Object.getOwnPropertySymbols}}]);
|