text: !function(t){function e(e){for(var i,o,s=e[0],c=e[1],l=e[2],f=0,h=[];f<s.length;f++)o=s[f],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&h.push(r[o][0]),r[o]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(t[i]=c[i]);for(u&&u(e);h.length;)h.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],i=!0,s=1;s<n.length;s++){var c=n[s];0!==r[c]&&(i=!1)}i&&(a.splice(e--,1),t=o(o.s=n[0]))}return t}var i={},r={22:0},a=[];function o(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var s=window.webpackJsonp=window.webpackJsonp||[],c=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var u=c;a.push([568,0]),n()}([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}}},function(t,e,n){var i=n(3),r=i.Buffer;function a(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(a(i,e),e.Buffer=o),a(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function a(t,e,n){if(a.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 o;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{o=n(153).Buffer}catch(t){}function s(t,e,n){for(var i=0,r=Math.min(t.length,n),a=e;a<r;a++){var o=t.charCodeAt(a)-48;i<<=4,i|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return i}function c(t,e,n,i){for(var r=0,a=Math.min(t.length,n),o=e;o<a;o++){var s=t.charCodeAt(o)-48;r*=i,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},a.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},a.prototype._initArray=function(t,e,n){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=t.length-1,a=0;r>=0;r-=3)o=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<t.length;r+=3)o=t[r]|t[r+1]<<8|t[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,r,a=0;for(n=t.length-6,i=0;n>=e;n-=6)r=s(t,n,n+6),this.words[i]|=r<<a&67108863,this.words[i+1]|=r>>>26-a&4194303,(a+=24)>=26&&(a-=26,i++);n+6!==e&&(r=s(t,e,n+6),this.words[i]|=r<<a&67108863,this.words[i+1]|=r>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var a=t.length-n,o=a%i,s=Math.min(a,a-o)+n,l=0,u=n;u<s;u+=i)l=c(t,u,u+i,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var f=1;for(l=c(t,u,t.length,e),u=0;u<o;u++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},a.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},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],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 h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],a=0|e.words[0],o=r*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<i;l++){for(var u=c>>>26,f=67108863&c,h=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=h;d++){var p=l-d|0;u+=(o=(r=0|t.words[p])*(a=0|e.words[d])+f)/67108864|0,f=67108863&o}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}a.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<r|a)).toString(16);n=0!==(a=s>>>24-r&16777215)||o!==this.length-1?l[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=u[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?b+n:l[h-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return i(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===e,l=new t(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[s]=o;for(;s<a;s++)l[s]=0}else{for(s=0;s<a-r;s++)l[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[a-s-1]=o}return l},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.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},a.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},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.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},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;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()},a.prototype.ior=function(t){return i(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.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()},a.prototype.iand=function(t){return i(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return i(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},a.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)e=(0|n.words[a])+(0|i.words[a])+r,this.words[a]=67108863&e,r=e>>>26;for(;0!==r&&a<n.length;a++)e=(0|n.words[a])+r,this.words[a]=67108863&e,r=e>>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.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)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var a=0,o=0;o<i.length;o++)a=(e=(0|n.words[o])-(0|i.words[o])+a)>>26,this.words[o]=67108863&e;for(;0!==a&&o<n.length;o++)a=(e=(0|n.words[o])+a)>>26,this.words[o]=67108863&e;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var i,r,a,o=t.words,s=e.words,c=n.words,l=0,u=0|o[0],f=8191&u,h=u>>>13,d=0|o[1],p=8191&d,b=d>>>13,g=0|o[2],y=8191&g,m=g>>>13,v=0|o[3],A=8191&v,w=v>>>13,M=0|o[4],I=8191&M,x=M>>>13,C=0|o[5],E=8191&C,_=C>>>13,T=0|o[6],D=8191&T,k=T>>>13,S=0|o[7],N=8191&S,B=S>>>13,j=0|o[8],R=8191&j,O=j>>>13,L=0|o[9],P=8191&L,z=L>>>13,Q=0|s[0],U=8191&Q,Y=Q>>>13,F=0|s[1],H=8191&F,G=F>>>13,W=0|s[2],Z=8191&W,V=W>>>13,J=0|s[3],$=8191&J,X=J>>>13,K=0|s[4],q=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,it=et>>>13,rt=0|s[6],at=8191&rt,ot=rt>>>13,st=0|s[7],ct=8191&st,lt=st>>>13,ut=0|s[8],ft=8191&ut,ht=ut>>>13,dt=0|s[9],pt=8191&dt,bt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(l+(i=Math.imul(f,U))|0)+((8191&(r=(r=Math.imul(f,Y))+Math.imul(h,U)|0))<<13)|0;l=((a=Math.imul(h,Y))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,U),r=(r=Math.imul(p,Y))+Math.imul(b,U)|0,a=Math.imul(b,Y);var yt=(l+(i=i+Math.imul(f,H)|0)|0)+((8191&(r=(r=r+Math.imul(f,G)|0)+Math.imul(h,H)|0))<<13)|0;l=((a=a+Math.imul(h,G)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(y,U),r=(r=Math.imul(y,Y))+Math.imul(m,U)|0,a=Math.imul(m,Y),i=i+Math.imul(p,H)|0,r=(r=r+Math.imul(p,G)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,G)|0;var mt=(l+(i=i+Math.imul(f,Z)|0)|0)+((8191&(r=(r=r+Math.imul(f,V)|0)+Math.imul(h,Z)|0))<<13)|0;l=((a=a+Math.imul(h,V)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,i=Math.imul(A,U),r=(r=Math.imul(A,Y))+Math.imul(w,U)|0,a=Math.imul(w,Y),i=i+Math.imul(y,H)|0,r=(r=r+Math.imul(y,G)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,G)|0,i=i+Math.imul(p,Z)|0,r=(r=r+Math.imul(p,V)|0)+Math.imul(b,Z)|0,a=a+Math.imul(b,V)|0;var vt=(l+(i=i+Math.imul(f,$)|0)|0)+((8191&(r=(r=r+Math.imul(f,X)|0)+Math.imul(h,$)|0))<<13)|0;l=((a=a+Math.imul(h,X)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(I,U),r=(r=Math.imul(I,Y))+Math.imul(x,U)|0,a=Math.imul(x,Y),i=i+Math.imul(A,H)|0,r=(r=r+Math.imul(A,G)|0)+Math.imul(w,H)|0,a=a+Math.imul(w,G)|0,i=i+Math.imul(y,Z)|0,r=(r=r+Math.imul(y,V)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(p,$)|0,r=(r=r+Math.imul(p,X)|0)+Math.imul(b,$)|0,a=a+Math.imul(b,X)|0;var At=(l+(i=i+Math.imul(f,q)|0)|0)+((8191&(r=(r=r+Math.imul(f,tt)|0)+Math.imul(h,q)|0))<<13)|0;l=((a=a+Math.imul(h,tt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(E,U),r=(r=Math.imul(E,Y))+Math.imul(_,U)|0,a=Math.imul(_,Y),i=i+Math.imul(I,H)|0,r=(r=r+Math.imul(I,G)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,G)|0,i=i+Math.imul(A,Z)|0,r=(r=r+Math.imul(A,V)|0)+Math.imul(w,Z)|0,a=a+Math.imul(w,V)|0,i=i+Math.imul(y,$)|0,r=(r=r+Math.imul(y,X)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,X)|0,i=i+Math.imul(p,q)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(b,q)|0,a=a+Math.imul(b,tt)|0;var wt=(l+(i=i+Math.imul(f,nt)|0)|0)+((8191&(r=(r=r+Math.imul(f,it)|0)+Math.imul(h,nt)|0))<<13)|0;l=((a=a+Math.imul(h,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(D,U),r=(r=Math.imul(D,Y))+Math.imul(k,U)|0,a=Math.imul(k,Y),i=i+Math.imul(E,H)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,i=i+Math.imul(I,Z)|0,r=(r=r+Math.imul(I,V)|0)+Math.imul(x,Z)|0,a=a+Math.imul(x,V)|0,i=i+Math.imul(A,$)|0,r=(r=r+Math.imul(A,X)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,X)|0,i=i+Math.imul(y,q)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(m,q)|0,a=a+Math.imul(m,tt)|0,i=i+Math.imul(p,nt)|0,r=(r=r+Math.imul(p,it)|0)+Math.imul(b,nt)|0,a=a+Math.imul(b,it)|0;var Mt=(l+(i=i+Math.imul(f,at)|0)|0)+((8191&(r=(r=r+Math.imul(f,ot)|0)+Math.imul(h,at)|0))<<13)|0;l=((a=a+Math.imul(h,ot)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(N,U),r=(r=Math.imul(N,Y))+Math.imul(B,U)|0,a=Math.imul(B,Y),i=i+Math.imul(D,H)|0,r=(r=r+Math.imul(D,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,i=i+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,V)|0)+Math.imul(_,Z)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(I,$)|0,r=(r=r+Math.imul(I,X)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,X)|0,i=i+Math.imul(A,q)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,tt)|0,i=i+Math.imul(y,nt)|0,r=(r=r+Math.imul(y,it)|0)+Math.imul(m,nt)|0,a=a+Math.imul(m,it)|0,i=i+Math.imul(p,at)|0,r=(r=r+Math.imul(p,ot)|0)+Math.imul(b,at)|0,a=a+Math.imul(b,ot)|0;var It=(l+(i=i+Math.imul(f,ct)|0)|0)+((8191&(r=(r=r+Math.imul(f,lt)|0)+Math.imul(h,ct)|0))<<13)|0;l=((a=a+Math.imul(h,lt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(R,U),r=(r=Math.imul(R,Y))+Math.imul(O,U)|0,a=Math.imul(O,Y),i=i+Math.imul(N,H)|0,r=(r=r+Math.imul(N,G)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,G)|0,i=i+Math.imul(D,Z)|0,r=(r=r+Math.imul(D,V)|0)+Math.imul(k,Z)|0,a=a+Math.imul(k,V)|0,i=i+Math.imul(E,$)|0,r=(r=r+Math.imul(E,X)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,X)|0,i=i+Math.imul(I,q)|0,r=(r=r+Math.imul(I,tt)|0)+Math.imul(x,q)|0,a=a+Math.imul(x,tt)|0,i=i+Math.imul(A,nt)|0,r=(r=r+Math.imul(A,it)|0)+Math.imul(w,nt)|0,a=a+Math.imul(w,it)|0,i=i+Math.imul(y,at)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0,i=i+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,lt)|0)+Math.imul(b,ct)|0,a=a+Math.imul(b,lt)|0;var xt=(l+(i=i+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;l=((a=a+Math.imul(h,ht)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(P,U),r=(r=Math.imul(P,Y))+Math.imul(z,U)|0,a=Math.imul(z,Y),i=i+Math.imul(R,H)|0,r=(r=r+Math.imul(R,G)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,G)|0,i=i+Math.imul(N,Z)|0,r=(r=r+Math.imul(N,V)|0)+Math.imul(B,Z)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(D,$)|0,r=(r=r+Math.imul(D,X)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,X)|0,i=i+Math.imul(E,q)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,tt)|0,i=i+Math.imul(I,nt)|0,r=(r=r+Math.imul(I,it)|0)+Math.imul(x,nt)|0,a=a+Math.imul(x,it)|0,i=i+Math.imul(A,at)|0,r=(r=r+Math.imul(A,ot)|0)+Math.imul(w,at)|0,a=a+Math.imul(w,ot)|0,i=i+Math.imul(y,ct)|0,r=(r=r+Math.imul(y,lt)|0)+Math.imul(m,ct)|0,a=a+Math.imul(m,lt)|0,i=i+Math.imul(p,ft)|0,r=(r=r+Math.imul(p,ht)|0)+Math.imul(b,ft)|0,a=a+Math.imul(b,ht)|0;var Ct=(l+(i=i+Math.imul(f,pt)|0)|0)+((8191&(r=(r=r+Math.imul(f,bt)|0)+Math.imul(h,pt)|0))<<13)|0;l=((a=a+Math.imul(h,bt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(P,H),r=(r=Math.imul(P,G))+Math.imul(z,H)|0,a=Math.imul(z,G),i=i+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,V)|0)+Math.imul(O,Z)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(N,$)|0,r=(r=r+Math.imul(N,X)|0)+Math.imul(B,$)|0,a=a+Math.imul(B,X)|0,i=i+Math.imul(D,q)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,tt)|0,i=i+Math.imul(E,nt)|0,r=(r=r+Math.imul(E,it)|0)+Math.imul(_,nt)|0,a=a+Math.imul(_,it)|0,i=i+Math.imul(I,at)|0,r=(r=r+Math.imul(I,ot)|0)+Math.imul(x,at)|0,a=a+Math.imul(x,ot)|0,i=i+Math.imul(A,ct)|0,r=(r=r+Math.imul(A,lt)|0)+Math.imul(w,ct)|0,a=a+Math.imul(w,lt)|0,i=i+Math.imul(y,ft)|0,r=(r=r+Math.imul(y,ht)|0)+Math.imul(m,ft)|0,a=a+Math.imul(m,ht)|0;var Et=(l+(i=i+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,bt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((a=a+Math.imul(b,bt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(P,Z),r=(r=Math.imul(P,V))+Math.imul(z,Z)|0,a=Math.imul(z,V),i=i+Math.imul(R,$)|0,r=(r=r+Math.imul(R,X)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,X)|0,i=i+Math.imul(N,q)|0,r=(r=r+Math.imul(N,tt)|0)+Math.imul(B,q)|0,a=a+Math.imul(B,tt)|0,i=i+Math.imul(D,nt)|0,r=(r=r+Math.imul(D,it)|0)+Math.imul(k,nt)|0,a=a+Math.imul(k,it)|0,i=i+Math.imul(E,at)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,i=i+Math.imul(I,ct)|0,r=(r=r+Math.imul(I,lt)|0)+Math.imul(x,ct)|0,a=a+Math.imul(x,lt)|0,i=i+Math.imul(A,ft)|0,r=(r=r+Math.imul(A,ht)|0)+Math.imul(w,ft)|0,a=a+Math.imul(w,ht)|0;var _t=(l+(i=i+Math.imul(y,pt)|0)|0)+((8191&(r=(r=r+Math.imul(y,bt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((a=a+Math.imul(m,bt)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(P,$),r=(r=Math.imul(P,X))+Math.imul(z,$)|0,a=Math.imul(z,X),i=i+Math.imul(R,q)|0,r=(r=r+Math.imul(R,tt)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,tt)|0,i=i+Math.imul(N,nt)|0,r=(r=r+Math.imul(N,it)|0)+Math.imul(B,nt)|0,a=a+Math.imul(B,it)|0,i=i+Math.imul(D,at)|0,r=(r=r+Math.imul(D,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,i=i+Math.imul(E,ct)|0,r=(r=r+Math.imul(E,lt)|0)+Math.imul(_,ct)|0,a=a+Math.imul(_,lt)|0,i=i+Math.imul(I,ft)|0,r=(r=r+Math.imul(I,ht)|0)+Math.imul(x,ft)|0,a=a+Math.imul(x,ht)|0;var Tt=(l+(i=i+Math.imul(A,pt)|0)|0)+((8191&(r=(r=r+Math.imul(A,bt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((a=a+Math.imul(w,bt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(P,q),r=(r=Math.imul(P,tt))+Math.imul(z,q)|0,a=Math.imul(z,tt),i=i+Math.imul(R,nt)|0,r=(r=r+Math.imul(R,it)|0)+Math.imul(O,nt)|0,a=a+Math.imul(O,it)|0,i=i+Math.imul(N,at)|0,r=(r=r+Math.imul(N,ot)|0)+Math.imul(B,at)|0,a=a+Math.imul(B,ot)|0,i=i+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(k,ct)|0,a=a+Math.imul(k,lt)|0,i=i+Math.imul(E,ft)|0,r=(r=r+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var Dt=(l+(i=i+Math.imul(I,pt)|0)|0)+((8191&(r=(r=r+Math.imul(I,bt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((a=a+Math.imul(x,bt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(P,nt),r=(r=Math.imul(P,it))+Math.imul(z,nt)|0,a=Math.imul(z,it),i=i+Math.imul(R,at)|0,r=(r=r+Math.imul(R,ot)|0)+Math.imul(O,at)|0,a=a+Math.imul(O,ot)|0,i=i+Math.imul(N,ct)|0,r=(r=r+Math.imul(N,lt)|0)+Math.imul(B,ct)|0,a=a+Math.imul(B,lt)|0,i=i+Math.imul(D,ft)|0,r=(r=r+Math.imul(D,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var kt=(l+(i=i+Math.imul(E,pt)|0)|0)+((8191&(r=(r=r+Math.imul(E,bt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((a=a+Math.imul(_,bt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(P,at),r=(r=Math.imul(P,ot))+Math.imul(z,at)|0,a=Math.imul(z,ot),i=i+Math.imul(R,ct)|0,r=(r=r+Math.imul(R,lt)|0)+Math.imul(O,ct)|0,a=a+Math.imul(O,lt)|0,i=i+Math.imul(N,ft)|0,r=(r=r+Math.imul(N,ht)|0)+Math.imul(B,ft)|0,a=a+Math.imul(B,ht)|0;var St=(l+(i=i+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,bt)|0)+Math.imul(k,pt)|0))<<13)|0;l=((a=a+Math.imul(k,bt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(P,ct),r=(r=Math.imul(P,lt))+Math.imul(z,ct)|0,a=Math.imul(z,lt),i=i+Math.imul(R,ft)|0,r=(r=r+Math.imul(R,ht)|0)+Math.imul(O,ft)|0,a=a+Math.imul(O,ht)|0;var Nt=(l+(i=i+Math.imul(N,pt)|0)|0)+((8191&(r=(r=r+Math.imul(N,bt)|0)+Math.imul(B,pt)|0))<<13)|0;l=((a=a+Math.imul(B,bt)|0)+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(P,ft),r=(r=Math.imul(P,ht))+Math.imul(z,ft)|0,a=Math.imul(z,ht);var Bt=(l+(i=i+Math.imul(R,pt)|0)|0)+((8191&(r=(r=r+Math.imul(R,bt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((a=a+Math.imul(O,bt)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863;var jt=(l+(i=Math.imul(P,pt))|0)+((8191&(r=(r=Math.imul(P,bt))+Math.imul(z,pt)|0))<<13)|0;return l=((a=Math.imul(z,bt))+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863,c[0]=gt,c[1]=yt,c[2]=mt,c[3]=vt,c[4]=At,c[5]=wt,c[6]=Mt,c[7]=It,c[8]=xt,c[9]=Ct,c[10]=Et,c[11]=_t,c[12]=Tt,c[13]=Dt,c[14]=kt,c[15]=St,c[16]=Nt,c[17]=Bt,c[18]=jt,0!==l&&(c[19]=l,n.length++),n};function p(t,e,n){return(new b).mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(d=h),a.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,a=0;a<n.length-1;a++){var o=r;r=0;for(var s=67108863&i,c=Math.min(a,e.length-1),l=Math.max(0,a-t.length+1);l<=c;l++){var u=a-l,f=(0|t.words[u])*(0|e.words[l]),h=67108863&f;s=67108863&(h=h+s|0),r+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}n.words[a]=s,i=o,o=r}return 0!==i?n.words[a]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=a.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},b.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,r=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},b.prototype.permute=function(t,e,n,i,r,a){for(var o=0;o<a;o++)i[o]=e[t[o]],r[o]=n[t[o]]},b.prototype.transform=function(t,e,n,i,r,a){this.permute(a,t,e,n,i,r);for(var o=1;o<r;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<r;u+=s)for(var f=c,h=l,d=0;d<o;d++){var p=n[u+d],b=i[u+d],g=n[u+d+o],y=i[u+d+o],m=f*g-h*y;y=f*y+h*g,g=m,n[u+d]=p+g,i[u+d]=b+y,n[u+d+o]=p-g,i[u+d+o]=b-y,d!==s&&(m=c*f-l*h,h=c*h+l*f,f=m)}},b.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,r=0;for(n=n/2|0;n;n>>>=1)r++;return 1<<r+1+i},b.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},b.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},b.prototype.convert13b=function(t,e,n,r){for(var a=0,o=0;o<e;o++)a+=0|t[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*e;o<r;++o)n[o]=0;i(0===a),i(0==(-8192&a))},b.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},b.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(i),a=this.stub(i),o=new Array(i),s=new Array(i),c=new Array(i),l=new Array(i),u=new Array(i),f=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,o,i),this.convert13b(e.words,e.length,l,i),this.transform(o,a,s,c,i,r),this.transform(l,a,u,f,i,r);for(var d=0;d<i;d++){var p=s[d]*u[d]-c[d]*f[d];c[d]=s[d]*f[d]+c[d]*u[d],s[d]=p}return this.conjugate(s,c,i),this.transform(s,c,h,a,i,r),this.conjugate(h,a,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),p(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){i("number"==typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var r=(0|this.words[n])*t,a=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=a>>>26,this.words[n]=67108863&a}return 0!==e&&(this.words[n]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,r=n%26;e[n]=(t.words[i]&1<<r)>>>r}return e}(t);if(0===e.length)return new a(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var r=n.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(n=n.mul(r));return n},a.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,n=t%26,r=(t-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e<this.length;e++){var s=this.words[e]&a,c=(0|this.words[e])-s<<n;this.words[e]=c|o,o=s>>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},a.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,n){var r;i("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(r-=o,r=Math.max(0,r),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=r);l--){var f=0|this.words[l];this.words[l]=u<<26-a|f>>>a,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,r=1<<e;return!(this.length<=n)&&!!(this.words[n]&r)},a.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var r=67108863^67108863>>>e<<e;this.words[this.length-1]&=r}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.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},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,n){var r,a,o=t.length+n;this._expand(o);var s=0;for(r=0;r<t.length;r++){a=(0|this.words[r+n])+s;var c=(0|t.words[r])*e;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),r=t,o=0|r.words[r.length-1];0!==(n=26-this._countBits(o))&&(r=r.ushln(n),i.iushln(n),o=0|r.words[r.length-1]);var s,c=i.length-r.length;if("mod"!==e){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=i.clone()._ishlnsubmul(r,1,c);0===u.negative&&(i=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var h=67108864*(0|i.words[r.length+f])+(0|i.words[r.length+f-1]);for(h=Math.min(h/o|0,67108863),i._ishlnsubmul(r,h,f);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(r,1,f),i.isZero()||(i.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},a.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(r=s.div.neg()),"div"!==e&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),a=n.cmp(i);return a<0||1===r&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},a.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0==(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(u),o.isub(f)),r.iushrn(1),o.iushrn(1);for(var p=0,b=1;0==(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(s),o.isub(c)):(n.isub(e),s.isub(r),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new a(1),s=new a(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s)):(n.isub(e),s.isub(o))}return(r=0===e.cmpn(1)?o:s).cmpn(0)<0&&r.iadd(t),r},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var a=e;e=n,n=a}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},a.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},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){i<r?e=-1:i>r&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new M(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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 a(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),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},r(m,y),m.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var r=t.words[9];for(e.words[e.length++]=4194303&r,i=10;i<t.length;i++){var a=0|t.words[i];t.words[i-10]=(4194303&a)<<4|r>>>22,r=a}r>>>=22,t.words[i-10]=r,0===r&&t.length>10?t.length-=10:t.length-=9},m.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(v,y),r(A,y),r(w,y),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,r=67108863&i;i>>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new m;else if("p224"===t)e=new v;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},M.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.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)},M.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},M.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)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new a(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);i(!r.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,r),h=this.pow(t,r.addn(1).iushrn(1)),d=this.pow(t,r),p=o;0!==d.cmp(s);){for(var b=d,g=0;0!==b.cmp(s);g++)b=b.redSqr();i(g<p);var y=this.pow(f,new a(1).iushln(p-g-1));h=h.redMul(y),f=y.redSqr(),d=d.redMul(f),p=g}return h},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var r=n[0],o=0,s=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],u=c-1;u>=0;u--){var f=l>>u&1;r!==n[0]&&(r=this.sqr(r)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===i&&0===u)&&(r=this.mul(r,n[o]),s=0,o=0)):s=0}c=26}return r},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new I(t)},r(I,M),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},I.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},I.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(152)(t))},function(t,e,n){"use strict";(function(t){
  /*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   */
  var i=n(113),r=n(114),a=n(52);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__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 f(this,t)}return l(this,t,e,n)}function l(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=h(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n),r=(t=s(t,i)).write(e,n);r!==i&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).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||(i=e.length)!=i?s(t,0):h(t,e);if("Buffer"===e.type&&a(e.data))return h(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(u(e),t=s(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function d(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(t).length;default:if(i)return U(t).length;e=(""+e).toLowerCase(),i=!0}}function b(t,e,n){var i=!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))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return D(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function y(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,i,r){var a,o=1,s=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(a=n;a<s;a++)if(l(t,a)===l(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var f=!0,h=0;h<c;h++)if(l(t,a+h)!==l(e,h)){f=!1;break}if(f)return a}return-1}function v(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function A(t,e,n,i){return F(U(e,t.length-n),t,n,i)}function w(t,e,n,i){return F(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function M(t,e,n,i){return w(t,e,n,i)}function I(t,e,n,i){return F(Y(e),t,n,i)}function x(t,e,n,i){return F(function(t,e){for(var n,i,r,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i);return a}(e,t.length-n),t,n,i)}function C(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var a,o,s,c,l=t[r],u=null,f=l>239?4:l>223?3:l>191?2:1;if(r+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:128==(192&(a=t[r+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=t[r+1],o=t[r+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=f}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=_));return n}(i)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=o(),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 function(t,e,n,i){return u(e),e<=0?s(t,e):void 0!==n?"string"==typeof i?s(t,e).fill(n,i):s(t,e).fill(n):s(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(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,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<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(!a(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 i=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},c.byteLength=p,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)g(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)g(this,e,e+3),g(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)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?E(this,0,t):b.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,i,r){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===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),s=Math.min(a,o),l=this.slice(i,r),u=t.slice(e,n),f=0;f<s;++f)if(l[f]!==u[f]){a=l[f],o=u[f];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=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===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return A(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function T(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function D(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function k(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=Q(t[a]);return r}function S(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function N(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 B(t,e,n,i,r,a){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function j(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function R(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function O(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,i,a){return a||O(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function P(t,e,n,i,a){return a||O(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var r=e-t;n=new c(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=e,r=1,a=this[t+--i];i>0&&(r*=256);)a+=this[t+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},c.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||N(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||N(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||N(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||N(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||N(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||B(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[e]=255&t;++a<n&&(r*=256);)this[e+a]=t/r&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||B(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,a=1;for(this[e+r]=255&t;--r>=0&&(a*=256);)this[e+r]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(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||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(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):R(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(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):R(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;for(this[e]=255&t;++a<n&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(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||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(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):R(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(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):R(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return P(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return P(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},c.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}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 a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=c.isBuffer(t)?t:U(new c(t,i).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function Q(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Y(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(8))},function(t,e,n){"use strict";function i(){return window.__u_id_++,"_u_r_id__"+window.__u_id_}function r(t){if(t&&401===t.status)bootbox.alert("权限不足，不能进行此操作.");else if(t&&t.responseText){var e=t.responseText,n=JSON.parse(e);bootbox.dialog({title:"服务端错误",message:"<span style='color: red'>"+n.errorMsg+"</span>",buttons:[{label:"查看错误堆栈",callback:function(){var t=window.open("error-stack.html","_blank");$(t).load(function(){var t=$(this.document.body);t.css({"font-size":"13px"}),t.empty(),t.append(n.stack)})}}]})}else bootbox.alert("<span style='color: red'>服务端出错</span>")}Object.defineProperty(e,"__esModule",{value:!0}),e.generateId=i,e.pathId=function(t){if(_fullpath_map.has(t))return _fullpath_map.get(t);var e=i();return _fullpath_map.set(t,e),e},e.copyCellData=function(t,e){$.ajax({url:window._server+"/common/parseCellData",type:"POST",data:{type:t,xml:e}})},e.pasteCellData=function(t,e){$.ajax({url:window._server+"/common/loadCellData",type:"POST",data:{type:t},success:function(t){t?e(t):bootbox.alert("当前没有数据可供粘贴！")},error:function(t){r(t)}})},e.handleError=r,e.nextIFrameId=function(){return window.iframe_id_++,"_iframe"+window.iframe_id_},e.getParameter=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(e);return null!=n?n[2]:null},e.ajaxSave=function(t,e,n){$.ajax({type:"POST",url:t,data:e,success:function(t){n(t)},error:function(t){r(t)}})},e.formatDate=function(t,e){"number"==typeof t&&(t=new Date(t));if("string"==typeof t)return t;var n={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var i in n)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return e},e.escapeXml=function(t){return t.replace(/[<>&"]/g,function(t){return{"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[t]})},window.iframe_id_=1,window.__u_id_=0,window._fullpath_map=new Map},,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)}},function(t,e,n){"use strict";var i=e,r=n(2),a=n(6),o=n(74);i.assert=a,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(t,e){for(var n=[],i=1<<e+1,r=t.clone();r.cmpn(1)>=0;){var a;if(r.isOdd()){var o=r.andln(i-1);a=o>(i>>1)-1?(i>>1)-o:o,r.isubn(a)}else a=0;n.push(a);for(var s=0!==r.cmpn(0)&&0===r.andln(i-1)?e+1:1,c=1;c<s;c++)n.push(0);r.iushrn(s)}return n},i.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var i=0,r=0;t.cmpn(-i)>0||e.cmpn(-r)>0;){var a,o,s,c=t.andln(3)+i&3,l=e.andln(3)+r&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==l?c:-c;if(n[0].push(a),0==(1&l))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==c?l:-l;n[1].push(o),2*i===a+1&&(i=1-i),2*r===o+1&&(r=1-r),t.iushrn(1),e.iushrn(1)}return n},i.cachedProperty=function(t,e,n){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=n.call(this)}},i.parseBytes=function(t){return"string"==typeof t?i.toArray(t,"hex"):t},i.intFromLE=function(t){return new r(t,"hex","le")}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i=n(6),r=n(0);function a(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function c(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}e.inherits=r,e.toArray=function(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,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var i=0,r=0;r<t.length;r++){var o=t.charCodeAt(r);o<128?n[i++]=o:o<2048?(n[i++]=o>>6|192,n[i++]=63&o|128):a(t,r)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),n[i++]=o>>18|240,n[i++]=o>>12&63|128,n[i++]=o>>6&63|128,n[i++]=63&o|128):(n[i++]=o>>12|224,n[i++]=o>>6&63|128,n[i++]=63&o|128)}else for(r=0;r<t.length;r++)n[r]=0|t[r];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=s(t[n].toString(16));return e},e.htonl=o,e.toHex32=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t[i];"little"===e&&(r=o(r)),n+=c(r.toString(16))}return n},e.zero2=s,e.zero8=c,e.join32=function(t,e,n,r){var a=n-e;i(a%4==0);for(var o=new Array(a/4),s=0,c=e;s<o.length;s++,c+=4){var l;l="big"===r?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],o[s]=l>>>0}return o},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,r=0;i<t.length;i++,r+=4){var a=t[i];"big"===e?(n[r]=a>>>24,n[r+1]=a>>>16&255,n[r+2]=a>>>8&255,n[r+3]=255&a):(n[r+3]=a>>>24,n[r+2]=a>>>16&255,n[r+1]=a>>>8&255,n[r]=255&a)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,i){return t+e+n+i>>>0},e.sum32_5=function(t,e,n,i,r){return t+e+n+i+r>>>0},e.sum64=function(t,e,n,i){var r=t[e],a=i+t[e+1]>>>0,o=(a<i?1:0)+n+r;t[e]=o>>>0,t[e+1]=a},e.sum64_hi=function(t,e,n,i){return(e+i>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,i){return e+i>>>0},e.sum64_4_hi=function(t,e,n,i,r,a,o,s){var c=0,l=e;return c+=(l=l+i>>>0)<e?1:0,c+=(l=l+a>>>0)<a?1:0,t+n+r+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,n,i,r,a,o,s){return e+i+a+s>>>0},e.sum64_5_hi=function(t,e,n,i,r,a,o,s,c,l){var u=0,f=e;return u+=(f=f+i>>>0)<e?1:0,u+=(f=f+a>>>0)<a?1:0,u+=(f=f+s>>>0)<s?1:0,t+n+r+o+c+(u+=(f=f+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,n,i,r,a,o,s,c,l){return e+i+a+s+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},,function(t,e){var n,i,r=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var c,l=[],u=!1,f=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&d())}function d(){if(!u){var t=s(h);u=!0;for(var e=l.length;e;){for(c=l,l=[];++f<e;)c&&c[f].run();f=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function b(){}r.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];l.push(new p(t,e)),1!==l.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=b,r.addListener=b,r.once=b,r.off=b,r.removeListener=b,r.removeAllListeners=b,r.emit=b,r.prependListener=b,r.prependOnceListener=b,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){var i=n(1).Buffer,r=n(34).Transform,a=n(37).StringDecoder;function o(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(0)(o,r),o.prototype.update=function(t,e,n){"string"==typeof t&&(t=i.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(t,e,n){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){i=t}finally{n(i)}},o.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},o.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},o.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new a(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return n&&(i+=this._decoder.end()),i},t.exports=o},function(t,e,n){"use strict";var i=n(27),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var a=n(21);a.inherits=n(0);var o=n(54),s=n(36);a.inherits(f,o);for(var c=r(s.prototype),l=0;l<c.length;l++){var u=c[l];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(t){if(!(this instanceof f))return new f(t);o.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",h)}function h(){this.allowHalfOpen||this._writableState.ended||i.nextTick(d,this)}function d(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(),i.nextTick(e,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.HIDE_CONTENT_REFACTOR_DIALOG=e.OPEN_CONTENT_REFACTOR_DIALOG=e.HIDE_CATEGORY_REFACTOR_DIALOG=e.OPEN_CATEGORY_REFACTOR_DIALOG=e.HIDE_VERSION_SELECT_DIALOG=e.OPEN_VERSION_SELECT_DIALOG=e.HIDE_KNOWLEDGE_TREE_DIALOG=e.OPEN_KNOWLEDGE_TREE_DIALOG=e.TREE_DIR_NODE_CLICK=e.TREE_NODE_DBLCLICK=e.TREE_NODE_PATH_CHANGE=e.TREE_NODE_CLICK=e.HIDE_LOADING=e.SHOW_LOADING=void 0;var i,r=n(19),a=(i=r)&&i.__esModule?i:{default:i};e.SHOW_LOADING="show_loading",e.HIDE_LOADING="hide_loading",e.TREE_NODE_CLICK="tree_node_click",e.TREE_NODE_PATH_CHANGE="tree_node_path_change",e.TREE_NODE_DBLCLICK="tree_node_dblclick",e.TREE_DIR_NODE_CLICK="tree_dir_node_click",e.OPEN_KNOWLEDGE_TREE_DIALOG="open_knowledge_tree_dialog",e.HIDE_KNOWLEDGE_TREE_DIALOG="hide_knowledge_tree_dialog",e.OPEN_VERSION_SELECT_DIALOG="open_version_select_dialog",e.HIDE_VERSION_SELECT_DIALOG="hide_version_select_dialog",e.OPEN_CATEGORY_REFACTOR_DIALOG="open_category_refactor_dialog",e.HIDE_CATEGORY_REFACTOR_DIALOG="hide_category_refactor_dialog",e.OPEN_CONTENT_REFACTOR_DIALOG="open_content_refactor_dialog",e.HIDE_CONTENT_REFACTOR_DIALOG="hide_content_refactor_dialog",e.eventEmitter=new a.default.EventEmitter},function(t,e,n){"use strict";(function(e,i){var r=65536,a=4294967295;var o=n(1).Buffer,s=e.crypto||e.msCrypto;s&&s.getRandomValues?t.exports=function(t,e){if(t>a)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(t);if(t>0)if(t>r)for(var c=0;c<t;c+=r)s.getRandomValues(n.slice(c,c+r));else s.getRandomValues(n);if("function"==typeof e)return i.nextTick(function(){e(null,n)});return n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(8),n(11))},function(t,e,n){var i=n(1).Buffer;function r(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=i.from(t,e));for(var n=this._block,r=this._blockSize,a=t.length,o=this._len,s=0;s<a;){for(var c=o%r,l=Math.min(a-s,r-c),u=0;u<l;u++)n[c+u]=t[s+u];s+=l,(o+=l)%r==0&&this._update(n)}return this._len+=a,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0,r=(n-i)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return t?a.toString(t):a},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(a).concat([r]).join("\n")}var o;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<t.length;r++){var o=t[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(t,e){var n={},i=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},r=i(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),a=i(function(){return document.head||document.getElementsByTagName("head")[0]}),o=null,s=0,c=[];function l(t,e){for(var i=0;i<t.length;i++){var r=t[i],a=n[r.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](r.parts[o]);for(;o<r.parts.length;o++)a.parts.push(p(r.parts[o],e))}else{var s=[];for(o=0;o<r.parts.length;o++)s.push(p(r.parts[o],e));n[r.id]={id:r.id,refs:1,parts:s}}}}function u(t){for(var e=[],n={},i=0;i<t.length;i++){var r=t[i],a=r[0],o={css:r[1],media:r[2],sourceMap:r[3]};n[a]?n[a].parts.push(o):e.push(n[a]={id:a,parts:[o]})}return e}function f(t,e){var n=a(),i=c[c.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),c.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function h(t){t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function d(t){var e=document.createElement("style");return e.type="text/css",f(t,e),e}function p(t,e){var n,i,r;if(e.singleton){var a=s++;n=o||(o=d(e)),i=y.bind(null,n,a,!1),r=y.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return e.rel="stylesheet",f(t,e),e}(e),i=v.bind(null,n),r=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(e),i=m.bind(null,n),r=function(){h(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(e=e||{}).singleton&&(e.singleton=r()),void 0===e.insertAt&&(e.insertAt="bottom");var i=u(t);return l(i,e),function(t){for(var r=[],a=0;a<i.length;a++){var o=i[a];(s=n[o.id]).refs--,r.push(s)}t&&l(u(t),e);for(a=0;a<r.length;a++){var s;if(0===(s=r[a]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete n[s.id]}}}};var b,g=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function y(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function m(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function v(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}},function(t,e,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,a=r&&"function"==typeof r.apply?r.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function u(t,e,n,i){var r,a,o,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),a=t._events),o=a[e]),void 0===o)o=a[e]=n,++t._eventsCount;else if("function"==typeof o?o=a[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=l(t))>0&&o.length>r&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return t}function f(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,t))}function h(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=f.bind(i);return r.listener=n,i.wrapFn=r,r}function d(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):b(r,r.length)}function p(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 b(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),s.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},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(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},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)a(c,this,e);else{var l=c.length,u=b(c,l);for(n=0;n<l;++n)a(u[n],this,e)}return!0},s.prototype.addListener=function(t,e){return u(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return u(this,t,e,!0)},s.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,h(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,h(this,t,e)),this},s.prototype.removeListener=function(t,e){var n,i,r,a,o;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,a=n.length-1;a>=0;a--)if(n[a]===e||n[a].listener===e){o=n[a].listener,r=a;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))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 r,a=Object.keys(n);for(i=0;i<a.length;++i)"removeListener"!==(r=a[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,n){"use strict";var i=n(0),r=n(33),a=n(38),o=n(39),s=n(12);function c(t){s.call(this,"digest"),this._hash=t}i(c,s),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new a:new c(o(t))}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(3).Buffer)},function(t,e,n){(function(e){t.exports=function(t,n){for(var i=Math.min(t.length,n.length),r=new e(i),a=0;a<i;++a)r[a]=t[a]^n[a];return r}}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var i=n(9),r=n(6);function a(){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=a,a.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},a.prototype.digest=function(t){return this.update(this._pad()),r(null===this.pending),this._digest(t)},a.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,i=new Array(n+this.padLength);i[0]=128;for(var r=1;r<n;r++)i[r]=0;if(t<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)i[r++]=0;i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=t>>>24&255,i[r++]=t>>>16&255,i[r++]=t>>>8&255,i[r++]=255&t}else for(i[r++]=255&t,i[r++]=t>>>8&255,i[r++]=t>>>16&255,i[r++]=t>>>24&255,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,a=8;a<this.padLength;a++)i[r++]=0;return i}},function(t,e,n){var i=e;i.bignum=n(2),i.define=n(178).define,i.base=n(25),i.constants=n(80),i.decoders=n(183),i.encoders=n(185)},function(t,e,n){var i=e;i.Reporter=n(180).Reporter,i.DecoderBuffer=n(79).DecoderBuffer,i.EncoderBuffer=n(79).EncoderBuffer,i.Node=n(181)},,function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,i,r){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,o,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,i)});case 4:return e.nextTick(function(){t.call(null,n,i,r)});default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return e.nextTick(function(){t.apply(null,a)})}}}:t.exports=e}).call(this,n(11))},function(t,e,n){var i=n(1).Buffer;function r(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,n=new Array(e),r=0;r<e;r++)n[r]=t.readUInt32BE(4*r);return n}function a(t){for(;0<t.length;t++)t[0]=0}function o(t,e,n,i,r){for(var a,o,s,c,l=n[0],u=n[1],f=n[2],h=n[3],d=t[0]^e[0],p=t[1]^e[1],b=t[2]^e[2],g=t[3]^e[3],y=4,m=1;m<r;m++)a=l[d>>>24]^u[p>>>16&255]^f[b>>>8&255]^h[255&g]^e[y++],o=l[p>>>24]^u[b>>>16&255]^f[g>>>8&255]^h[255&d]^e[y++],s=l[b>>>24]^u[g>>>16&255]^f[d>>>8&255]^h[255&p]^e[y++],c=l[g>>>24]^u[d>>>16&255]^f[p>>>8&255]^h[255&b]^e[y++],d=a,p=o,b=s,g=c;return a=(i[d>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&g])^e[y++],o=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[g>>>8&255]<<8|i[255&d])^e[y++],s=(i[b>>>24]<<24|i[g>>>16&255]<<16|i[d>>>8&255]<<8|i[255&p])^e[y++],c=(i[g>>>24]<<24|i[d>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^e[y++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],i=[],r=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[o]=l,i[l]=o;var u=t[o],f=t[u],h=t[f],d=257*t[l]^16843008*l;r[0][o]=d<<24|d>>>8,r[1][o]=d<<16|d>>>16,r[2][o]=d<<8|d>>>24,r[3][o]=d,d=16843009*h^65537*f^257*u^16843008*o,a[0][l]=d<<24|d>>>8,a[1][l]=d<<16|d>>>16,a[2][l]=d<<8|d>>>24,a[3][l]=d,0===o?o=s=1:(o=u^t[t[t[h^u]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:a}}();function l(t){this._key=r(t),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,i=4*(n+1),r=[],a=0;a<e;a++)r[a]=t[a];for(a=e;a<i;a++){var o=r[a-1];a%e==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/e|0]<<24):e>6&&a%e==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),r[a]=r[a-e]^o}for(var l=[],u=0;u<i;u++){var f=i-u,h=r[f-(u%4?0:4)];l[u]=u<4||f<=4?h:c.INV_SUB_MIX[0][c.SBOX[h>>>24]]^c.INV_SUB_MIX[1][c.SBOX[h>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[h>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&h]]}this._nRounds=n,this._keySchedule=r,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=i.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},l.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var n=o(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=i.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=l},function(t,e,n){var i=n(1).Buffer,r=n(33);t.exports=function(t,e,n,a){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=i.alloc(o),c=i.alloc(a||0),l=i.alloc(0);o>0||a>0;){var u=new r;u.update(l),u.update(t),e&&u.update(e),l=u.digest();var f=0;if(o>0){var h=s.length-o;f=Math.min(o,l.length),l.copy(s,h,0,f),o-=f}if(f<l.length&&a>0){var d=c.length-a,p=Math.min(a,l.length-f);l.copy(c,d,f,f+p),a-=p}}return l.fill(0),{key:s,iv:c}}},function(t,e,n){"use strict";var i=n(2),r=n(7),a=r.getNAF,o=r.getJSF,s=r.assert;function c(t,e){this.type=t,this.p=new i(e.p,16),this.red=e.prime?i.red(e.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=e.n&&new i(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);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 l(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),i=a(e,1),r=(1<<n.step+1)-(n.step%2==0?2:1);r/=3;for(var o=[],c=0;c<i.length;c+=n.step){var l=0;for(e=c+n.step-1;e>=c;e--)l=(l<<1)+i[e];o.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=r;h>0;h--){for(c=0;c<o.length;c++){(l=o[c])===h?f=f.mixedAdd(n.points[c]):l===-h&&(f=f.mixedAdd(n.points[c].neg()))}u=u.add(f)}return u.toP()},c.prototype._wnafMul=function(t,e){var n=4,i=t._getNAFPoints(n);n=i.wnd;for(var r=i.points,o=a(e,n),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(e=0;l>=0&&0===o[l];l--)e++;if(l>=0&&e++,c=c.dblp(e),l<0)break;var u=o[l];s(0!==u),c="affine"===t.type?u>0?c.mixedAdd(r[u-1>>1]):c.mixedAdd(r[-u-1>>1].neg()):u>0?c.add(r[u-1>>1]):c.add(r[-u-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,n,i,r){for(var s=this._wnafT1,c=this._wnafT2,l=this._wnafT3,u=0,f=0;f<i;f++){var h=(C=e[f])._getNAFPoints(t);s[f]=h.wnd,c[f]=h.points}for(f=i-1;f>=1;f-=2){var d=f-1,p=f;if(1===s[d]&&1===s[p]){var b=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(b[1]=e[d].add(e[p]),b[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(b[1]=e[d].toJ().mixedAdd(e[p]),b[2]=e[d].add(e[p].neg())):(b[1]=e[d].toJ().mixedAdd(e[p]),b[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=o(n[d],n[p]);u=Math.max(y[0].length,u),l[d]=new Array(u),l[p]=new Array(u);for(var m=0;m<u;m++){var v=0|y[0][m],A=0|y[1][m];l[d][m]=g[3*(v+1)+(A+1)],l[p][m]=0,c[d]=b}}else l[d]=a(n[d],s[d]),l[p]=a(n[p],s[p]),u=Math.max(l[d].length,u),u=Math.max(l[p].length,u)}var w=this.jpoint(null,null,null),M=this._wnafT4;for(f=u;f>=0;f--){for(var I=0;f>=0;){var x=!0;for(m=0;m<i;m++)M[m]=0|l[m][f],0!==M[m]&&(x=!1);if(!x)break;I++,f--}if(f>=0&&I++,w=w.dblp(I),f<0)break;for(m=0;m<i;m++){var C,E=M[m];0!==E&&(E>0?C=c[m][E-1>>1]:E<0&&(C=c[m][-E-1>>1].neg()),w="affine"===C.type?w.mixedAdd(C):w.add(C))}}for(f=0;f<i;f++)c[f]=null;return r?w:w.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(t,e){t=r.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));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")},l.prototype.encodeCompressed=function(t){return this.encode(t,!0)},l.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))},l.prototype.encode=function(t,e){return r.encode(this._encode(e),t)},l.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},l.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)},l.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,r=0;r<e;r+=t){for(var a=0;a<t;a++)i=i.dbl();n.push(i)}return{step:t,points:n}},l.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,i=1===n?null:this.dbl(),r=1;r<n;r++)e[r]=e[r-1].add(i);return{wnd:t,points:e}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},function(t,e,n){var i=n(177),r=n(188),a=n(189),o=n(41),s=n(63),c=n(1).Buffer;function l(t){var e;"object"!=typeof t||c.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=c.from(t));var n,l,u=a(t,e),f=u.tag,h=u.data;switch(f){case"CERTIFICATE":l=i.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=i.PublicKey.decode(h,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=i.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+f);case"ENCRYPTED PRIVATE KEY":h=function(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=r[t.algorithm.decrypt.cipher.algo.join(".")],l=t.algorithm.decrypt.cipher.iv,u=t.subjectPrivateKey,f=parseInt(a.split("-")[1],10)/8,h=s.pbkdf2Sync(e,n,i,f,"sha1"),d=o.createDecipheriv(a,h,l),p=[];return p.push(d.update(u)),p.push(d.final()),c.concat(p)}(h=i.EncryptedPrivateKey.decode(h,"der"),e);case"PRIVATE KEY":switch(n=(l=i.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:i.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=i.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+f);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=i.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=l,l.signature=i.signature},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueID=function(){return"_ui_"+s++},e.refactorContent=function(t,e,n){var i=window._server+"/common/refactorContent";$.ajax({url:i,type:"POST",data:t,success:function(){e.call(this)},error:function(t){n&&n(),(0,o.handleError)(t)}})},e.loadFileVersions=function(t,e){var n=window._server+"/frame/loadFileVersions";$.ajax({url:n,data:{file:t},type:"POST",success:function(t){c(t),e(t)},error:function(){alert("加载文件["+t+"]的版本信息失败.")}})},e.loadResourceTreeData=function(t,e){var n=window._server+"/common/loadResourceTreeData";$.ajax({url:n,data:t,type:"POST",success:function(t){c(t),e(t)},error:function(){alert("加载资源失败.")}})};var i,r=n(93),a=(i=r)&&i.__esModule?i:{default:i},o=n(4);var s=1;function c(t){switch(t.type){case"root":t._icon=a.default.frameStyle.getRootIcon(),t._style=a.default.frameStyle.getRootIconStyle();break;case"folder":t._icon=a.default.frameStyle.getFolderIcon(),t._style=a.default.frameStyle.getFolderIconStyle();break;case"rule":t._icon=a.default.frameStyle.getRuleIcon(),t._style=a.default.frameStyle.getRuleIconStyle(),t.editorPath="/ruleeditor";break;case"conditionTemplate":t._icon=a.default.frameStyle.getConditionTemplate(),t._style=a.default.frameStyle.getConditionTemplateStyle(),t.editorPath="/conditiontemplate";break;case"actionTemplate":t._icon=a.default.frameStyle.getActionTemplate(),t._style=a.default.frameStyle.getActionTemplateStyle(),t.editorPath="/actiontemplate";break;case"project":t._icon=a.default.frameStyle.getProjectIcon(),t._style=a.default.frameStyle.getProjectIconStyle();break;case"resource":t._icon=a.default.frameStyle.getResourceIcon(),t._style=a.default.frameStyle.getResourceIconStyle();break;case"resourcePackage":t._icon=a.default.frameStyle.getResourcePackageIcon(),t._style=a.default.frameStyle.getResourcePackageIconStyle(),t.editorPath="/packageeditor";break;case"lib":t._icon=a.default.frameStyle.getLibIcon(),t._style=a.default.frameStyle.getLibIconStyle();break;case"action":t._icon=a.default.frameStyle.getActionIcon(),t._style=a.default.frameStyle.getActionIconStyle(),t.editorPath="/actioneditor";break;case"parameter":t._icon=a.default.frameStyle.getParameterIcon(),t._style=a.default.frameStyle.getParameterIconStyle(),t.editorPath="/parametereditor";break;case"constant":t._icon=a.default.frameStyle.getConstantIcon(),t._style=a.default.frameStyle.getConstantIconStyle(),t.editorPath="/constanteditor";break;case"variable":t._icon=a.default.frameStyle.getVariableIcon(),t._style=a.default.frameStyle.getVariableIconStyle(),t.editorPath="/variableeditor";break;case"ruleLib":t._icon=a.default.frameStyle.getRuleLibIcon(),t._style=a.default.frameStyle.getRuleLibIconStyle();break;case"decisionTableLib":t._icon=a.default.frameStyle.getDecisionTableLibIcon(),t._style=a.default.frameStyle.getDecisionTableLibIconStyle();break;case"decisionTreeLib":t._icon=a.default.frameStyle.getDecisionTreeLibIcon(),t._style=a.default.frameStyle.getDecisionTreeLibIconStyle();break;case"flowLib":t._icon=a.default.frameStyle.getFlowLibIcon(),t._style=a.default.frameStyle.getFlowLibIconStyle();break;case"ul":t._icon=a.default.frameStyle.getUlIcon(),t._style=a.default.frameStyle.getUlIconStyle(),t.editorPath="/uleditor";break;case"decisionTable":t._icon=a.default.frameStyle.getDecisionTableIcon(),t._style=a.default.frameStyle.getDecisionTableIconStyle(),t.editorPath="/decisiontableeditor";break;case"crosstab":t._icon=a.default.frameStyle.getCrossDecisionTableIcon(),t._style=a.default.frameStyle.getCrossDecisionTableIconStyle(),t.editorPath="/crosstabeditor";break;case"scriptDecisionTable":t._icon=a.default.frameStyle.getScriptDecisionTableIcon(),t._style=a.default.frameStyle.getScriptDecisionTableIconStyle(),t.editorPath="/scriptdecisiontableeditor";break;case"decisionTree":t._icon=a.default.frameStyle.getDecisionTreeIcon(),t._style=a.default.frameStyle.getDecisionTreeIconStyle(),t.editorPath="/decisiontreeditor";break;case"flow":t._icon=a.default.frameStyle.getFlowIcon(),t._style=a.default.frameStyle.getFlowIconStyle(),t.editorPath="/floweditor";break;case"scorecard":t._icon=a.default.frameStyle.getScorecardIcon(),t._style=a.default.frameStyle.getScorecardIconStyle(),t.editorPath="/scorecardeditor";break;case"complexscorecard":t._icon=a.default.frameStyle.getComplexScorecardIcon(),t._style=a.default.frameStyle.getComplexScorecardIconStyle(),t.editorPath="/complexscorecardeditor"}var e=t.children;e&&e.forEach(function(t,e){c(t)})}},function(t,e,n){"use strict";var i=n(0),r=n(53),a=n(1).Buffer,o=new Array(16);function s(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(t,e){return t<<e|t>>>32-e}function l(t,e,n,i,r,a,o){return c(t+(e&n|~e&i)+r+a|0,o)+e|0}function u(t,e,n,i,r,a,o){return c(t+(e&i|n&~i)+r+a|0,o)+e|0}function f(t,e,n,i,r,a,o){return c(t+(e^n^i)+r+a|0,o)+e|0}function h(t,e,n,i,r,a,o){return c(t+(n^(e|~i))+r+a|0,o)+e|0}i(s,r),s.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,i=this._b,r=this._c,a=this._d;n=l(n,i,r,a,t[0],3614090360,7),a=l(a,n,i,r,t[1],3905402710,12),r=l(r,a,n,i,t[2],606105819,17),i=l(i,r,a,n,t[3],3250441966,22),n=l(n,i,r,a,t[4],4118548399,7),a=l(a,n,i,r,t[5],1200080426,12),r=l(r,a,n,i,t[6],2821735955,17),i=l(i,r,a,n,t[7],4249261313,22),n=l(n,i,r,a,t[8],1770035416,7),a=l(a,n,i,r,t[9],2336552879,12),r=l(r,a,n,i,t[10],4294925233,17),i=l(i,r,a,n,t[11],2304563134,22),n=l(n,i,r,a,t[12],1804603682,7),a=l(a,n,i,r,t[13],4254626195,12),r=l(r,a,n,i,t[14],2792965006,17),n=u(n,i=l(i,r,a,n,t[15],1236535329,22),r,a,t[1],4129170786,5),a=u(a,n,i,r,t[6],3225465664,9),r=u(r,a,n,i,t[11],643717713,14),i=u(i,r,a,n,t[0],3921069994,20),n=u(n,i,r,a,t[5],3593408605,5),a=u(a,n,i,r,t[10],38016083,9),r=u(r,a,n,i,t[15],3634488961,14),i=u(i,r,a,n,t[4],3889429448,20),n=u(n,i,r,a,t[9],568446438,5),a=u(a,n,i,r,t[14],3275163606,9),r=u(r,a,n,i,t[3],4107603335,14),i=u(i,r,a,n,t[8],1163531501,20),n=u(n,i,r,a,t[13],2850285829,5),a=u(a,n,i,r,t[2],4243563512,9),r=u(r,a,n,i,t[7],1735328473,14),n=f(n,i=u(i,r,a,n,t[12],2368359562,20),r,a,t[5],4294588738,4),a=f(a,n,i,r,t[8],2272392833,11),r=f(r,a,n,i,t[11],1839030562,16),i=f(i,r,a,n,t[14],4259657740,23),n=f(n,i,r,a,t[1],2763975236,4),a=f(a,n,i,r,t[4],1272893353,11),r=f(r,a,n,i,t[7],4139469664,16),i=f(i,r,a,n,t[10],3200236656,23),n=f(n,i,r,a,t[13],681279174,4),a=f(a,n,i,r,t[0],3936430074,11),r=f(r,a,n,i,t[3],3572445317,16),i=f(i,r,a,n,t[6],76029189,23),n=f(n,i,r,a,t[9],3654602809,4),a=f(a,n,i,r,t[12],3873151461,11),r=f(r,a,n,i,t[15],530742520,16),n=h(n,i=f(i,r,a,n,t[2],3299628645,23),r,a,t[0],4096336452,6),a=h(a,n,i,r,t[7],1126891415,10),r=h(r,a,n,i,t[14],2878612391,15),i=h(i,r,a,n,t[5],4237533241,21),n=h(n,i,r,a,t[12],1700485571,6),a=h(a,n,i,r,t[3],2399980690,10),r=h(r,a,n,i,t[10],4293915773,15),i=h(i,r,a,n,t[1],2240044497,21),n=h(n,i,r,a,t[8],1873313359,6),a=h(a,n,i,r,t[15],4264355552,10),r=h(r,a,n,i,t[6],2734768916,15),i=h(i,r,a,n,t[13],1309151649,21),n=h(n,i,r,a,t[4],4149444226,6),a=h(a,n,i,r,t[11],3174756917,10),r=h(r,a,n,i,t[2],718787259,15),i=h(i,r,a,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+a|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=a.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},function(t,e,n){t.exports=r;var i=n(19).EventEmitter;function r(){i.call(this)}n(0)(r,i),r.Readable=n(35),r.Writable=n(123),r.Duplex=n(124),r.Transform=n(125),r.PassThrough=n(126),r.Stream=r,r.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",a),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,t.end())}function c(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",r),t.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",l),t.on("error",l),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},function(t,e,n){(e=t.exports=n(54)).Stream=e,e.Readable=e,e.Writable=n(36),e.Duplex=n(13),e.Transform=n(57),e.PassThrough=n(122)},function(t,e,n){"use strict";(function(e,i,r){var a=n(27);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;t.entry=null;for(;i;){var r=i.callback;e.pendingcb--,r(n),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=m;var s,c=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:a.nextTick;m.WritableState=y;var l=n(21);l.inherits=n(0);var u={deprecate:n(121)},f=n(55),h=n(1).Buffer,d=r.Uint8Array||function(){};var p,b=n(56);function g(){}function y(t,e){s=s||n(13),t=t||{};var i=e instanceof s;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(l||0===l)?l: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 f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?(a.nextTick(r,i),a.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(r(i),t._writableState.errorEmitted=!0,t.emit("error",i),x(t,e))}(t,n,i,e,r);else{var o=M(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),i?c(A,t,n,o,r):A(t,n,o,r)}}(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 m(t){if(s=s||n(13),!(p.call(m,this)||this instanceof s))return new m(t);this._writableState=new y(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function v(t,e,n,i,r,a,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,a,e.onwrite),e.sync=!1}function A(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),x(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),a=e.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)r[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;r.allBuffers=c,v(t,e,!0,e.length,r,"",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{for(;n;){var l=n.chunk,u=n.encoding,f=n.callback;if(v(t,e,!1,e.objectMode?1:l.length,l,u,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function I(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function x(t,e){var n=M(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,a.nextTick(I,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(m,f),y.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(y.prototype,"buffer",{get:u.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]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===m&&(t&&t._writableState instanceof y)}})):p=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,r=this._writableState,o=!1,s=!r.objectMode&&(i=t,h.isBuffer(i)||i instanceof d);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=g),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),a.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),a.nextTick(i,o),r=!1),r}(this,r,t,n))&&(r.pendingcb++,o=function(t,e,n,i,r,a){if(!n){var o=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,n));return e}(e,i,r);i!==o&&(n=!0,r="buffer",i=o)}var s=e.objectMode?1:i.length;e.length+=s;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:a,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,s,i,r,a);return c}(this,r,s,t,e,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},m.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(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?a.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=b.destroy,m.prototype._undestroy=b.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(11),n(119).setImmediate,n(8))},function(t,e,n){"use strict";var i=n(1).Buffer,r=i.isEncoding||function(t){switch((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 a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)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}}(t);if("string"!=typeof e&&(i.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=f,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(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,"�"}}(this,t);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 c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=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 l(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 u(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 f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))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||""},a.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},a.prototype.text=function(t,e){var n=function(t,e,n){var i=e.length-1;if(i<n)return 0;var r=o(e[i]);if(r>=0)return r>0&&(t.lastNeed=r-1),r;if(--i<n||-2===r)return 0;if((r=o(e[i]))>=0)return r>0&&(t.lastNeed=r-2),r;if(--i<n||-2===r)return 0;if((r=o(e[i]))>=0)return r>0&&(2===r?r=0:t.lastNeed=r-3),r;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";var i=n(3).Buffer,r=n(0),a=n(53),o=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],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[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],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){a.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 b(t,e,n,i,r,a,o,s){return p(t+(e^n^i)+a+o|0,s)+r|0}function g(t,e,n,i,r,a,o,s){return p(t+(e&n|~e&i)+a+o|0,s)+r|0}function y(t,e,n,i,r,a,o,s){return p(t+((e|~n)^i)+a+o|0,s)+r|0}function m(t,e,n,i,r,a,o,s){return p(t+(e&i|n&~i)+a+o|0,s)+r|0}function v(t,e,n,i,r,a,o,s){return p(t+(e^(n|~i))+a+o|0,s)+r|0}r(d,a),d.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,i=0|this._b,r=0|this._c,a=0|this._d,d=0|this._e,A=0|this._a,w=0|this._b,M=0|this._c,I=0|this._d,x=0|this._e,C=0;C<80;C+=1){var E,_;C<16?(E=b(n,i,r,a,d,t[s[C]],f[0],l[C]),_=v(A,w,M,I,x,t[c[C]],h[0],u[C])):C<32?(E=g(n,i,r,a,d,t[s[C]],f[1],l[C]),_=m(A,w,M,I,x,t[c[C]],h[1],u[C])):C<48?(E=y(n,i,r,a,d,t[s[C]],f[2],l[C]),_=y(A,w,M,I,x,t[c[C]],h[2],u[C])):C<64?(E=m(n,i,r,a,d,t[s[C]],f[3],l[C]),_=g(A,w,M,I,x,t[c[C]],h[3],u[C])):(E=v(n,i,r,a,d,t[s[C]],f[4],l[C]),_=b(A,w,M,I,x,t[c[C]],h[4],u[C])),n=d,d=a,a=p(r,10),r=i,i=E,A=x,x=I,I=p(M,10),M=w,w=_}var T=this._b+r+I|0;this._b=this._c+a+x|0,this._c=this._d+d+A|0,this._d=this._e+n+w|0,this._e=this._a+i+M|0,this._a=T},d.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=i.alloc?i.alloc(20):new i(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=d},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}).sha=n(127),e.sha1=n(128),e.sha224=n(129),e.sha256=n(58),e.sha384=n(130),e.sha512=n(59)},function(t,e,n){"use strict";e.utils=n(136),e.Cipher=n(137),e.DES=n(138),e.CBC=n(139),e.EDE=n(140)},function(t,e,n){var i=n(141),r=n(149),a=n(69);e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(a)}},function(t,e,n){var i={ECB:n(142),CBC:n(143),CFB:n(144),CFB8:n(145),CFB1:n(146),OFB:n(147),CTR:n(67),GCM:n(67)},r=n(69);for(var a in r)r[a].module=i[r[a].mode];t.exports=r},function(t,e,n){var i;function r(t){this.rand=t}if(t.exports=function(t){return i||(i=new r(null)),i.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=n(154);if("function"!=typeof a.randomBytes)throw new Error("Not supported");r.prototype._rand=function(t){return a.randomBytes(t)}}catch(t){}},function(t,e,n){(function(e){var i=n(2),r=n(15);function a(t,n){var r=function(t){var e=o(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(n),a=n.modulus.byteLength(),s=(i.mont(n.modulus),new i(t).mul(r.blinder).umod(n.modulus)),c=s.toRed(i.mont(n.prime1)),l=s.toRed(i.mont(n.prime2)),u=n.coefficient,f=n.prime1,h=n.prime2,d=c.redPow(n.exponent1),p=l.redPow(n.exponent2);d=d.fromRed(),p=p.fromRed();var b=d.isub(p).imul(u).umod(f);return b.imul(h),p.iadd(b),new e(p.imul(r.unblinder).umod(n.modulus).toArray(!1,a))}function o(t){for(var e=t.modulus.byteLength(),n=new i(r(e));n.cmp(t.modulus)>=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new i(r(e));return n}t.exports=a,a.getr=o}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var i=e;i.version=n(159).version,i.utils=n(7),i.rand=n(43),i.curve=n(75),i.curves=n(46),i.ec=n(170),i.eddsa=n(174)},function(t,e,n){"use strict";var i,r=e,a=n(47),o=n(75),s=n(7).assert;function c(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.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:a.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:a.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:a.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:a.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:a.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:a.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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=n(169)}catch(t){i=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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(t,e,n){var i=e;i.utils=n(9),i.common=n(23),i.sha=n(163),i.ripemd=n(167),i.hmac=n(168),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=s(r),o=s(n(10));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=$(o.default.findDOMNode(this));t.on("show.bs.modal",function(){var e=1050;$(document).find(".modal").each(function(t,n){var i=$(n).css("z-index");if(i&&""!==i&&!isNaN(i)){var r=parseInt(i);r>e&&(e=r)}}),t.css("z-index",e+1)})}},{key:"render",value:function(){var t=this,e=[];this.props.buttons.forEach(function(n,i){e.push(a.default.createElement("button",{type:"button",key:i,className:n.className,onClick:function(e){n.click(t.props.dispatch)}},a.default.createElement("i",{className:n.icon})," ",n.name))});var n="modal-dialog"+(this.props.large?" modal-lg":"");return a.default.createElement("div",{className:"modal fade",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{overflow:"auto"}},a.default.createElement("div",{className:n},a.default.createElement("div",{className:"modal-content"},a.default.createElement("div",{className:"modal-header"},a.default.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-hidden":"true"},"×"),a.default.createElement("h3",{className:"modal-title",id:"myModalLabel",style:{wordWrap:"break-word"}},this.props.title,a.default.createElement("div",{className:"text-danger",style:{fontSize:"12pt"}},this.props.info?this.props.info:null))),a.default.createElement("div",{className:"modal-body",style:{padding:"10px"}},this.props.body),a.default.createElement("div",{className:"modal-footer"},e))))}}]),e}();e.default=c},function(t,e,n){var i=n(94);"string"==typeof i&&(i=[[t.i,i,""]]);n(18)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";function i(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function r(t,e,n,r,a,o){return i((s=i(i(e,t),i(r,o)))<<(c=a)|s>>>32-c,n);var s,c}function a(t,e,n,i,a,o,s){return r(e&n|~e&i,t,e,a,o,s)}function o(t,e,n,i,a,o,s){return r(e&i|n&~i,t,e,a,o,s)}function s(t,e,n,i,a,o,s){return r(e^n^i,t,e,a,o,s)}function c(t,e,n,i,a,o,s){return r(n^(e|~i),t,e,a,o,s)}function l(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var n,r,l,u,f,h=1732584193,d=-271733879,p=-1732584194,b=271733878;for(n=0;n<t.length;n+=16)r=h,l=d,u=p,f=b,h=a(h,d,p,b,t[n],7,-680876936),b=a(b,h,d,p,t[n+1],12,-389564586),p=a(p,b,h,d,t[n+2],17,606105819),d=a(d,p,b,h,t[n+3],22,-1044525330),h=a(h,d,p,b,t[n+4],7,-176418897),b=a(b,h,d,p,t[n+5],12,1200080426),p=a(p,b,h,d,t[n+6],17,-1473231341),d=a(d,p,b,h,t[n+7],22,-45705983),h=a(h,d,p,b,t[n+8],7,1770035416),b=a(b,h,d,p,t[n+9],12,-1958414417),p=a(p,b,h,d,t[n+10],17,-42063),d=a(d,p,b,h,t[n+11],22,-1990404162),h=a(h,d,p,b,t[n+12],7,1804603682),b=a(b,h,d,p,t[n+13],12,-40341101),p=a(p,b,h,d,t[n+14],17,-1502002290),h=o(h,d=a(d,p,b,h,t[n+15],22,1236535329),p,b,t[n+1],5,-165796510),b=o(b,h,d,p,t[n+6],9,-1069501632),p=o(p,b,h,d,t[n+11],14,643717713),d=o(d,p,b,h,t[n],20,-373897302),h=o(h,d,p,b,t[n+5],5,-701558691),b=o(b,h,d,p,t[n+10],9,38016083),p=o(p,b,h,d,t[n+15],14,-660478335),d=o(d,p,b,h,t[n+4],20,-405537848),h=o(h,d,p,b,t[n+9],5,568446438),b=o(b,h,d,p,t[n+14],9,-1019803690),p=o(p,b,h,d,t[n+3],14,-187363961),d=o(d,p,b,h,t[n+8],20,1163531501),h=o(h,d,p,b,t[n+13],5,-1444681467),b=o(b,h,d,p,t[n+2],9,-51403784),p=o(p,b,h,d,t[n+7],14,1735328473),h=s(h,d=o(d,p,b,h,t[n+12],20,-1926607734),p,b,t[n+5],4,-378558),b=s(b,h,d,p,t[n+8],11,-2022574463),p=s(p,b,h,d,t[n+11],16,1839030562),d=s(d,p,b,h,t[n+14],23,-35309556),h=s(h,d,p,b,t[n+1],4,-1530992060),b=s(b,h,d,p,t[n+4],11,1272893353),p=s(p,b,h,d,t[n+7],16,-155497632),d=s(d,p,b,h,t[n+10],23,-1094730640),h=s(h,d,p,b,t[n+13],4,681279174),b=s(b,h,d,p,t[n],11,-358537222),p=s(p,b,h,d,t[n+3],16,-722521979),d=s(d,p,b,h,t[n+6],23,76029189),h=s(h,d,p,b,t[n+9],4,-640364487),b=s(b,h,d,p,t[n+12],11,-421815835),p=s(p,b,h,d,t[n+15],16,530742520),h=c(h,d=s(d,p,b,h,t[n+2],23,-995338651),p,b,t[n],6,-198630844),b=c(b,h,d,p,t[n+7],10,1126891415),p=c(p,b,h,d,t[n+14],15,-1416354905),d=c(d,p,b,h,t[n+5],21,-57434055),h=c(h,d,p,b,t[n+12],6,1700485571),b=c(b,h,d,p,t[n+3],10,-1894986606),p=c(p,b,h,d,t[n+10],15,-1051523),d=c(d,p,b,h,t[n+1],21,-2054922799),h=c(h,d,p,b,t[n+8],6,1873313359),b=c(b,h,d,p,t[n+15],10,-30611744),p=c(p,b,h,d,t[n+6],15,-1560198380),d=c(d,p,b,h,t[n+13],21,1309151649),h=c(h,d,p,b,t[n+4],6,-145523070),b=c(b,h,d,p,t[n+11],10,-1120210379),p=c(p,b,h,d,t[n+2],15,718787259),d=c(d,p,b,h,t[n+9],21,-343485551),h=i(h,r),d=i(d,l),p=i(p,u),b=i(b,f);return[h,d,p,b]}function u(t){var e,n="";for(e=0;e<32*t.length;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function f(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;for(e=0;e<8*t.length;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function h(t){var e,n,i="0123456789abcdef",r="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),r+=i.charAt(e>>>4&15)+i.charAt(15&e);return r}function d(t){return unescape(encodeURIComponent(t))}function p(t){return function(t){return u(l(f(t),8*t.length))}(d(t))}function b(t,e){return function(t,e){var n,i,r=f(t),a=[],o=[];for(a[15]=o[15]=void 0,r.length>16&&(r=l(r,8*t.length)),n=0;n<16;n+=1)a[n]=909522486^r[n],o[n]=1549556828^r[n];return i=l(a.concat(f(e)),512+8*e.length),u(l(o.concat(i),640))}(d(t),d(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.encrypt=function(t){return function(t){function e(t,e){return t<<e|t>>>32-e}function n(t){var e="",n=void 0;for(n=7;n>=0;n--)e+=(t>>>4*n&15).toString(16);return e}var i=void 0,r=void 0,a=void 0,o=new Array(80),s=1732584193,c=4023233417,l=2562383102,u=271733878,f=3285377520,d=void 0,g=void 0,y=void 0,m=void 0,v=void 0,A=void 0,w=(t=function(t){-1===(t=(t=function(t,e,n){if(t+="-",t+="+",t+="*",t+="!",t+="@",t+="$",t+="#",!e)return n?p(t):h(p(t));if(!n)return h(b(e,t));return b(e,t)}("urule-pro-"+t)).replace(/\r\n/g,"\n")).indexOf("S")?t+=(new Date).getDate():t+=(new Date).getMonth();for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e}(t)).length,M=new Array;for(r=0;r<w-3;r+=4)a=t.charCodeAt(r)<<24|t.charCodeAt(r+1)<<16|t.charCodeAt(r+2)<<8|t.charCodeAt(r+3),M.push(a);switch(w%4){case 0:r=2147483648;break;case 1:r=t.charCodeAt(w-1)<<24|8388608;break;case 2:r=t.charCodeAt(w-2)<<24|t.charCodeAt(w-1)<<16|32768;break;case 3:r=t.charCodeAt(w-3)<<24|t.charCodeAt(w-2)<<16|t.charCodeAt(w-1)<<8|128}M.push(r);for(;M.length%16!=14;)M.push(0);for(M.push(w>>>29),M.push(w<<3&4294967295),i=0;i<M.length;i+=16){for(r=0;r<16;r++)o[r]=M[i+r];for(r=16;r<=79;r++)o[r]=e(o[r-3]^o[r-8]^o[r-14]^o[r-16],1);for(d=s,g=c,y=l,m=u,v=f,r=0;r<=19;r++)A=e(d,5)+(g&y|~g&m)+v+o[r]+1518500249&4294967295,v=m,m=y,y=e(g,30),g=d,d=A;for(r=20;r<=39;r++)A=e(d,5)+(g^y^m)+v+o[r]+1859775393&4294967295,v=m,m=y,y=e(g,30),g=d,d=A;for(r=40;r<=59;r++)A=e(d,5)+(g&y|g&m|y&m)+v+o[r]+2400959708&4294967295,v=m,m=y,y=e(g,30),g=d,d=A;for(r=60;r<=79;r++)A=e(d,5)+(g^y^m)+v+o[r]+3395469782&4294967295,v=m,m=y,y=e(g,30),g=d,d=A;s=s+d&4294967295,c=c+g&4294967295,l=l+y&4294967295,u=u+m&4294967295,f=f+v&4294967295}return(n(s)+n(c)+n(l)+n(u)+n(f)).toLowerCase()}(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.HIDE_CHILD_LIST_DIALOG=e.SHOW_CHILD_LIST_DIALOG=e.HIDE_CELL_EDITOR=e.SHOW_CELL_EDITOR=void 0;var i,r=n(19),a=(i=r)&&i.__esModule?i:{default:i};e.SHOW_CELL_EDITOR="show_cell_editor",e.HIDE_CELL_EDITOR="hide_cell_editor",e.SHOW_CHILD_LIST_DIALOG="show_child_list_dialog",e.HIDE_CHILD_LIST_DIALOG="hide_child_list_dialog",e.eventEmitter=new a.default.EventEmitter},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var i=n(1).Buffer,r=n(34).Transform;function a(t){r.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(0)(a,r),a.prototype._transform=function(t,e,n){var i=null;try{this.update(t,e)}catch(t){i=t}n(i)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},a.prototype.update=function(t,e){if(function(t,e){if(!i.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(t)||(t=i.from(t,e));for(var n=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=t[r++];this._update(),this._blockOffset=0}for(;r<t.length;)n[this._blockOffset++]=t[r++];for(var o=0,s=8*t.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},a.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=a},function(t,e,n){"use strict";(function(e,i){var r=n(27);t.exports=v;var a,o=n(52);v.ReadableState=m;n(19).EventEmitter;var s=function(t,e){return t.listeners(e).length},c=n(55),l=n(1).Buffer,u=e.Uint8Array||function(){};var f=n(21);f.inherits=n(0);var h=n(116),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,b=n(117),g=n(56);f.inherits(v,c);var y=["error","close","destroy","pause","resume"];function m(t,e){t=t||{};var i=e instanceof(a=a||n(13));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(37).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(a=a||n(13),!(this instanceof v))return new v(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function A(t,e,n,i,r){var a,o=t._readableState;null===e?(o.reading=!1,function(t,e){if(e.ended)return;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,x(t)}(t,o)):(r||(a=function(t,e){var n;i=e,l.isBuffer(i)||i instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,e)),a?t.emit("error",a):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?w(t,o,e,!1):E(t,o)):w(t,o,e,!1))):i||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function w(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&x(t)),E(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=l.from(t,e),e=""),n=!0),A(this,t,e,!1,n)},v.prototype.unshift=function(t){return A(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=n(37).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var M=8388608;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=function(t){return t>=M?t=M:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(C,t):C(t))}function C(t){d("emit readable"),t.emit("readable"),k(t)}function E(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(_,t,e))}function _(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function T(t){d("readable nexttick read 0"),t.read(0)}function D(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function S(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=function(t,e,n){var i;t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,i=1,r=n.data;t-=r.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(o===a.length?r+=a:r+=a.slice(0,t),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=l.allocUnsafe(t),i=e.head,r=1;i.data.copy(n),t-=i.data.length;for(;i=i.next;){var a=i.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),0===(t-=o)){o===a.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(o));break}++r}return e.length-=r,n}(t,e);return i}(t,e.buffer,e.decoder),n);var n}function N(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(B,e,t))}function B(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}v.prototype.read=function(t){d("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 d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):x(this),null;if(0===(t=I(t,e))&&e.ended)return 0===e.length&&N(this),null;var i,r=e.needReadable;return d("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",r=!0),e.ended||e.reading?d("reading or ended",r=!1):r&&(d("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))),null===(i=t>0?S(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&N(this)),null!==i&&this.emit("data",i),i},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,e);var c=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:v;function l(e,i){d("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),t.removeListener("close",y),t.removeListener("finish",m),t.removeListener("drain",f),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",b),h=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function u(){d("onend"),t.end()}a.endEmitted?r.nextTick(c):n.once("end",c),t.on("unpipe",l);var f=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,k(t))}}(n);t.on("drain",f);var h=!1;var p=!1;function b(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==j(a.pipes,t))&&!h&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(e){d("onerror",e),v(),t.removeListener("error",g),0===s(t,"error")&&t.emit("error",e)}function y(){t.removeListener("finish",m),v()}function m(){d("onfinish"),t.removeListener("close",y),v()}function v(){d("unpipe"),n.unpipe(t)}return n.on("data",b),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",y),t.once("finish",m),t.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),t},v.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?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<r;a++)i[a].emit("unpipe",this,n);return this}var o=j(e.pipes,t);return-1===o?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},v.prototype.on=function(t,e){var n=c.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&x(this):r.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var r in t.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(r){(d("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(e.push(r)||(i=!0,t.pause()))}),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var a=0;a<y.length;a++)t.on(y[a],this.emit.bind(this,y[a]));return this._read=function(e){d("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=S}).call(this,n(8),n(11))},function(t,e,n){t.exports=n(19).EventEmitter},function(t,e,n){"use strict";var i=n(27);function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i.nextTick(r,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(i.nextTick(r,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";t.exports=o;var i=n(13),r=n(21);function a(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);i.call(this,t),this._transformState={afterTransform:a.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){c(t,e,n)}):c(this,null,null)}function c(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)}r.inherits=n(0),r.inherits(o,i),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,i.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},o.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},o.prototype._destroy=function(t,e){var n=this;i.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},function(t,e,n){var i=n(0),r=n(16),a=n(1).Buffer,o=[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 c(){this.init(),this._w=s,r.call(this,64,56)}function l(t,e,n){return n^t&(e^n)}function u(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 h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}i(c,r),c.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},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,y=0;y<16;++y)n[y]=t.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((e=n[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[y-7]+d(n[y-15])+n[y-16];for(var m=0;m<64;++m){var v=g+h(c)+l(c,p,b)+o[m]+n[m]|0,A=f(i)+u(i,r,a)|0;g=b,b=p,p=c,c=s+v|0,s=a,a=r,r=i,i=v+A|0}this._a=i+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var t=a.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=c},function(t,e,n){var i=n(0),r=n(16),a=n(1).Buffer,o=[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 c(){this.init(),this._w=s,r.call(this,128,112)}function l(t,e,n){return n^t&(e^n)}function u(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 h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(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 b(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 y(t,e){return t>>>0<e>>>0?1:0}i(c,r),c.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},c.prototype._update=function(t){for(var e=this._w,n=0|this._ah,i=0|this._bh,r=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,m=0|this._gh,v=0|this._hh,A=0|this._al,w=0|this._bl,M=0|this._cl,I=0|this._dl,x=0|this._el,C=0|this._fl,E=0|this._gl,_=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var D=e[T-30],k=e[T-30+1],S=d(D,k),N=p(k,D),B=b(D=e[T-4],k=e[T-4+1]),j=g(k,D),R=e[T-14],O=e[T-14+1],L=e[T-32],P=e[T-32+1],z=N+O|0,Q=S+R+y(z,N)|0;Q=(Q=Q+B+y(z=z+j|0,j)|0)+L+y(z=z+P|0,P)|0,e[T]=Q,e[T+1]=z}for(var U=0;U<160;U+=2){Q=e[U],z=e[U+1];var Y=u(n,i,r),F=u(A,w,M),H=f(n,A),G=f(A,n),W=h(s,x),Z=h(x,s),V=o[U],J=o[U+1],$=l(s,c,m),X=l(x,C,E),K=_+Z|0,q=v+W+y(K,_)|0;q=(q=(q=q+$+y(K=K+X|0,X)|0)+V+y(K=K+J|0,J)|0)+Q+y(K=K+z|0,z)|0;var tt=G+F|0,et=H+Y+y(tt,G)|0;v=m,_=E,m=c,E=C,c=s,C=x,s=a+q+y(x=I+K|0,I)|0,a=r,I=M,r=i,M=w,i=n,w=A,n=q+et+y(A=K+tt|0,K)|0}this._al=this._al+A|0,this._bl=this._bl+w|0,this._cl=this._cl+M|0,this._dl=this._dl+I|0,this._el=this._el+x|0,this._fl=this._fl+C|0,this._gl=this._gl+E|0,this._hl=this._hl+_|0,this._ah=this._ah+n+y(this._al,A)|0,this._bh=this._bh+i+y(this._bl,w)|0,this._ch=this._ch+r+y(this._cl,M)|0,this._dh=this._dh+a+y(this._dl,I)|0,this._eh=this._eh+s+y(this._el,x)|0,this._fh=this._fh+c+y(this._fl,C)|0,this._gh=this._gh+m+y(this._gl,E)|0,this._hh=this._hh+v+y(this._hl,_)|0},c.prototype._hash=function(){var t=a.allocUnsafe(64);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+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=c},function(t,e,n){"use strict";var i=n(0),r=n(131),a=n(12),o=n(1).Buffer,s=n(61),c=n(38),l=n(39),u=o.alloc(128);function f(t,e){a.call(this,"digest"),"string"==typeof e&&(e=o.from(e));var n="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>n)?e=("rmd160"===t?new c:l(t)).update(e).digest():e.length<n&&(e=o.concat([e,u],n));for(var i=this._ipad=o.allocUnsafe(n),r=this._opad=o.allocUnsafe(n),s=0;s<n;s++)i[s]=54^e[s],r[s]=92^e[s];this._hash="rmd160"===t?new c:l(t),this._hash.update(i)}i(f,a),f.prototype._update=function(t){this._hash.update(t)},f.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new f("rmd160",e):"md5"===t?new r(s,e):new f(t,e)}},function(t,e,n){var i=n(33);t.exports=function(t){return(new i).update(t).digest()}},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"}}')},function(t,e,n){e.pbkdf2=n(133),e.pbkdf2Sync=n(66)},function(t,e,n){(function(e){var n=Math.pow(2,30)-1;function i(t,n){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(n+" must be a buffer or string")}t.exports=function(t,e,r,a){if(i(t,"Password"),i(e,"Salt"),"number"!=typeof r)throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>n||a!=a)throw new TypeError("Bad key length")}}).call(this,n(3).Buffer)},function(t,e,n){(function(e){var n;e.browser?n="utf-8":n=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";t.exports=n}).call(this,n(11))},function(t,e,n){var i=n(61),r=n(38),a=n(39),o=n(64),s=n(65),c=n(1).Buffer,l=c.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(t,e,n){var o=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new r).update(t).digest()}:"md5"===t?i:function(e){return a(t).update(e).digest()}}(t),s="sha512"===t||"sha384"===t?128:64;e.length>s?e=o(e):e.length<s&&(e=c.concat([e,l],s));for(var f=c.allocUnsafe(s+u[t]),h=c.allocUnsafe(s+u[t]),d=0;d<s;d++)f[d]=54^e[d],h[d]=92^e[d];var p=c.allocUnsafe(s+n+4);f.copy(p,0,0,s),this.ipad1=p,this.ipad2=f,this.opad=h,this.alg=t,this.blocksize=s,this.hash=o,this.size=u[t]}f.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,i,r){o(t,e,n,i),c.isBuffer(t)||(t=c.from(t,s)),c.isBuffer(e)||(e=c.from(e,s));var a=new f(r=r||"sha1",t,e.length),l=c.allocUnsafe(i),h=c.allocUnsafe(e.length+4);e.copy(h,0,0,e.length);for(var d=0,p=u[r],b=Math.ceil(i/p),g=1;g<=b;g++){h.writeUInt32BE(g,e.length);for(var y=a.run(h,a.ipad1),m=y,v=1;v<n;v++){m=a.run(m,a.ipad2);for(var A=0;A<p;A++)y[A]^=m[A]}y.copy(l,d),d+=p}return l}},function(t,e,n){var i=n(22),r=n(1).Buffer,a=n(68);function o(t){var e=t._cipher.encryptBlockRaw(t._prev);return a(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),a=t._cache.length;t._cache=r.concat([t._cache,r.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=o(t),l=a+16*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 u=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,u)}},function(t,e){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},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"}}')},function(t,e,n){var i=n(28),r=n(1).Buffer,a=n(12),o=n(0),s=n(148),c=n(22),l=n(68);function u(t,e,n,o){a.call(this);var c=r.alloc(4,0);this._cipher=new i.AES(e);var u=this._cipher.encryptBlock(c);this._ghash=new s(u),n=function(t,e,n){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var i=new s(n),a=e.length,o=a%16;i.update(e),o&&(o=16-o,i.update(r.alloc(o,0))),i.update(r.alloc(8,0));var c=8*a,u=r.alloc(8);u.writeUIntBE(c,0,8),i.update(u),t._finID=i.state;var f=r.from(t._finID);return l(f),f}(this,n,u),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}o(u,a),u.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var i=Math.min(t.length,e.length),r=0;r<i;++r)n+=t[r]^e[r];return n}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},u.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=u},function(t,e,n){var i=n(28),r=n(1).Buffer,a=n(12);function o(t,e,n,o){a.call(this),this._cipher=new i.AES(e),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=t}n(0)(o,a),o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},function(t,e,n){var i=n(15);t.exports=m,m.simpleSieve=g,m.fermatTest=y;var r=n(2),a=new r(24),o=new(n(73)),s=new r(1),c=new r(2),l=new r(5),u=(new r(16),new r(8),new r(10)),f=new r(3),h=(new r(7),new r(11)),d=new r(4),p=(new r(12),null);function b(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var i=Math.ceil(Math.sqrt(n)),r=0;r<e&&t[r]<=i&&n%t[r]!=0;r++);e!==r&&t[r]<=i||(t[e++]=n)}return p=t,t}function g(t){for(var e=b(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function y(t){var e=r.mont(t);return 0===c.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function m(t,e){if(t<16)return new r(2===e||5===e?[140,123]:[140,39]);var n,p;for(e=new r(e);;){for(n=new r(i(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(l))for(;n.mod(u).cmp(f);)n.iadd(d)}else for(;n.mod(a).cmp(h);)n.iadd(d);if(g(p=n.shrn(1))&&g(n)&&y(p)&&y(n)&&o.test(p)&&o.test(n))return n}}},function(t,e,n){var i=n(2),r=n(43);function a(t){this.rand=t||new r.Rand}t.exports=a,a.create=function(t){return new a(t)},a.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var r=new i(this.rand.generate(n))}while(r.cmp(t)>=0);return r},a.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},a.prototype.test=function(t,e,n){var r=t.bitLength(),a=i.mont(t),o=new i(1).toRed(a);e||(e=Math.max(1,r/48|0));for(var s=t.subn(1),c=0;!s.testn(c);c++);for(var l=t.shrn(c),u=s.toRed(a);e>0;e--){var f=this._randrange(new i(2),s);n&&n(f);var h=f.toRed(a).redPow(l);if(0!==h.cmp(o)&&0!==h.cmp(u)){for(var d=1;d<c;d++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(u))break}if(d===c)return!1}}return!0},a.prototype.getDivisor=function(t,e){var n=t.bitLength(),r=i.mont(t),a=new i(1).toRed(r);e||(e=Math.max(1,n/48|0));for(var o=t.subn(1),s=0;!o.testn(s);s++);for(var c=t.shrn(s),l=o.toRed(r);e>0;e--){var u=this._randrange(new i(2),o),f=t.gcd(u);if(0!==f.cmpn(1))return f;var h=u.toRed(r).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var d=1;d<s;d++){if(0===(h=h.redSqr()).cmp(a))return h.fromRed().subn(1).gcd(t);if(0===h.cmp(l))break}if(d===s)return(h=h.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,n){"use strict";var i=e;function r(t){return 1===t.length?"0"+t:t}function a(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}i.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)n[i]=0|t[i];return n}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(i=0;i<t.length;i++){var r=t.charCodeAt(i),a=r>>8,o=255&r;a?n.push(a,o):n.push(o)}return n},i.zero2=r,i.toHex=a,i.encode=function(t,e){return"hex"===e?a(t):t}},function(t,e,n){"use strict";var i=e;i.base=n(30),i.short=n(160),i.mont=n(161),i.edwards=n(162)},function(t,e,n){"use strict";var i=n(9).rotr32;function r(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}function o(t,e,n){return t^e^n}e.ft_1=function(t,e,n,i){return 0===t?r(e,n,i):1===t||3===t?o(e,n,i):2===t?a(e,n,i):void 0},e.ch32=r,e.maj32=a,e.p32=o,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},function(t,e,n){"use strict";var i=n(9),r=n(23),a=n(76),o=n(6),s=i.sum32,c=i.sum32_4,l=i.sum32_5,u=a.ch32,f=a.maj32,h=a.s0_256,d=a.s1_256,p=a.g0_256,b=a.g1_256,g=r.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}i.inherits(m,g),t.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=c(b(n[i-2]),n[i-7],p(n[i-15]),n[i-16]);var r=this.h[0],a=this.h[1],g=this.h[2],y=this.h[3],m=this.h[4],v=this.h[5],A=this.h[6],w=this.h[7];for(o(this.k.length===n.length),i=0;i<n.length;i++){var M=l(w,d(m),u(m,v,A),this.k[i],n[i]),I=s(h(r),f(r,a,g));w=A,A=v,v=m,m=s(y,M),y=g,g=a,a=r,r=s(M,I)}this.h[0]=s(this.h[0],r),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],A),this.h[7]=s(this.h[7],w)},m.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){"use strict";var i=n(9),r=n(23),a=n(6),o=i.rotr64_hi,s=i.rotr64_lo,c=i.shr64_hi,l=i.shr64_lo,u=i.sum64,f=i.sum64_hi,h=i.sum64_lo,d=i.sum64_4_hi,p=i.sum64_4_lo,b=i.sum64_5_hi,g=i.sum64_5_lo,y=r.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function A(t,e,n,i,r){var a=t&n^~t&r;return a<0&&(a+=4294967296),a}function w(t,e,n,i,r,a){var o=e&i^~e&a;return o<0&&(o+=4294967296),o}function M(t,e,n,i,r){var a=t&n^t&r^n&r;return a<0&&(a+=4294967296),a}function I(t,e,n,i,r,a){var o=e&i^e&a^i&a;return o<0&&(o+=4294967296),o}function x(t,e){var n=o(t,e,28)^o(e,t,2)^o(e,t,7);return n<0&&(n+=4294967296),n}function C(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function E(t,e){var n=o(t,e,14)^o(t,e,18)^o(e,t,9);return n<0&&(n+=4294967296),n}function _(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function T(t,e){var n=o(t,e,1)^o(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function D(t,e){var n=s(t,e,1)^s(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function k(t,e){var n=o(t,e,19)^o(e,t,29)^c(t,e,6);return n<0&&(n+=4294967296),n}function S(t,e){var n=s(t,e,19)^s(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}i.inherits(v,y),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i<n.length;i+=2){var r=k(n[i-4],n[i-3]),a=S(n[i-4],n[i-3]),o=n[i-14],s=n[i-13],c=T(n[i-30],n[i-29]),l=D(n[i-30],n[i-29]),u=n[i-32],f=n[i-31];n[i]=d(r,a,o,s,c,l,u,f),n[i+1]=p(r,a,o,s,c,l,u,f)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,i=this.h[0],r=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],d=this.h[6],p=this.h[7],y=this.h[8],m=this.h[9],v=this.h[10],T=this.h[11],D=this.h[12],k=this.h[13],S=this.h[14],N=this.h[15];a(this.k.length===n.length);for(var B=0;B<n.length;B+=2){var j=S,R=N,O=E(y,m),L=_(y,m),P=A(y,m,v,T,D),z=w(y,m,v,T,D,k),Q=this.k[B],U=this.k[B+1],Y=n[B],F=n[B+1],H=b(j,R,O,L,P,z,Q,U,Y,F),G=g(j,R,O,L,P,z,Q,U,Y,F);j=x(i,r),R=C(i,r),O=M(i,r,o,s,c),L=I(i,r,o,s,c,l);var W=f(j,R,O,L),Z=h(j,R,O,L);S=D,N=k,D=v,k=T,v=y,T=m,y=f(d,p,H,G),m=h(p,p,H,G),d=c,p=l,c=o,l=s,o=i,s=r,i=f(H,G,W,Z),r=h(H,G,W,Z)}u(this.h,0,i,r),u(this.h,2,o,s),u(this.h,4,c,l),u(this.h,6,d,p),u(this.h,8,y,m),u(this.h,10,v,T),u(this.h,12,D,k),u(this.h,14,S,N)},v.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){var i=n(0),r=n(25).Reporter,a=n(3).Buffer;function o(t,e){r.call(this,e),a.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 t instanceof s||(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=a.byteLength(t);else{if(!a.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}i(o,r),e.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(t){var e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.prototype.join=function(t,e){return t||(t=new a(this.length)),e||(e=0),0===this.length?t:(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):a.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length),t)}},function(t,e,n){var i=e;i._reverse=function(t){var e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0);var i=t[n];e[i]=n}),e},i.der=n(182)},function(t,e,n){var i=n(0),r=n(24),a=r.base,o=r.bignum,s=r.constants.der;function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){a.Node.call(this,"der",t)}function u(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var i=s.tagClass[n>>6],r=0==(32&n);if(31==(31&n)){var a=n;for(n=0;128==(128&a);){if(a=t.readUInt8(e),t.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:i,primitive:r,tag:n,tagStr:s.tag[n]}}function f(t,e,n){var i=t.readUInt8(n);if(t.isError(i))return i;if(!e&&128===i)return null;if(0==(128&i))return i;var r=127&i;if(r>4)return t.error("length octect is too long");i=0;for(var a=0;a<r;a++){i<<=8;var o=t.readUInt8(n);if(t.isError(o))return o;i|=o}return i}t.exports=c,c.prototype.decode=function(t,e){return t instanceof a.DecoderBuffer||(t=new a.DecoderBuffer(t,e)),this.tree._decode(t,e)},i(l,a.Node),l.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;var i=t.save(),r=u(t,'Failed to peek tag: "'+e+'"');return t.isError(r)?r:(t.restore(i),r.tag===e||r.tagStr===e||r.tagStr+"of"===e||n)},l.prototype._decodeTag=function(t,e,n){var i=u(t,'Failed to decode tag of "'+e+'"');if(t.isError(i))return i;var r=f(t,i.primitive,'Failed to get length of "'+e+'"');if(t.isError(r))return r;if(!n&&i.tag!==e&&i.tagStr!==e&&i.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(i.primitive||null!==r)return t.skip(r,'Failed to match body of: "'+e+'"');var a=t.save(),o=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(o)?o:(r=t.offset-a.offset,t.restore(a),t.skip(r,'Failed to match body of: "'+e+'"'))},l.prototype._skipUntilEnd=function(t,e){for(;;){var n=u(t,e);if(t.isError(n))return n;var i,r=f(t,n.primitive,e);if(t.isError(r))return r;if(i=n.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===n.tagStr)break}},l.prototype._decodeList=function(t,e,n,i){for(var r=[];!t.isEmpty();){var a=this._peekTag(t,"end");if(t.isError(a))return a;var o=n.decode(t,"der",i);if(t.isError(o)&&a)break;r.push(o)}return r},l.prototype._decodeStr=function(t,e){if("bitstr"===e){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}if("bmpstr"===e){var i=t.raw();if(i.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var r="",a=0;a<i.length/2;a++)r+=String.fromCharCode(i.readUInt16BE(2*a));return r}if("numstr"===e){var o=t.raw().toString("ascii");return this._isNumstr(o)?o:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},l.prototype._decodeObjid=function(t,e,n){for(var i,r=[],a=0;!t.isEmpty();){var o=t.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(r.push(a),a=0)}128&o&&r.push(a);var s=r[0]/40|0,c=r[0]%40;if(i=n?r:[s,c].concat(r.slice(1)),e){var l=e[i.join(" ")];void 0===l&&(l=e[i.join(".")]),void 0!==l&&(i=l)}return i},l.prototype._decodeTime=function(t,e){var n=t.raw().toString();if("gentime"===e)var i=0|n.slice(0,4),r=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");i=0|n.slice(0,2),r=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,r-1,a,o,s,c,0)},l.prototype._decodeNull=function(t){return null},l.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},l.prototype._decodeInt=function(t,e){var n=t.raw(),i=new o(n);return e&&(i=e[i.toString(10)]||i),i},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,n){var i=n(0),r=n(3).Buffer,a=n(24),o=a.base,s=a.constants.der;function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){o.Node.call(this,"der",t)}function u(t){return t<10?"0"+t:t}t.exports=c,c.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(l,o.Node),l.prototype._encodeComposite=function(t,e,n,i){var a,o=function(t,e,n,i){var r;"seqof"===t?t="seq":"setof"===t&&(t="set");if(s.tagByName.hasOwnProperty(t))r=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);r=t}if(r>=31)return i.error("Multi-octet tag encoding unsupported");e||(r|=32);return r|=s.tagClassByName[n||"universal"]<<6}(t,e,n,this.reporter);if(i.length<128)return(a=new r(2))[0]=o,a[1]=i.length,this._createEncoderBuffer([a,i]);for(var c=1,l=i.length;l>=256;l>>=8)c++;(a=new r(2+c))[0]=o,a[1]=128|c;l=1+c;for(var u=i.length;u>0;l--,u>>=8)a[l]=255&u;return this._createEncoderBuffer([a,i])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new r(2*t.length),i=0;i<t.length;i++)n.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(n)}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)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},l.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(var i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(i=0;i<t.length;i++)t[i]|=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])}var a=0;for(i=0;i<t.length;i++){var o=t[i];for(a++;o>=128;o>>=7)a++}var s=new r(a),c=s.length-1;for(i=t.length-1;i>=0;i--){o=t[i];for(s[c--]=127&o;(o>>=7)>0;)s[c--]=128|127&o}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(t,e){var n,i=new Date(t);return"gentime"===e?n=[u(i.getFullYear()),u(i.getUTCMonth()+1),u(i.getUTCDate()),u(i.getUTCHours()),u(i.getUTCMinutes()),u(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[u(i.getFullYear()%100),u(i.getUTCMonth()+1),u(i.getUTCDate()),u(i.getUTCHours()),u(i.getUTCMinutes()),u(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!r.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new r(n)}if(r.isBuffer(t)){var i=t.length;0===t.length&&i++;var a=new r(i);return t.copy(a),0===t.length&&(a[0]=0),this._createEncoderBuffer(a)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);i=1;for(var o=t;o>=256;o>>=8)i++;for(o=(a=new Array(i)).length-1;o>=0;o--)a[o]=255&t,t>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new r(a))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,n){var i,r=this._baseState;if(null===r.default)return!1;var a=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,n).join()),a.length!==r.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==r.defaultBuffer[i])return!1;return!0}},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"}')},function(t,e,n){var i=n(20),r=n(1).Buffer;function a(t){var e=r.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var n,o=r.alloc(0),s=0;o.length<e;)n=a(s++),o=r.concat([o,i("sha1").update(t).update(n).digest()]);return o.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var n=t.length,i=-1;++i<n;)t[i]^=e[i];return t}},function(t,e,n){var i=n(2),r=n(1).Buffer;t.exports=function(t,e){return r.from(t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed().toArray())}},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgeD0iLTEiIHk9Ii0xIiB3aWR0aD0iMTIiIGhlaWdodD0iMjIiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgZmlsbD0ibm9uZSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8dGV4dCBzdHJva2U9IiMwMDAiIHRyYW5zZm9ybT0ibWF0cml4KDEsMCwwLDIuMDk1NDc1MDgwMDAwOTk0NywwLC05LjAxMzU2NzA3MjE0OTM1KSAiIHhtbDpzcGFjZT0icHJlc2VydmUiIHRleHQtYW5jaG9yPSJzdGFydCIgZm9udC1mYW1pbHk9IkhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTAiIGlkPSJzdmdfMSIgeT0iMTEuNjU5NTcxIiB4PSIyLjQ1MjMxNiIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIwIiBmaWxsPSIjMDAwMDAwIj4oPC90ZXh0Pg0KIDwvZz4NCjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgeD0iLTEiIHk9Ii0xIiB3aWR0aD0iMTIiIGhlaWdodD0iMjIiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgZmlsbD0ibm9uZSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8dGV4dCBzdHlsZT0iY3Vyc29yOiBtb3ZlOyIgc3Ryb2tlPSIjMDAwIiB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwyLjA5NTQ3NTA4MDAwMDk5NDcsMCwtOS4wMTM1NjcwNzIxNDkzNSkgIiB4bWw6c3BhY2U9InByZXNlcnZlIiB0ZXh0LWFuY2hvcj0ic3RhcnQiIGZvbnQtZmFtaWx5PSJIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjEwIiBpZD0ic3ZnXzEiIHk9IjExLjY1OTU3MSIgeD0iMi40NTIzMTYiIGZpbGwtb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLW9wYWNpdHk9Im51bGwiIHN0cm9rZS13aWR0aD0iMCIgZmlsbD0iIzAwMDAwMCI+KTwvdGV4dD4NCiA8L2c+DQo8L3N2Zz4="},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=u(r),o=u(n(10)),s=u(n(200)),c=u(n(199)),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(14));function u(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=$(o.default.findDOMNode(this)),e=t.children("span"),n=this.props,i=n.data;n.dispatch;if(e.click(function(e){var n=$(this);if(t.hasClass("parent_li")){var i=n.parent("li.parent_li").find(" > ul > li");i.is(":visible")?(i.hide("fast"),n.children("i:first").addClass("rf-plus").removeClass("rf-minus")):(i.show("fast"),n.children("i:first").addClass("rf-minus").removeClass("rf-plus"))}}),t.hasClass("parent_li")){var r=this.props.expandLevel;if(i._level>=r)e.parent("li.parent_li").find(" > ul > li").hide(),e.children("i:first").addClass("rf-plus").removeClass("rf-minus");else e.children("i:first").addClass("rf-minus").removeClass("rf-plus")}this._bindContextMenu(i)}},{key:"isFile",value:function(){var t=this.props.data.name,e=!1;return(t.indexOf(".")>-1||"ul"===t||"知识包"===t)&&(e=!0),e}},{key:"componentWillUnmount",value:function(){var t=this.props.data,e=t.contextMenu;e&&0!==e.length&&$("#node-"+t.id).contextmenu("destroy")}},{key:"componentDidUpdate",value:function(){this._bindContextMenu(this.props.data)}},{key:"_bindContextMenu",value:function(t){var e=$("#node-"+t.id);e.contextmenu("destroy");var n=t.contextMenu;if(n&&0!==n.length){var i="treenodemenu"+t.id;e.contextmenu({target:"#"+i})}}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.dispatch,i=e.children,r="node-"+e.id,o="treenodemenu"+e.id,u=[];if(e.contextMenu&&u.push(a.default.createElement(c.default,{items:e.contextMenu,key:e.id,data:e,dispatch:n,menuId:o})),i&&i.length>0)return a.default.createElement("li",{className:"parent_li"},a.default.createElement("span",{id:r},a.default.createElement("i",{className:"rf rf-minus",style:{marginRight:"2px"}}),a.default.createElement("i",{className:e._icon,style:e._style})," ",a.default.createElement("a",{href:"###",style:e._style,onClick:function(t){if(window.authority_config&&"项目列表"!=e.name&&"资源"!=e.name){var n=window._server+e.editorPath+"?file="+e.fullPath;l.eventEmitter.emit(l.TREE_NODE_CLICK,{id:e.id,name:e.name,fullPath:e.fullPath,path:n,active:!0}),$(".tree").find(".tree-active").removeClass("tree-active"),$("#"+r).addClass("tree-active")}},onDoubleClick:function(){if(window.authority_config&&"项目列表"!=e.name&&"资源"!=e.name){var t=window._server+e.editorPath+"?file="+e.fullPath;l.eventEmitter.emit(l.TREE_NODE_DBLCLICK,{id:e.id,name:e.name,fullPath:e.fullPath,path:t,active:!0}),$(".tree").find(".tree-active").removeClass("tree-active"),$("#"+r).addClass("tree-active")}}}," ",e.name),a.default.createElement("sup",null,a.default.createElement("i",{title:e.lock?e.lockInfo:"",className:e.lock?"rf rf-lock":""}))),u,a.default.createElement(s.default,{dispatch:n,children:i,expandLevel:this.props.expandLevel}));var f=this.isFile(),h=e.name,d=h.indexOf(".");return!window._showFileExtensionName&&d>0&&(h=h.substring(0,d)),a.default.createElement("li",null,a.default.createElement("span",{id:r,onClick:function(t){if(f){var n=window._server+e.editorPath+"?file="+e.fullPath;l.eventEmitter.emit(l.TREE_NODE_CLICK,{id:e.id,name:e.name,fullPath:e.fullPath,path:n,active:!0}),$(".tree").find(".tree-active").removeClass("tree-active"),$("#"+r).addClass("tree-active")}},onDoubleClick:function(t){if(f){var n=window._server+e.editorPath+"?file="+e.fullPath;l.eventEmitter.emit(l.TREE_NODE_DBLCLICK,{id:e.id,name:e.name,fullPath:e.fullPath,path:n,active:!0}),$(".tree").find(".tree-active").removeClass("tree-active"),$("#"+r).addClass("tree-active")}}},a.default.createElement("i",{className:e._icon,style:e._style})," ",a.default.createElement("a",{href:"###",style:e._style}," ",h),a.default.createElement("sup",null,a.default.createElement("i",{title:e.lock?e.lockInfo:"",className:e.lock?"rf rf-lock":""}))),u)}}]),e}();e.default=f},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjIyIiB3aWR0aD0iMjIiIHk9Ii0xIiB4PSItMSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8cGF0aCBzdHJva2U9Im51bGwiIGlkPSJzdmdfMSIgZD0ibTQuOTYxNTI3LDkuMDY4ODYyYzEuMTE4MTEyLC0xLjE3NjQ2OCAyLjEzODYyNywtMi4wMTM1MTEgMy4wNjEyNjUsLTIuNTEwODg4YzAuOTIyNjM4LC0wLjQ5NzMyMyAxLjcwODA1OSwtMC43NDYwMjUgMi4zNTY3MzcsLTAuNzQ2MDI1YzAuNDY2MjE2LDAuMDIyNDI3IDEuMTQ4NTgzLC0wLjA0NTc2MyAxLjEwNzA4OCwwLjgzNDI4OWMwLDAuMzEwMzQzIC0wLjM2MjkxMSwxLjYyNTk0NCAtMS4wODg2NzYsMy45NDY3NzdjLTEuMTgzNTMxLDMuNzk3MTY1IC0xLjc3NTI2OSw2LjA4NjIxNSAtMS43NzUyNjksNi44NjY4M2MwLDAuMTQ5ODc5IDAuMDM5MTE3LDAuMjc1NDU5IDAuMTE3NTQ3LDAuMzc2OTgyYzAuMDc4MTc4LDAuMTAxODE3IDAuMTYyMTc3LDAuMTUyNDQ1IDAuMjUxOTM5LDAuMTUyNDQ1YzAuMzU4MjEsMCAzLjQwOTI2MiwtMS4zNzk3MjggMy40MDkyNjIsLTEuMzc5NzI4Yy0xLjUzNDA3NCwxLjM3OTcyOCAtMi42NTM0NzMsMi4yNjIxNTkgLTMuMzU4OTI1LDIuNjQ3MjQxYy0wLjcwNTM2NywwLjM4NTA1NSAtMS4yODIxMzUsMC41Nzc1NjkgLTEuNzI5OCwwLjU3NzU2OWMtMC4zOTIwMTEsMCAtMC43MDI3MzcsLTAuMTE3ODI5IC0wLjkzMjA0LC0wLjM1Mjk1MWMtMC4yMjk2MzgsLTAuMjM1MTc2IC0wLjM0NDMwNCwtMC41NjE1MyAtMC4zNDQzMDQsLTAuOTc4NzE1YzAsLTEuMzM2OTA1IDAuODM5NzMxLC00LjYwNDU5IDIuNTE5MTM4LC05LjgwMjgxNWMwLjA3ODE3OCwtMC4yNDU5MjIgMC4zODE2MDIsLTEuMDcyOTY3IC0wLjE4NDc1NywtMC45Nzg2ODhjLTAuMjI0MDk4LDAgLTMuNDA5MjA2LDEuMzQ3Njc4IC0zLjQwOTIwNiwxLjM0NzY3OHptNi40MjAxOSwtOC45OTE5NDFjMC40NDg3NTYsMCAwLjgxODEwMiwwLjE0MjAyIDEuMTA4MDY3LDAuNDI1NDk4YzAuMjg5NTczLDAuMjgzNzQ2IDAuNDM0NDU4LDAuNjQ2OTYxIDAuNDM0NDU4LDEuMDg5NjQ3YzAsMC42MDkwMzEgLTAuMjIwOTM2LDEuMTQ1MDg2IC0wLjY2MjU4NSwxLjYwODUxNWMtMC40NDIwNCwwLjQ2Mzc1IC0wLjkzODAyOCwwLjY5NTI5IC0xLjQ4ODI3LDAuNjk1MjljLTAuNDM0NTQyLDAgLTAuNzk2Njk3LC0wLjE0NTI4MSAtMS4wODYyNywtMC40MzU4N2MtMC4yODk5NjUsLTAuMjkwNTYyIC0wLjQzNDU0MiwtMC42NzA5OTIgLTAuNDM0NTQyLC0xLjE0MTUzMWMwLC0wLjYyMjY2MyAwLjIwOTc3MiwtMS4xNTE5MjkgMC42MzAwMTUsLTEuNTg3Nzk5YzAuNDE5OTY0LC0wLjQzNTgxNiAwLjkxOTcsLTAuNjUzNzUxIDEuNDk5MTI2LC0wLjY1Mzc1MXoiLz4NCiA8L2c+DQo8L3N2Zz4="},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=l(r),o=l(n(97)),s=l(n(196)),c=n(32);function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={display:"none"},n.filterData={},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"onFilter",value:function(t,e){if("Enter"===e.key){var n=e.target.value,i=e.target.name,r=this;this.filterData[i]={value:n,colIndex:t};for(var a=$(e.target).parent().parent().parent().children("tr"),o=function(t){var e=$(a[t]),n=0;e.children("td").each(function(t,e){var i=$(e).children("div").html();for(var a in r.filterData){var o=r.filterData[a],s=o.colIndex;if(-1===n)break;if(s===t){n=i.toLowerCase().indexOf(o.value.toLowerCase())>-1?1:-1;break}}}),1===n?e.show():-1===n&&e.hide()},s=1;s<a.length;s++)o(s)}}},{key:"render",value:function(){var t=this,e=this.props,n=e.headers,i=e.operationConfig,r=e.menuOperation,l=e.dispatch,u=e.selectFirst,f=(e.uniqueKey,e.notScroll),h=this.props.rows||[],d=[],p=[],b=[],g=$(window).height()-90;n.forEach(function(e,n){b.push(a.default.createElement("col",{key:(0,c.uniqueID)(),style:{width:e.width}})),e.editable?d.push(a.default.createElement("td",{key:(0,c.uniqueID)()},a.default.createElement("label",null,e.label),a.default.createElement(s.default,{onchange:t.props.onchange,onblur:function(e){t.setState({display:"none"}),t.props.onblur(e)},header:e,display:t.state.display}))):d.push(a.default.createElement("td",{key:(0,c.uniqueID)(),style:{width:e.width}},a.default.createElement("label",null,e.label)))}),i&&(r?(d.push(a.default.createElement("td",{key:(0,c.uniqueID)()},a.default.createElement("label",null,"..."))),b.push(a.default.createElement("col",{key:(0,c.uniqueID)(),style:{width:"40px"}}))):(d.push(a.default.createElement("td",{key:(0,c.uniqueID)()},a.default.createElement("label",null,"操作列"))),b.push(a.default.createElement("col",{key:(0,c.uniqueID)(),style:{width:i.width||"90px"}}))));var y=a.default.createElement("tr",{key:"filterrow",style:{background:"#eee"}},n.map(function(e,n){return e.filterable?a.default.createElement("td",{key:(0,c.uniqueID)()},a.default.createElement("input",{type:"text",onKeyPress:t.onFilter.bind(t,n),name:e.id,className:"form-control",style:{height:"26px",padding:"0"},placeholder:"请输入过滤条件，回车查询..."})):a.default.createElement("td",{key:(0,c.uniqueID)()}," ")}),i?a.default.createElement("td",null):null);p.push(y),h.forEach(function(e,s){e.id_||(e.id_=(0,c.uniqueID)());var f=e.id_;0===s&&u?p.push(a.default.createElement(o.default,{key:f,select:!0,ready:t.props.ready,headers:n,dispatch:l,rowClick:t.props.rowClick,menuOperation:r,operations:i?i.operations:null,rowData:e,rowIndex:s})):p.push(a.default.createElement(o.default,{key:f,ready:t.props.ready,headers:n,dispatch:l,rowClick:t.props.rowClick,menuOperation:r,operations:i?i.operations:null,rowData:e,rowIndex:s}))});var m={margin:0,width:this.props.width?this.props.width:"100%"},v={height:g+"px"};return f||(v.overflowY="scroll"),a.default.createElement("div",null,a.default.createElement("div",{style:{paddingRight:"17px"}},a.default.createElement("table",{className:"table table-bordered",style:m},a.default.createElement("colgroup",null,b),a.default.createElement("thead",null,a.default.createElement("tr",{className:"well"},d)))),a.default.createElement("div",{style:v},a.default.createElement("table",{className:"table table-bordered",style:m},a.default.createElement("colgroup",null,b),a.default.createElement("tbody",null,p))))}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};function r(t,e){return window._frameStyles?window._frameStyles[t]:e}i.frameStyle={getRootIcon:function(){return r("rootIcon","rf rf-root")},getRootIconStyle:function(){return r("rootIconStyle",{color:"rgb(102, 102, 102)"})},getProjectIcon:function(){return r("projectIcon","rf rf-project")},getProjectIconStyle:function(){return r("projectIconStyle",{color:"rgb(188, 15, 105)"})},getResourceIcon:function(){return r("resourceIcon","rf rf-library")},getResourceIconStyle:function(){return r("resourceIconStyle",{color:"rgb(88, 45, 170)"})},getResourcePackageIcon:function(){return r("resourcePackageIcon","rf rf-package")},getResourcePackageIconStyle:function(){return r("resourcePackageIconStyle",{color:"rgb(180, 133, 19)"})},getLibIcon:function(){return r("libIcon","rf rf-database")},getLibIconStyle:function(){return r("libIconStyle",{color:"rgb(24, 121, 27)"})},getActionIcon:function(){return r("actionIcon","rf rf-action")},getActionIconStyle:function(){return r("actionIconStyle",{color:"rgb(24, 121, 27)"})},getVariableIcon:function(){return r("variableIcon","rf rf-variable")},getVariableIconStyle:function(){return r("variableIconStyle",{color:"rgb(24, 121, 27)"})},getConstantIcon:function(){return r("constantIcon","rf rf-constant")},getConstantIconStyle:function(){return r("constantIconStyle",{color:"rgb(24, 121, 27)"})},getParameterIcon:function(){return r("parameterIcon","rf rf-parameter")},getParameterIconStyle:function(){return r("parameterIconStyle",{color:"rgb(24, 121, 27)"})},getRuleIcon:function(){return r("ruleIcon","rf rf-rule")},getRuleIconStyle:function(){return r("ruleIconStyle",{color:"rgb(31, 90, 163)"})},getConditionTemplate:function(){return r("conditionTemplateIcon","rf rf-condition-template")},getConditionTemplateStyle:function(){return r("conditionTemplateIconStyle",{color:"rgb(31, 90, 163)"})},getActionTemplate:function(){return r("actionTemplateIcon","rf rf-action-template")},getActionTemplateStyle:function(){return r("actionTemplateIconStyle",{color:"rgb(31, 90, 163)"})},getUlIcon:function(){return r("ulIcon","rf rf-script")},getUlIconStyle:function(){return r("ulIconStyle",{color:"rgb(31, 90, 163)"})},getRuleLibIcon:function(){return r("ruleLibIcon","rf rf-rule")},getRuleLibIconStyle:function(){return r("ruleLibIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTableIcon:function(){return r("decisionTableIcon","rf rf-table")},getCrossDecisionTableIcon:function(){return r("crossDecisionTableIcon","rf rf-crosstab")},getDecisionTableIconStyle:function(){return r("decisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getCrossDecisionTableIconStyle:function(){return r("crossDecisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getScriptDecisionTableIcon:function(){return r("scriptDecisionTableIcon","rf rf-scripttable")},getScriptDecisionTableIconStyle:function(){return r("scriptDecisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTableLibIcon:function(){return r("decisionTableLibIcon","rf rf-table")},getDecisionTableLibIconStyle:function(){return r("decisionTableLibIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTreeIcon:function(){return r("decisionTreeIcon","rf rf-tree")},getDecisionTreeIconStyle:function(){return r("decisionTreeIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTreeLibIcon:function(){return r("decisionTreeLibIcon","rf rf-tree")},getDecisionTreeLibIconStyle:function(){return r("decisionTreeLibIconStyle",{color:"rgb(31, 90, 163)"})},getScorecardIcon:function(){return r("scorecardIcon","rf rf-scorecard")},getScorecardIconStyle:function(){return r("scorecardIconStyle",{color:"rgb(31, 90, 163)"})},getComplexScorecardIcon:function(){return r("complexScorecardIcon","rf rf-complexscordcard")},getComplexScorecardIconStyle:function(){return r("complexScorecardIconStyle",{color:"rgb(31, 90, 163)"})},getScorecardLibIcon:function(){return r("scorecardLibIcon","rf rf-scorecard")},getScorecardLibIconStyle:function(){return r("scorecardLibIconStyle",{color:"rgb(31, 90, 163)"})},getFlowIcon:function(){return r("flowIcon","rf rf-flow")},getFlowIconStyle:function(){return r("flowIconStyle",{color:"rgb(31, 90, 163)"})},getFlowLibIcon:function(){return r("flowLibIcon","rf rf-flow")},getFlowLibIconStyle:function(){return r("flowLibIconStyle",{color:"rgb(31, 90, 163)"})},getFolderIcon:function(){return r("flowIcon","rf rf-folder")},getFolderIconStyle:function(){return r("flowIconStyle",{color:"rgb(224, 126, 1)"})}},e.default=i},function(t,e,n){var i=n(91);(t.exports=n(17)(!1)).push([t.i,'@font-face {font-family: "rf";\n  src: url('+i(n(95))+') format(\'truetype\');\n}\n\n.rf {\n  font-family: "rf" !important;\n  font-size: 16px;\n  font-style: normal;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.rf-fork:before {\n  content: "\\E600";\n}\n\n.rf-check:before {\n  content: "\\E625";\n}\n\n.rf-search:before {\n  content: "\\E623";\n}\n\n.rf-action-template:before {\n  content: "\\E62E";\n}\n\n.rf-table:before {\n  content: "\\E60B";\n}\n\n.rf-display:before {\n  content: "\\E624";\n}\n\n.rf-save:before {\n  content: "\\E609";\n}\n\n.rf-link:before {\n  content: "\\E628";\n}\n\n.rf-folder:before {\n  content: "\\E622";\n}\n\n.rf-library:before {\n  content: "\\E60D";\n}\n\n.rf-minus:before {\n  content: "\\E619";\n}\n\n.rf-plus:before {\n  content: "\\E60C";\n}\n\n.rf-code:before {\n  content: "\\E617";\n}\n\n.rf-scripttable:before {\n  content: "\\E618";\n}\n\n.rf-unlock:before {\n  content: "\\E6F3";\n}\n\n.rf-database:before {\n  content: "\\E60E";\n}\n\n.rf-paste:before {\n  content: "\\E629";\n}\n\n.rf-remove:before {\n  content: "\\E61A";\n}\n\n.rf-export:before {\n  content: "\\E61F";\n}\n\n.rf-start:before {\n  content: "\\E601";\n}\n\n.rf-rule:before {\n  content: "\\E602";\n}\n\n.rf-copy:before {\n  content: "\\E62A";\n}\n\n.rf-tree:before {\n  content: "\\E60F";\n}\n\n.rf-decision1:before {\n  content: "\\E603";\n}\n\n.rf-flow:before {\n  content: "\\E610";\n}\n\n.rf-list:before {\n  content: "\\E620";\n}\n\n.rf-root:before {\n  content: "\\E60A";\n}\n\n.rf-select:before {\n  content: "\\E615";\n}\n\n.rf-rename:before {\n  content: "\\E61C";\n}\n\n.rf-script:before {\n  content: "\\E604";\n}\n\n.rf-constant:before {\n  content: "\\E605";\n}\n\n.rf-package:before {\n  content: "\\E616";\n}\n\n.rf-savenewversion:before {\n  content: "\\E614";\n}\n\n.rf-createpro:before {\n  content: "\\E61D";\n}\n\n.rf-version:before {\n  content: "\\E61B";\n}\n\n.rf-type:before {\n  content: "\\E626";\n}\n\n.rf-action:before {\n  content: "\\E606";\n}\n\n.rf-authority:before {\n  content: "\\E621";\n}\n\n.rf-operation:before {\n  content: "\\E627";\n}\n\n.rf-join:before {\n  content: "\\E607";\n}\n\n.rf-import:before {\n  content: "\\E61E";\n}\n\n.rf-cut:before {\n  content: "\\E62B";\n}\n\n.rf-project:before {\n  content: "\\E611";\n}\n\n.rf-decision:before {\n  content: "\\E608";\n}\n\n.rf-variable:before {\n  content: "\\E612";\n}\n\n.rf-parameter:before {\n  content: "\\E613";\n}\n\n.rf-scorecard:before {\n  content: "\\E62C";\n}\n\n.rf-complexscordcard:before {\n  content: "\\E673";\n}\n\n.rf-lock:before {\n  content: "\\E62D";\n}\n\n.rf-crosstab:before {\n  content: "\\E6C4";\n}\n\n.rf-condition-template:before {\n  content: "\\E68E";\n}\n\n',""])},function(t,e){t.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8ykkLAAABfAAAAFZjbWFwhaZDtwAAAqQAAARMZ2x5Ztdu87sAAAdcAAA0YGhlYWQXDbL9AAAA4AAAADZoaGVhCEEEowAAALwAAAAkaG10eNFC/+YAAAHUAAAA0GxvY2FPlULQAAAG8AAAAGptYXhwAZ0A8QAAARgAAAAgbmFtZYh7fNsAADu8AAACJXBvc3QOoDFYAAA95AAAAhsAAQAAA4D/gABcBQD/5//uBHsAAQAAAAAAAAAAAAAAAAAAADQAAQAAAAEAABbGtRVfDzz1AAsEAAAAAADZxjeaAAAAANnGN5r/5/8sBHsDoAAAAAgAAgAAAAAAAAABAAAANADlAF8AAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQGAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5gDm8wOA/4AAXAOgANQAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAARAAAAEAAAABAEAAAQAAAAEAAAABAAAAAQA//8EAAAABQAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAD/5wQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAUAAAADAAAALAAAAAQAAAHYAAEAAAAAANIAAwABAAAALAADAAoAAAHYAAQApgAAAAwACAACAATmLuZz5o7mxObz//8AAOYA5nPmjubE5vP//wAAAAAAAAAAAAAAAQAMAGgAaABoAGgAAAABABQAFQAYAB4AHwAlACgALAAHABsABQAMAAoAEAAXABkAKwAtAC4AIQAcACAADQAOAAsAEgAjAB0AIgApABMAGgAmAAkAAwAGAAIAJAAnAAgAEQAWACoALwAxAAQAMAAzADIADwAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAACdAAAAAAAAAAzAADmAAAA5gAAAAABAADmAQAA5gEAAAAUAADmAgAA5gIAAAAVAADmAwAA5gMAAAAYAADmBAAA5gQAAAAeAADmBQAA5gUAAAAfAADmBgAA5gYAAAAlAADmBwAA5gcAAAAoAADmCAAA5ggAAAAsAADmCQAA5gkAAAAHAADmCgAA5goAAAAbAADmCwAA5gsAAAAFAADmDAAA5gwAAAAMAADmDQAA5g0AAAAKAADmDgAA5g4AAAAQAADmDwAA5g8AAAAXAADmEAAA5hAAAAAZAADmEQAA5hEAAAArAADmEgAA5hIAAAAtAADmEwAA5hMAAAAuAADmFAAA5hQAAAAhAADmFQAA5hUAAAAcAADmFgAA5hYAAAAgAADmFwAA5hcAAAANAADmGAAA5hgAAAAOAADmGQAA5hkAAAALAADmGgAA5hoAAAASAADmGwAA5hsAAAAjAADmHAAA5hwAAAAdAADmHQAA5h0AAAAiAADmHgAA5h4AAAApAADmHwAA5h8AAAATAADmIAAA5iAAAAAaAADmIQAA5iEAAAAmAADmIgAA5iIAAAAJAADmIwAA5iMAAAADAADmJAAA5iQAAAAGAADmJQAA5iUAAAACAADmJgAA5iYAAAAkAADmJwAA5icAAAAnAADmKAAA5igAAAAIAADmKQAA5ikAAAARAADmKgAA5ioAAAAWAADmKwAA5isAAAAqAADmLAAA5iwAAAAvAADmLQAA5i0AAAAxAADmLgAA5i4AAAAEAADmcwAA5nMAAAAwAADmjgAA5o4AAAAzAADmxAAA5sQAAAAyAADm8wAA5vMAAAAPAAAAAACMAUIBegIEAnQC3gNcA9gEKgRqBMIFJgV+BmAGygd2B8gIDAh6CMgJjgnmCmYK1AuaDCYM2g0qDbAOLg7YD5gQOBFeEcQScBK4Ex4UdhUAFTAWGhasF5AX5hhGGLYZCBmGGeYaMAAAAAQAAP+aA4UDZgBBAEoAUwBcAAAlNS4BJyImPQE+ATcuAScOAQceARcVFAYjDgEHFQ4BFR4BFz4BNy4BJzU+ATcyNjceATMeARcVDgEHHgEXPgE3NCYFIiY0NjIWFAYTMhYUBiImNDYBIiY0NjIWFAYDIwJgSB8pKzUBAlI+PlICATUrKR9IYAIrNgFSPj5SAgE1KwEpHyM/Fxc+JB8pASs1AQJSPj1TATb9vxQcHCkbG94VGxsqGxsBCBUbGykcHLVaSGACKh5KEEkwPlIBAVI+MEkQSR8qAmBIWhBJMD5SAQFSPjBJEFofKQEbGBgbASkfWhBJMD5SAQFSPjBJqRwpGxspHAMIHCkbGykc/PgcKRsbKRwAAABfAAD/NQPrAyAAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAEgATABQAFQAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMAJAAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIAMwA0ADUANgA3ADgAOQA6ADsAPAA9AD4APwBAAEEAQgBDAEQARQBGAEcASABJAEoASwBMAE0ATgBPAFAAUQBSAFMAVABVAFYAVwBYAFkAWgBbAFwAXQBvAAATOy0FHS0BMhYUBwEGIicBJjQ2Mh8BATYVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFhUVFvwVA4ASGQ3+AAwkDP8ADRkkDOIB4gwDIBUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWFRUWAxYZJAz+AA0NAQAMJBkN4gHiDQAAAgAA/ywD/QMsABEAHQAABQE+ATUuAScOAQceARcyNjcJAT4BNx4BFw4BBy4BA/z+8R4hBeSrrOQEBOSsOGktARH9IwOPbGuPAwOPa2yPTwEPL208q+UEBOWrq+UEHhv+7wJsbI8CAo9sa5ACApAAAAQAAP/TA74DPQAXAC4ARQBVAAABFzc2DwEXFgYnDwEOAS8CLgE/ASc0NgUXNzYfAhYGDwIOAS8BBwYmPwEnJgEXNzYPARcWBi8BBwYiLwImND8BNTYnFhQHAQYiJzEmNDcBNjIXAndniiIJKFsKDRCMTAgWBzOKEwIObwgZ/hZMSRICAk0IAwpUFwINCDlaDQYHMhwMAmgwRREGGCkEBwdFKQQLAxRCCgc5An4UFP6YFTcWFBQBaBU3FgMsRTYOJo1vDBcBBngNARCIIwUXC1d8Hg+BFjwPGV4xBhADHlgJBQhJBQEOCUpKJf4dJRYFEkM5BwoBATgGCEQWAwsFJz0dvBY3Ff6ZFRUVNxUBaBQUAAAAAAwAAP+VA9ECwwAPABYAGgAeACIAJgAqAC4ANQA5AD0ARwAAASEOAQcRHgEXIT4BNxEuAQERMxEjLgEFIzUzNSM1MzUjNTMTIzUzNSM1MzUjNTMTDgEHIzUzNSM1MzUjNTM1ITU+ATchHgEXAyj9sEheAgJeSAJQR18CAl/837MpO04BmsrKysrKyufKysrKysriAU86OsTExMTE/JwBTjsCUDpPAQLCAV9H/iNIXwEBX0gB3Udf/X0Blv3fAk5QsB6bHZv937Aemx2b/mo7TgKwHpsdmx4pOk4CAk46AAAABAAA/74D4ANCAA8AEwA1AEUAAAEhIgYVERQWMyEyNjURNCYDIREhNyEOAQcRHgEXIRUHDgEVFBYzITI2NTQmLwE1IT4BNxEuAQMUBiMhIiY1ETQ2MyEyFhUDSv1sDRERDQKUDRERDf1sApQ8/PQmMwEBMyYBLLsKDRENAhwNEQ0KuwEsJjMBATMIEQ389A0REQ0DDA0RAsoRDf5cDRERDQGkDRH+PgGklgEzJv2oJjMBJBkCEAsNERENCxACGSQBMyYCWCYz/U8NERENAlgNERENAAAIAAD/nQPeA0gADQAbAB8AIwAnADMAPwBLAAAFIS4BJxE+ATchFxEOAQEOAQcRHgEXIT4BNREnAyERIQEhESEBIzUzEyEuATQ2MyEyFhQGByEuATQ2MyEyFhQGByEiJjQ2NyEeARQGA6T8yRkgAQEgGQKe0gEg/LwJCgEBCgkDIQgLsxP94gIe/hMBvP5EAYkwMGn97ggLCwgCEgkKCgn97ggLCwgCEgkKCgn97ggLCwgCEgkKCmMBIBgDORggAcv9WRggA3kBCgn83wkKAQEKCQKMqf51Abz+dQFa/vD2/ckBDhEREREOZAEPERAQEQ9jDxEQAQEQEQ8AAAAEAAD/vAQAApwAHgAkAEsATwAABSEuASc+ATczFSMOAQceARchPgE3LgEnNx4BFw4BBxMyFxUnNRUOAQcjNTM+ATcuASchDgEHHgEXBy4BJz4BNyEeARcjFRcWFwYHJzcVJzUDAP7VbJEDA5Fsq6tIYAICYEgBK0hhAgEhHRM7RQEDkG0mAgMFEolgq6tIYQEBYUj+1UlgAgEhHhQ7RQEDkG0BK2GKEQcHAwEBBAYLBEQDkm9ukwNXAmJJSmIBAWJKKUUYWyN1SW+SAwGuAQICAQFcdwFWAmJJSmIBAWJKKUQYXCN1SW+SAwJ4XgMBExUXFwNXBQEEAAMAAP+sA8ECrQAXACEAMgAAFyImJxE+ATchHgEXFR4BMyEeARcRDgEjJRQWFyE+ATURISU2JichIiYvAS4BJyMOAR0BlCQwAQEwJAEHIS8EAhQPAVgkMAEBMCT9FBUPArcPFf0BAv8BEBX+uSEuBQEBFQ73DxVTMCQCViQwAQEqIQQPEgEwJP4bJDBkDxUBARUPAYFBERgBKCAIDhIBARQQdgAAAgAA/ywEQAMsACcALQAABTUjETM1IxUzESMRMzUjFTMRIxEzNSMVMxEjETM1IxUzESMVIxUhNQEzARUhNQQAQEDAQMBAwEDAQMBAwEDAQEBABED9wEACAPvAlEABgEBA/oABgEBA/oABgEBA/oABgEBA/oBAQEADwP7AQEAAAAADAAAAAALxAtsAGgA0ADkAAAEyMzYXFhcWFREUBwYHBiMhIicmNxEmNzY3MxMyMzI3PgE1ETQnLgEjISIHDgEVERQXHgEzAzQ1IRUBlYCAFxUqBAEHEy8JCf3/LxsRAQEOGCwQ+oCBBwgWGQEFIBf9+wcHFRoCBSAWAQIHAtoBChgwCAj+BxMSLQgCJRgeAgEbFyUD/WYBBSAXAgUHBxUaAgUgFv37BwcWGQEoGBgwAAMAAAAAAvkC3AAaADAAQwAAARQVFAcGBwYjISInJicmNREmNzYXITYXFh8BBRQVHgEzITI2NRE0Jy4BIyEiBw4BFQEUHQEUBisBNSM1Myc0FzMVMxUC+AoXMQgI/gcTEiwJAQEmGB0CAhsWJQMB/WUBIRsCBRsiAQUgF/37BwcVGgFYAgQr6+sBBizrAX+AgBcVKgQBBxMvCQkCAS8bEQEBDhgsEPmCgRsiIhsCBQcHFRoCBSAW/uYEAuEEAu0x5QYB6jEAAAAAAwAAAAAD8AI7ABIAJQA0AAAlIi8BJjQ/ATYeAQYPARceAQcGISInJjY/AScuAT4BHwEWFA8BBgUiJy4BNxM+AR4BBwMOAQEkCgnuEhLuDh0RBw63tw4HCAwBoxUMCAcOt7cOBxEdDu4SEu4J/qMGBg8OBZYGGx8NBJcEFH4FjwwqDI4IBxwdCW5uCR0OExMOHQlubgkdHAcIjgwqDI8FXQEGGxAByg8OChsQ/jYMDgAKAAD/sQPPA08ADwAfADQAPQBNAF0AbQB9AI0AnQAAAQ4BByMuASc1PgE3Mx4BFyMuASsBIgYdARQWFzM+ATclIiY9AT4BOwEyFhQGKwEOAR0BFAYHIiY0NjIWFAYFDgEHIy4BJzU+ATczHgEXIzQmKwEiBgcVHgEXMz4BNQEOAQcjLgEnNT4BNzMeARcjLgEnIw4BHQEUFjsBMjY3IQ4BByMuASc1PgE3Mx4BFyM0JicjDgEHFR4BOwEyNjUB6wE4KvQqNwEBNyr0KjgBOQEXEvQRGBgR9BIXAf7yBgkBIhxYBggIBlgREQgMBggIDAgIAyoBNyr0KjgBATgq9Co3ATkYEfQSFwEBFxL0ERj+VgE4KvQqNwEBNyr0KjgBOQEXEvQRGBgR9BIXAQIcATcq9Co4AQE4KvQqNwE5GBH0EhcBARcS9BEYAfgqOAEBOCr0KjcBATcqERgYEfQSFwEBFxJzCAYaHisIDAgBHBAaBggxCAwICAwIQio4AQE4KvQqNwEBNyoRGBgR9BIXAQEXEv4cKjcBATcq9Co4AQE4KhIXAQEXEvQRGBgRKjcBATcq9Co4AQE4KhIXAQEXEvQRGBgRAAMAAP+gA1cDYAAlADUARwAAATUxLgEnDgEHFRQWMjY9AT4BNx4BFxUhDgEHER4BFyE+ATcRLgEDFAYjISImNRE0NjMhMhYVBzU0JiIGHQEOARUUFjI2NTQmAxMGmXNzmgUUHRMFc1ZWdAT+Hx0nAQEnHQIkHScBASYeEw/+IA8TEw8B4A8T8BMeEw4QJTYlEAHFkHKWAwOXcwEPExMPAVVxAgJxVY4BJx3+ZR4mAQEmHgGbHSb+RA8TEw8BVw4UFA6dOA8TEw84CRwRHCQkHBEcAAAABf///5IDzQMsABcALQBDAFkAbwAAAS4CIg4BBwYVERQXHgIyPgE3NjURNCU+ATIWFx4BBxYGBw4BIiYnLgE3JjYBDgEiJicuATc1FhceATI2NzY3FRYGJw4BIiYnLgE3NRYXHgEyNjc2NxUWBicOASImJy4BNzUWFx4BMjY3NjcVFgYDnSaHq72rhyYwMCaHq72rhyYw/NpBo7ejQEQyAQEyRECjt6NBQzIBATICwUCjt6NBQzIBJkFDq72rQ0EmATJEQKO3o0FDMgEmQUOrvatDQSYBMkRAo7ejQUMyASZBQ6u9q0NBJgEyAtoZJRQUJRkgKP2aKB8ZJhMTJhkfKAJmKBoSExMSFCQKCSUTEhMTEhMlCQok/SoSEhISFCUJgxcSExQUExIXgwkluRITExIUJAqDGBISFBQSEhiDCiS5EhMTEhQkCoMYEhIUFBISGIMKJAAAAAAFAAD/oAPLA2AADQARAC0AMAA2AAABIzUuAScjDgEdASMVIScjNTMFNS4BKwEVMxUjBxUjETM1IyIGFREUFjMhFSERBRUjASERMzUhAp94ASIZeBoieAHgtHh4ASwBEQw8HrS08B48DRERDQEOAlj+XF8Bx/4gtAEsAug8GSIBASIZPHh4PPCWDRE8eLTwAhw8EQ39qA0RtAKUVV/+XAFotAAAAAMAAP8xBHsDJwALABcAIwAAEzYANxYAFwYAByYANx4BFz4BNy4BJw4BJQcnBxcHFzcXNyc3hQYBHtfXAR4GBv7i19f+4mAE5ays5QQE5ays5QIId3ddd4JdgoJdgncBLNcBHgYG/uLX1/7iBgYBHtes5QQE5ays5QQE5RdublJxd118fF13cQACAAD/XAPJAwEAIABBAAABLgEOARcTBREFFx4BPgEvASYnJSYGBxEWFxYzNyU+AScTJi8BJg4BFh8BDgEHBhYXFjMyNz4BNwcGFhcWMzY/ATYC5QQQEwgDcP1XAc8TBBISBgQXBQz+CQsQAQEIBwgFAt4LCgNmBQyiChAECgpaurseBAYJBQUOBxyytDEFBQkFBg0IUQUBaQkIBxEJ/seQAzxbKgkHCBEKNQoDYwIOC/yMCwgFAZsDEgoCZQoDIgIKExACEzm+SgkRBQINRbI0WwkSBQMBC5gKAAAAAwAA/6AD4ANgAA8AHwAxAAABLgEiDgIUHgIyNjc2EAMOASIuAjQ+AjIWFxYQASYnMSIGFREUFjsBNj8BNjQnA1NErsKuiUhIia7CrkWMxjmRoJFxPDxxkaGQOXT+WAwTERkZEAETDMIMDALTRUhIia7CrolISEWTAYD+Jjg8PHGRoJFxPDs5e/7CAX4OARkQ/nYQGQEOwgwiDAAABwAA/6sD4ANVAD8ARwBKAFgAfAB/AIcAAAE0JwM+ATUuAScjNS4BIgYHFSMOARUUFhcDBxUeARc+ATc1NC8BMxEjIgYUFhczPgE0JisBETMPARUeARc+ATcFLgEnMw4BByc3FwEOASsBIiY0NjsBMhYXAyIGFREjETQmIyEuATQ2MyEyNj0BNDYyFhcVFBYzITIWFAYHHwEjFy4BJzMOAQcD4AOBEBQBJx7rASxCKwHsHSgUEYYCAl1GRl0CA33KJSEsLCHkISwsISTLggICXUZGXQL85S1BCe4JQS1rbWoBZAESD+QOExMO5A8SAVwKDEMNCf7+Cw4OCwECCQ0THBMBDAoBAQsPDwsDatdrLUEJ7glBLQErBgUBBgkgFB0nAUkhKyshSQEnHRQhCf75BQVGXAICXEYBBgX9/hMsQisBAStCLAHt/wUFRlwCAlxGeAE3Kys3AY/W1v64DhMTHBMTDgJmDAr9/QIDCgwBDhYODQlfDhMTDl8JDQ4WDgFI1o8BNysrNwEAAAAABwAA/2AD0wOgAA0AEwAWABoAHgAxADQAABMOAQcRHgEXIT4BNxEnEyERIRUzJzUXBSEVIRUhFSEBIQ4BBxUzNSEVMxEjFTM+ATcRIzUXfCEsAQEsIQIfISwB6Zv94QE26Zt7/k4Bhf57AYX+ewIg/nwhLAFOATbpTU0hLAHpewK3ASwh/UUhLAEBLCECIOn89wK76U57e5xNTk4DVwEsIU5O6f4uTgEsIQIge3sAAAAFAAD/kAO+A2wATQBRAFUAWQBdAAAFIyImPQE0NjsBNSEVMzIWFxUOASsBIiY9ATQ2OwE1IRUzMhYXFQ4BKwEiJj0BNDYzESE1Iy4BPQE0NjMhMhYXFQ4BByMVIREyFhcVDgElFTM1ATUhFRMVMzUhIxUzA46MFBsbFF7+ty8UGgEBGhSNFBsbFC/+t14UGgEBGhSNFBsbFAF4jRQbGxQBSRQaAQEaFI0BeBMbAQEb/M6NAaf+t16NAUiMjG8aFF4UG+vrGxReFBoaFF4UG+vrGxReFBoaFF4UGwEavAEaFOsUGxsU6xQaAbz+5hsUXRQbjF5eAjTr6/3MXl5eAAAABf/n/3sEEgODABEAIAAoADUAPQAAASYEBwYSFxYENz4BNzYCJy4BBzISBw4BBwYmJyYCNz4BBwYHFwcXJwclBgcXAS4BDwE3JwEXBxYXNxc3JzcCAav+9DQvbop8ASqBU3gZKFR5RadYtfQLCYFoZNxbc1EsK9laFxZdLbAoLQF/WVkt/vARIQIhry0BECqzFBQtZC1jLQOAA9Ohnv7JXFIRTjGZX5MBJ2A3PWD+87RwuC0uEEFQAQyEfZWWFhdeLSiwLVoWFS7+8BcWJIonLQEQKnZYWC1jLWMuAAYAAP+oAyoDZgBJAFQAZABuAIAAgQAAAS4BJzEOAQcOAQcnLgEnNxY3PgE3LgEnDgEHFhcHJw4DFx4BFzM+ATc2NxcVFBYXByMOAQceARc+ATc0Jic3FjsBPgE3PgEnAR4BFAYiJjU+ATcDBisBIiYnNjc+ATceAgcTLgE0NjIWFAYHEw4BKwEuASc2Nz4BNzIWFxQHMQMnA0k3GS0QAgcCpgIWEEUMDzZHAQFHNjZHAQEiSBkYLSERAQRGMgUZLRALCJ4OCjsLNUcCAkc1NkcBGhYzExgFGS0QFBEC/qsXHh4tHwIfFIsPFwIXHQIBDQcTDhYdBhG5Fx4eLh4eF9EGEgsCFx0CAQwIEw4WHQIQAVU0QQECFBIEBgMQGCcOfgMBAUY0NkQBAUY0NSGDAwIVJC4YM0IBAhQSDA8NBhIjDmsCRjM2RQECRjQeMhBZCAIUEhIuGAHLAR4uHh4XFx4B/lMQHBcUEQgJAgEcLhD+eAEeLh4eLh4BAUIICwEcFhURCAkBHBYZDQAAAAcAAAAAA+AC0AAIABEAGgAqADoASgBaAAA3HgEUBiImNDYTHgEUBiImNDYTHgEUBiImNDYXIR4BFzEOAQchLgEnMT4BEyEeARcxDgEHIS4BJzE+ATchHgEXMQ4BByEuAScxPgETIR4BFzEOAQchLgEnMT4BaB8oKD4oKB8fKCg+KCgfHygoPigo9wJwFBsBARsU/ZAUGwEBGxQCcBQbAQEbFP2QFBsBARsUAnAUGwEBGxT9kBQbAQEbFAJwFBsBARsU/ZAUGwEBG8ABKD4oKD4oAQkBKD4oKD4oAQkBKD4oKD4oFwEbFBQbAQEbFBQb/vkBGxQUGwEBGxQUGwEBGxQUGwEBGxQUG/75ARsUFBsBARsUFBsAAAALAAD/wwO8AzwACAARABoAIwAsADUAQgBPAFwAbAB8AAABDgEUFjI2NCYHFAYiJjQ2MhYHDgEUFjI2NCYHFAYiJjQ2MhYHIgYUFjI2NCYHFAYiJjQ2MhYlFAYrASImNDY7ATIWNRQGKwEiJjQ2OwEyFhEUBgcjLgE0NjsBMhYTNCYjISIGBxEeARchPgE1Iw4BIyEiJjURNDYzITIWFwFaGyMjNSMjBgsSDAwSCxQbIyM1IyMGCxIMDBILFBsjIzUjIwYLEgwMEgsBdwwJ+ggMDAj6CQwMCfoIDAwI+gkMDAn6CAwMCPoJDNYjGv0DGiIBASIaAv0aIxsBEw79Aw4TEw4C/Q4TAQJdASM1IyM1Iz0JDAwSCwtxASM1IyM1Iz4IDAwRDAxxJDQkJDQkPgkMDBIMDJ4JDAwRDAyeCQwMEgwM/qoJCwEBCxIMDAIjGiMjGv0DGiIBASIaDhMTDgL9DhMTDgAAAAADAAD/gAQAA4AACwAXACkAABM2ADcWABcGAAcmACcWABc2ADcmACcGAAUmIg8BJyYiBhQfARYyNwE2NDMFAQTExAEEBQX+/MTE/vw4BQEh2toBIQUF/t/a2v7fAtsNIQ3rYQwiGAx+DSENAQcNAYDEAQQFBf78xMT+/AUFAQTE2v7fBQUBIdraASEFBf7fSAwM8WMNGiIMgQ0NAQ4NIgAABAAA/+YDmgMaABsALQA/AFAAAAEmIw4BBwEGBwYPAQYXFjMyPwE2NzY/ATY3NiYBPgE/ARYXNhYXHgEVFhcHDgE3LgEnLgEnARYXNhYXHgEHFhc3BgcuAScuASc3PgE3MhceAQNoKjEnMwn+CAUCCxoeBAsICgQEY1ciBgX50DEvAfz3DiMJBgUMAicZFg0BBgUbb68DFBUaLgwBugUMAicaFQ4BAQgpAwcDFBYbLwwNAyUbHx0iAQLyKAIgCf4FBQYpVmIPCwgBIB0KAgT4zjMxZv1LLnAeBgoCAQ8YFycCCAUFCSZTDikVGhUCAbwLAwEOGRcnAQoFKQMHDSoXGhUCDAQZAhwhPwAAAAYAAP+qA/0DVgAjAEEARQBJAE0AUQAAAQcOAQcGFR4DFxYOAg8BITc+ATc2Jy4DJzQ+Aj8BBSEGBwYVHgMXFg4CByE2NzYnLgM1NDY3NhcVITUFFSE1BxUhNQUVITUBSwlCXR08AU1cQgUCDCdJOXACtAg8UxozBwlRWzsBEzBVPm79YgGqOCI8AU1cQgUDDSZFNv5WLBszBwlSWjwTGC4RAU3+pwFYvAFN/uMBWQNVBSdJI0ZFQ2taVCQRJzI7IUEFI0IgQ0I/Y1lUKBQuOUMlQUYqKEZFQ2taVCQRJzE4ICMhQ0I/Y1lUKBQuHTcwICCuICCuISGvICAAAAcAAP/AA8ADQAAPAB8ALwA/AE8AXwBvAAABIT4BNxEuASchDgEHER4BEzQ2MyEyFhURFAYjISImNRMhPgE3ES4BJyEOAQcRHgEFIT4BNRE0JichDgEVERQWEzQ2MyEyFhURFAYjISImNRMhPgE1ETQmJyEOARURFBYTNDYzITIWFREUBiMhIiY1Ak8BOxceAQEeF/7FFx4BAR4HCQcBOwcJCQf+xQcJEAE7Fx4BAR4X/sUXHgEBHv4/ATwWHx8W/sQXHh4HCQcBPAcJCQf+xAcJEAE8Fh8fFv7EFx4eBwkHATwHCQkH/sQHCQGSAR4XAUEWHgEBHhb+vxceAXYHCQkH/r8HCQkH/fkBHhYBQhYeAQEeFv6+Fh4BAR4WAUIWHgEBHhb+vhYeAXYGCQkG/r4HCQkHAZ0BHhYBQhYeAQEeFv6+Fh4BdgcJCQf+vgYJCQYAAAAGAAAAAAPhAwMAHQAnAEIAUgBiAIAAACUQETYmJyYGIzYmJyYHDgEXJgcmBhcSAxQWMyEWNgE+ARcWFRciIzYBBiQnJjYnNhceATsBMjY3Mx4BOwEyNjc2FxYlDgErASImJzU+ATsBMhYXBTU0NjsBMhYXFQ4BKwEiJiUiIy4BKwEiBgcjLgErASIGByM3NDc2BDcWNhcWBgPeAhsZQIA/AgckhIUjBwJ7fBwfAgEBIRgDRxsi/aA/gD8GAYWEAQI32f5N2QQCAjQzByIXbRciB8YGIxdtFyEHMjIB/cYBEAxtDBABARAMbQwQAQEMEA1tDBABARAMbQ0QAS0yMQYjF20YIwbEBiMYbRgiB2YBAswBl8sOHgsDAUQBAQECGCoCAgEfRgsHCAxEHwEBASsb/vr++hghASgCqAIDBxARIiP9gAYBA1myWQEBFBobFRUbGhQBAbHGDBERDAMMEBAMAwMMEBAMAwwRESAWGxwWFhwbFlIqKQQDAgEBCydPAAAEAAD/wAPBA0EADwAfAC8AdwAAARQGIyEiJjUxNDYzITIWFRc0JiMhIgYVMRQWMyEyNjUVNCYjISIGFTEUFjMhMjY1NyIGHQEUBiMhIiY1ETQ2OwEVHgEXIQcGFBYyPwEyNjU0Ji8BJiIGFB8BIzAxISImPQEzFTM1NCYjIQ4BBxEeARchPgE3NTQmAsARD/6ADxERDwGADxFAEQ/+QA8REQ8BwA8REQ/+QA8REQ8BwA8RoA8REQ/9QA8REQ9gATcoAfNGChQZCoAEAggFgAoZEwlHDf4gDxGAwBEP/kAoNwEBNygCwCg3AREBYA8REQ8PEREPgA8REQ8PEREPgA8REQ8PEREPoBEPwA8REQ8CwA8R4Cg3AUYKGRQKgAkKBQ8GgAkTGQpNEQ/ggKAPEQE3KP1AKDcBATcowA8RAAAAAAkAAP/0A38DPAAlAFkAZwB4AIsAqQDHANEA2wAAJSEiJjURNDYzIRUUHgI7ARUnIyIGDwEjIgYUFjsBBwYdARQWFwEiBhURFBYzISYnJj0BIyImNDY7ATY/AQYjISImNDcxNjMhMhYUBwYHNjsBNSMiLgI9AQMiBzEGFBYzITI2NCYjEyIuAjQ+AjIeAhQOAgMiDgIUHgI+AzQnMS4CAyImNTcHIiY0NjM/ATQ2MhYVBzcyFhQGIw8BFAYjJwcUFjI2NT8BMjY0JiMHNzQmIzEiBhUPASIGFBYzEyMiJj0BMzIWFycVHgEzNzU0JiMCIf6KERgYEQF5CREaE38bDThdHATrEBYWENACARQS/pYHCgoHAUoMBwu1GiQkGt4fMQkICP7ZGiQSEhoBJxkkEgQFKS4QZxolFgrqEAsLFhABJw8WFg97JUQyHh4yRExDMx0dMkQnIDssGhosO0I6LRkNDC06JQ4WAT8PFRYPQAEWHhYBPhAVFg8/AhYPCwIHCwgCVwUIBwVXAQgFBQgCVwUIBwWLZR4pghEYAZUBGxRNCwcnGRECwBEZcg4gGhHkAzUuBhcgFg4FBQwjPhoC6QsH/UAHCxUYIicMJDQlLxwFAiU1EhIlNBIFAxCxFyInEVr+zwsLIRcXIRb+Ah80RU9GNB4eNUVPRTQfAWcaLjxGPC4bARouPEYeHi4a/s8VED4BFh4WAj8PFhUQPgEWHhYBQA8We1cFBwgFVwIICggCWAUHCAVXAggKCAHoKx5mGRESThUcAWwHCwAAAAMAAP/CA78DRQAqADkAPgAAATIzFxYXFhcWFxYfAR0BBgcGBwYHBgcGJicmJyYnJi8BPQE2NzY3Njc2NxMmNxM2JyYnJgcGBwYXEwcyMzUjAfAODig0MldETSMTBQECCBMwPF1PWjNoMVhDTSMUBAECEiZhP1A4O2EFARwBAhM4GRYYCwMBHQg+PXsDRAMGEiFBSmU3OhQcBSgmVEdYMy0JBgwTIEFKZTc6FRwFOjh6UzgcFAT9xgQGATgHBjYIAw4SHAgI/rx+WQAAAAcAAP+yA84DTQAaADQAOQBRAFYAcAB1AAATJjc+ATc2FzIXHgEdARQHDgEHBisBIiYnJjcBNCcuAScjIgcOAQcGFxUGFx4BFzMyNz4BNSciIzUzATQnLgErASIHDgEHBh0BHgEXFjc+ATc0ByIjNTMTNCcuAScjIgcOAQcGHQEUFx4BFzIzPgE3NAciIzUzNAEBASkefXwHBhwgAQQiFwgI7x0oBwIBAYoCBigd8QYHGyMBAQEBAgcoHPIJCBsgTXh58QJcBAkmG+8HBxsjAQECKSF5eiEqAU14efFNBAkmG+8HBxsjAQEBBCkfeXgiKgFNeXjxAoc/Ph4pAQEBAQcoHfAHCBciBAEgGwoK/uEICBsgAQEFKBo/PncKChsfAQIHJxwB8QIPDQwYGwEEJxs/P3ohKQEBAQEqIXl48f3yDAwYGwEBBScbPz52BwYeJAEBKiF6efEAAwAA/68D0gNTAAwAGAAlAAABBgAHFgAXNgA3JgAnES4BJz4BNx4BFw4BAzIzBg8BEyM2EjcHBgIAxv76BQUBBsbGAQcFBf75xrPrBQXssrLtBATti1NTEnqMM6cS9REYFgNSBf76xsb++QUFAQfGxgEGBfyKBOy1suwFBeyytewB2BmrxAEYGQFVGoFxAAAAAgAA/4ADuQOAACMAPQAAAQYmJy4BNy4BJw4BBxYGBw4BJw4BFx4BFx4BFz4BNz4BNzY0AQ4BBxEhJyY2NxY2Nz4BJz4BNzMRIQYHDgEDtwReJyQUAQSRYWCSBAEWIilcBAEECQhJXFOnBwSGRkp2FxT+8i5dF/6SAQcDAQNNIhwSAQN6TwcBXQQGEmICuwESHyVWBAETAgITAQRVJCETAga4bmjCTkBVAgJALC6TeYv//YIeLwoBpglbmQQBEBseRgQBDwL+WyclZHoABQAA/6MD3QNcAFsAZwBzAJMA5AAAAScmJzc2Ji8BLgEPASYvAS4BKwEiBg8BBgcnJgYPAQ4BHwEGDwEOAR0BFBYfARYXBwYUHwEeAT8CFhcVFx4BOwEyNj8BJzY3HwEWNj8BPgEvATY/AT4BPQE0JgEuASc+ATceARcOATcOAQcuASc+ATceAQEXFh8CFh8BBwYPAgYPAScmLwImLwE3Nj8CNj8BIwYPAQYHJyYiDwEGHwEGDwEGBxUWHwEWFwcGHwEWMj8CFhcHFxYXMzY/ASc2NxUXFjI/ATYvAjY/ATY3NSYvASYnNzYvASYiDwEmLwEmAwo3CxUiBgEHRQcTCCkmKwUCDgpiCg0CBSwmKAgTB0UHAQYiFgs1Cg0NCjcMFiQGB0YHEwgqAiQqBQEOCmIKDgEGASolASsIEghFBwEGJRYLOAoNDf6OVnMCAnNWV3MCAnMsAUo4N0oBAUo3OEoBFgwGBgoGBAEDAwIDBgsFBgwMBgYLBgMCAwMCAwYLBQcgKQkCAhMQEQMIAx4GBQ8JBRcJAQEJGAUJDwYGHgMIAxIBEBIBAwEJKgkBAwESEBMDCAMdBgUPAQkFGAkBAQkXBQkPBQYdBAgDERATAgECKQUrJSoIEghFBgEGIRYLNAoNDQo0CxciBgEHRQcTCCklLAUBDgphCg4BBSolKwgSCEQHAQYjAhYKAjcKDQ0KNwILFQEkBgEHRQcTCCslKgUBDgphCg7+7wJzVlZyAwNyVlZzyThJAQFJODdJAgJJ/l0DAQQGCwUGDAsGBgoGAwIDAwEEBgoFBwsMBQYLBgQBdAEJFgUKDwIDHQcHEhASAgIJKQkCAhIQEgcHHgMDDwEJBQEYCAEBCBgBBQkBDwIDHQcHEgEPEgICCSkJAgISEBIHBx0EAw4JBRYJAAAAAAQAAP+LA9YDhAA3AEAASgBUAAAlDgEHLgEnPgE3NiYnLgEnBicuATc+ARceAQcGBx4BFz4BNyYnJjY3NhYXFgYHBicOAQcOARceAScOARQWMjY0JgEmBgcGHgE+ASYlDgEeAT4BJy4BArYCZ01NZwIBSzwBChcZWDIvMEg+GR2DSUg+GREnF4AICIAXJxEZPkhJgx0ZPkgwLzJYGRcKATxLtSczM04zM/7mJEIPDB9JQhofAcIkHxpCSR8MD0JBTWcCAmdNQV8RFjIjJFsxChIbhUlIPRgchEkwHzOBFhaBMx8wSYQcGD1ISYUbEgoxWyQjMhYRXxoBM000NE0zAnsMHyQlQRsfSEIPD0JIHxtBJSQfAAIAAP/gA74DIAADABkAABchNSEBJwc0Nz4BNzY3JwQHBgcGBwYXJwcXQwLm/RoCZyusBgY0OX7zBv7zjjkiGgoHAaor8yA8ARgpqSc2PZtJmhg7G61HXUlUOCmnKu8AAAcAAAAAA8AC4QBTAGQAdQCBAI8AmACfAAAlHgEVFAYPASIGIiY1JQcjHgEVDgEHDgEjIi4CNz4BNz4BMzIWFzQ2PwEnLgEnBiMiJicuASc0PgIyFhceARcUBgczFyUyPwE2FhUXHgEUBgcFJS4BIwcGBwYWFx4BMzI3NiYDLgEjIgYHDgEXFjMyNjc+ATcBJwUVBxcwOwEXNycxND8BJwcUBhUwKwEHFxQGIiY0NjIWBSUHIwYVBQOzBQgKCUAFBAkI/qc6BgQCBTArIUYmIjcnFwQFMCshRiYTJhQHBUBGBAQFHTAiSCInLgUTJzdESSIrMAUCBAY6AVkFBAQFCEAJCggF/wD+hxgwGCIOChcWJxgwGCcTFxYBChwUGDAYJxYXEycYMBgnFrYBc0D+gFMGAQYZTUATBy0NBgEGBrMRHhERHhEBYP76VAMDASC6Bg8FCQwFIAYCBMAgDhsKJ0cYFBkTJzYdJ0cYFBkIBQUEBCYgAQcFExUYGEcnHTYnExUYGEcnChkKIMADAwECBSAFERMMBcbzDxEHAwkZQRkPERMZQf6mCQQSDhU/GRMRDxlBWQEgINo5LQYaLVMdCQcTDQQEBQZADxERHhER781HAQWmAAsAAP/AA/MDQQANAA4AHAAdADkASQBKAFQAVQBfAGAAAAEhIiY0NjMhMhYUBiM5ARUhIiY0NjMhMhYUBiM5ARcRLgEHISImNScmJy4BByEOARcRHgE3IT4BJzEnFAYHIS4BJxE+ATchHgEVEQEeATI2NCYiBgcxFR4BMjY0JiIGBzEDDf6yFRwcFQFOFRwcFf6yFRwcFQFOFRwcFeIEPAX+ehESDAwWGCkC/tE8GwIFOwQDYTMOAz4cFvz9FRwBARwVAwMWHP0iAR4sHh4sHgEBHiweHiweAQFzHCocHCocwxwqHBwqHKECbzYRAgsBFBMiIQgCBUcF/SVAEwQEQgUlFhwBARwWAgkWHAEBHBb99wFwFh4eLR0dF8MWHh4tHR0XAAAGAAD/fwOSA4gAFABEAHEAgQCFAJYAAAUuAS8BLgE+ATMhMh4BBg8BDgEHBjciKwEGLgInJicuAScmIyYnLgEnMDEmNjc+ARceARceAQcOAQcGBwYPAQYHDgEHJzsBMjY3Njc2PwE2PwE+ATc2JicuAScmBgcOARUUFhcWFx4BFx4BFxYXHgEfASMuASc1PgE7AR4BFxUWBicHFzcTLgE1LgEnIiY0NjceARcUBgH9FyUPRgkIBRALAQcLEAUICUMQJBQETxwXkA4eHREHBAUCBwMEBRwXLjIBAUBAQqdZUIkwLh4PDj4tCA0HBgsIBAYfI/RUmggGBwgNBwoTBAQHJjULDhonJ3NFS445NDgqJxMXAgUCBQwEDQgDBwL3zxofAQEhGM8aHwEBIRrMA8l5DhADdVgOEBAOcpcDEoABEQknBRMTCwsTEwUkCQ8DBP4BAhIaDA4EAwQCBhcXMoFGV5E3OTENDFVFQpFLO2kpCQYEBgsIDQ8hAz8FDQ8SCQgOAgQGIlcyPno2OUgKCysyK3hEOm0pFhEDAQIFCQUSEgcLA74BIRgJGSABIRcJGCFCAwYDAasBEA5TcQIRGxABA5RvDA8AAAADAAD/rwPSA1MACwAXADIAAAUmACc2ADcWABcGAAMOAQceARc+ATcuAQcWFyMuASMiBhQXFhc2NzMOASMiJyY0NzYzMgIAxv76BQUBBsbGAQYFBf76xqffBATfp6ffBATfIS0MTwcxKDE5HBozWAtODlpKWDEwLzJaSVAFAQfFxgEHBQX++cbF/vkDVgTfp6feBQXep6ff1iRHJyVJgiUkAQFXTUs6N7A4PQAACAAA/8ADwANAAA8AHwAjACcAKwAvADMANwAABSEuAScRPgE3IR4BFxEOAQEOAQcRHgEXIT4BNxEuAScHNSEVBTUhFQU1IRUFNSEVATMVIxUzFSMDCP3wTmcCAmdOAhBOZwICZ/2iPE8CAk88AhA8TwICTzz8ATf+yQE3/skBN/7JATf9ffj4+Pg/AmdOAhBOZwICZ0798E5nA1ICTzz98DxPAgJPPAIQPE8CuWNjl2Nj7GNjl2NjAnr4ifgAAAAABQAA/6AD4ANhABIAHgAqADcARAAAASIGBxEhESE+ATQmIyERIRE0JiUzMjY0JisBIgYUFgUhDgEUFjMhMjY0JgUeARchPgE0JiMhIgYBJgYHAQYeATY3ATYmA6QMEAH80wIpDBERDP2dA6EQ/R3pDBAQDOkMEBABL/7dDBAQDAEjDBAQ/rQBEAwCRQ0QEA39uwwQAyIJFwn+pAgCExcIAV0HAQH6EQz9/gMtARAZEPxfAjwMEQkRGBERGBF0ARAZEBAZEMsMEAEBEBkQEAKICAEK/moKFxACCQGXCRcAAAAGAAAAAAPgAu4ADwAZACMAJwArAC8AAAEhDgEHER4BFyE+ATcRLgEFITIWHQEhNTQ2ASEiJjURIREUBgEhFSEVIRUhJTMVIwOe/MQcJQEBJRwDOx0lAQEl/KgDOxEX/HYXA0z8xBAXA4oX/OQBlv5qATL+zgHZk5MC7QElHP2rHSUBASUdAlQdJRoXEZGRERf9XBYRAaL+XhEWAW1MRkzeTAAAAAUAAP+bA4oDbAAYACIAMwBGAE8AAAE1LgEnIw4BBxUjDgEHER4BFyE+ATcRLgElPgE3Mx4BFxUhAQ4BIyEiJicRPgE3ITEeARcFDgEHHgEXFRQWMjY9AT4BNy4BByImNDYyFhQGAxECeltvW3oCAzRFAQFFNAIeNEUBAUT93wJfR29HXwL+QQI3ASog/eIgKgEBKiACIB8pAf6oKTcBASggDhUOICgBATcqFRwcKxwcAgWPXHkCAnlbkAFFNP6KM0UBAUUzAXY0RJJHXwEBX0iP/hAgKisfAXYgKgECKSAiATkrJDUJbwoODgpvCTUkKzmaHy4fHy4fAAAAAAkAAP/gA9YDIAADAAcADgAVABkAHQAkACsAOwAAASE1IQc1IxUTFSE1LgEjISMiBgcVMxcVITUhIxUzFyEyNjc1IQc1IxUeATMDPgE3IR4BFxEOAQchLgEnAUYCZP2cK8XwAmQBJB39s4MdJAHFKwJk/XHFxSsCIh0kAf2cK8UBJB1uAT4vAtAvPgEBPi/9MC8+AQGWmZmZmQFdmVgcJSUcWPCZmZnEJRxYmZlYHCUCpS89AQE9L/2cLz0BAT0vAAQAAP+MA5MDewAPABcAHwAnAAABLgE+AhYXAR4BDgImJwEXDwEvAT8BARcPAS8BPwEBFw8BLwE/AQFACgUKFh4bCgG6CQYLFh4bCf4bZWUhImRkIgFVhoYtLIaGLAESZGQiIWVlIQG1Cx0cEwUKDP3uDB0cEgUKCwFxICFhYSEgYQGFKyuCgisrgv5FISBhYSAhYQAAABIA3gABAAAAAAAAABUAAAABAAAAAAABAAIAFQABAAAAAAACAAcAFwABAAAAAAADAAIAHgABAAAAAAAEAAIAIAABAAAAAAAFAAsAIgABAAAAAAAGAAIALQABAAAAAAAKACsALwABAAAAAAALABMAWgADAAEECQAAACoAbQADAAEECQABAAQAlwADAAEECQACAA4AmwADAAEECQADAAQAqQADAAEECQAEAAQArQADAAEECQAFABYAsQADAAEECQAGAAQAxwADAAEECQAKAFYAywADAAEECQALACYBIQpDcmVhdGVkIGJ5IGljb25mb250CnJmUmVndWxhcnJmcmZWZXJzaW9uIDEuMHJmR2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20ACgBDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AAoAcgBmAFIAZQBnAHUAbABhAHIAcgBmAHIAZgBWAGUAcgBzAGkAbwBuACAAMQAuADAAcgBmAEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8BIAEhASIBIwEkASUBJgEnASgBKQEqASsBLAEtAS4BLwEwATEBMgEzATQBNQAEZm9yawVjaGVjawZzZWFyY2gPYWN0aW9uLXRlbXBsYXRlBXRhYmxlB2Rpc3BsYXkEc2F2ZQRsaW5rBmZvbGRlcgdsaWJyYXJ5BW1pbnVzBHBsdXMEY29kZQtzY3JpcHR0YWJsZQZ1bmxvY2sIZGF0YWJhc2UFcGFzdGUGcmVtb3ZlBmV4cG9ydAVzdGFydARydWxlBGNvcHkEdHJlZQlkZWNpc2lvbjEEZmxvdwRsaXN0BHJvb3QGc2VsZWN0BnJlbmFtZQZzY3JpcHQIY29uc3RhbnQHcGFja2FnZQ5zYXZlbmV3dmVyc2lvbgljcmVhdGVwcm8HdmVyc2lvbgR0eXBlBmFjdGlvbglhdXRob3JpdHkJb3BlcmF0aW9uBGpvaW4GaW1wb3J0A2N1dAdwcm9qZWN0CGRlY2lzaW9uCHZhcmlhYmxlCXBhcmFtZXRlcglzY29yZWNhcmQQY29tcGxleHNjb3JkY2FyZARsb2NrCGNyb3NzdGFiEmNvbmRpdGlvbi10ZW1wbGF0ZQAAAA=="},function(t,e,n){"use strict";(function(t){
  /** @license React v0.12.0
   * scheduler.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  Object.defineProperty(e,"__esModule",{value:!0});var n=null,i=!1,r=3,a=-1,o=-1,s=!1,c=!1;function l(){if(!s){var t=n.expirationTime;c?I():c=!0,M(h,t)}}function u(){var t=n,e=n.next;if(n===e)n=null;else{var i=n.previous;n=i.next=e,e.previous=i}t.next=t.previous=null,i=t.callback,e=t.expirationTime,t=t.priorityLevel;var a=r,s=o;r=t,o=e;try{var c=i()}finally{r=a,o=s}if("function"==typeof c)if(c={callback:c,priorityLevel:t,expirationTime:e,next:null,previous:null},null===n)n=c.next=c.previous=c;else{i=null,t=n;do{if(t.expirationTime>=e){i=t;break}t=t.next}while(t!==n);null===i?i=n:i===n&&(n=c,l()),(e=i.previous).next=i.previous=c,c.next=i,c.previous=e}}function f(){if(-1===a&&null!==n&&1===n.priorityLevel){s=!0;try{do{u()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?l():c=!1}}}function h(t){s=!0;var r=i;i=t;try{if(t)for(;null!==n;){var a=e.unstable_now();if(!(n.expirationTime<=a))break;do{u()}while(null!==n&&n.expirationTime<=a)}else if(null!==n)do{u()}while(null!==n&&!x())}finally{s=!1,i=r,null!==n?l():c=!1,f()}}var d,p,b=Date,g="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,m="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,v="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function A(t){d=m(function(e){y(p),t(e)}),p=g(function(){v(d),t(e.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var w=performance;e.unstable_now=function(){return w.now()}}else e.unstable_now=function(){return b.now()};var M,I,x,C=null;if("undefined"!=typeof window?C=window:void 0!==t&&(C=t),C&&C._schedMock){var E=C._schedMock;M=E[0],I=E[1],x=E[2],e.unstable_now=E[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var _=null,T=function(t){if(null!==_)try{_(t)}finally{_=null}};M=function(t){null!==_?setTimeout(M,0,t):(_=t,setTimeout(T,0,!1))},I=function(){_=null},x=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var D=null,k=!1,S=-1,N=!1,B=!1,j=0,R=33,O=33;x=function(){return j<=e.unstable_now()};var L=new MessageChannel,P=L.port2;L.port1.onmessage=function(){k=!1;var t=D,n=S;D=null,S=-1;var i=e.unstable_now(),r=!1;if(0>=j-i){if(!(-1!==n&&n<=i))return N||(N=!0,A(z)),D=t,void(S=n);r=!0}if(null!==t){B=!0;try{t(r)}finally{B=!1}}};var z=function(t){if(null!==D){A(z);var e=t-j+O;e<O&&R<O?(8>e&&(e=8),O=e<R?R:e):R=e,j=t+O,k||(k=!0,P.postMessage(void 0))}else N=!1};M=function(t,e){D=t,S=e,B||0>e?P.postMessage(void 0):N||(N=!0,A(z))},I=function(){D=null,k=!1,S=-1}}e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(t,n){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var i=r,o=a;r=t,a=e.unstable_now();try{return n()}finally{r=i,a=o,f()}},e.unstable_scheduleCallback=function(t,i){var o=-1!==a?a:e.unstable_now();if("object"==typeof i&&null!==i&&"number"==typeof i.timeout)i=o+i.timeout;else switch(r){case 1:i=o+-1;break;case 2:i=o+250;break;case 5:i=o+1073741823;break;case 4:i=o+1e4;break;default:i=o+5e3}if(t={callback:t,priorityLevel:r,expirationTime:i,next:null,previous:null},null===n)n=t.next=t.previous=t,l();else{o=null;var s=n;do{if(s.expirationTime>i){o=s;break}s=s.next}while(s!==n);null===o?o=n:o===n&&(n=t,l()),(i=o.previous).next=o.previous=t,t.next=o,t.previous=i}return t},e.unstable_cancelCallback=function(t){var e=t.next;if(null!==e){if(e===t)n=null;else{t===n&&(n=e);var i=t.previous;i.next=e,e.previous=i}t.next=t.previous=null}},e.unstable_wrapCallback=function(t){var n=r;return function(){var i=r,o=a;r=n,a=e.unstable_now();try{return t.apply(this,arguments)}finally{r=i,a=o,f()}}},e.unstable_getCurrentPriorityLevel=function(){return r},e.unstable_shouldYield=function(){return!i&&(null!==n&&n.expirationTime<o||x())},e.unstable_continueExecution=function(){null!==n&&l()},e.unstable_pauseExecution=function(){},e.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(8))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();n(98);var r=n(5),a=l(r),o=l(n(10)),s=l(n(100)),c=n(32);function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=$(o.default.findDOMNode(this)),e=this.props,n=e.rowData,i=e.rowIndex,r=e.rowClick;t.click(function(t){r&&r(n,i,this),$(this).addClass("bg-warning").siblings().removeClass("bg-warning")})}},{key:"render",value:function(){var t=this,e=this.props,n=e.headers,i=e.rowData,r=e.rowIndex,o=e.operations,l=e.select,u=e.menuOperation,f=[];if(n.forEach(function(t,e){f.push(a.default.createElement(s.default,{key:(0,c.uniqueID)(),onchange:function(e){i[t.name]=e},rowData:i,header:t}))}),o){u?f.push(a.default.createElement("td",{key:(0,c.uniqueID)(),style:{padding:"5px 5px"}},a.default.createElement("div",{className:"dropdown"},a.default.createElement("button",{key:(0,c.uniqueID)(),className:"btn btn-default dropdown-toggle",style:{border:"none",padding:"1px"},"data-toggle":"dropdown",href:"#"},a.default.createElement("i",{key:(0,c.uniqueID)(),className:"glyphicon glyphicon-align-justify",title:"操作菜单",style:{color:"#787878"}})),a.default.createElement("ul",{key:(0,c.uniqueID)(),className:"dropdown-menu",style:{left:"-170px"},role:"menu"},o.map(function(e,n){var o=e.label;return"change_kp_state"===o&&(o=i.check?"停用知识包":"启用知识包"),e.icon?a.default.createElement("li",{key:(0,c.uniqueID)()},a.default.createElement("a",{key:(0,c.uniqueID)(),href:"#",onClick:e.click.bind(t,r,i)},a.default.createElement("span",null,a.default.createElement("i",{key:(0,c.uniqueID)(),className:e.icon,title:o,style:e.style}),o))):a.default.createElement("li",{key:(0,c.uniqueID)()},a.default.createElement("a",{key:(0,c.uniqueID)(),href:"#",onClick:e.click.bind(t,r,i)},a.default.createElement("button",{key:(0,c.uniqueID)(),type:"button",className:"btn btn-link",style:{padding:"0px 1px"}},o)))}))))):f.push(a.default.createElement("td",{key:(0,c.uniqueID)(),style:{padding:"5px 5px"}},o.map(function(e,n){return e.icon?a.default.createElement("i",{key:(0,c.uniqueID)(),className:e.icon,title:e.label,style:e.style,onClick:e.click.bind(t,r,i)}):a.default.createElement("button",{key:(0,c.uniqueID)(),type:"button",className:"btn btn-link",style:{padding:"0px 1px"},onClick:e.click.bind(t,r,i)},e.label)})))}var h=l?"bg-warning":"";return a.default.createElement("tr",{style:{height:"26px"},className:h},f)}}]),e}();e.default=u},function(t,e,n){var i=n(99);"string"==typeof i&&(i=[[t.i,i,""]]);n(18)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(17)(!1)).push([t.i,".content-tr:hover{\r\n    background: #fcf8e3;\r\n}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="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=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(5),o=f(a),s=f(n(10)),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(51)),l=n(4),u=n(26);function f(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.Component),r(e,[{key:"_storeData",value:function(){}},{key:"_showEditor",value:function(t){var e=this.props.rowData,n=$(s.default.findDOMNode(this));if(!this.cellEditor){switch(this.cellEditor=null,e._editorType){case"number":this.cellEditor=$('<input type="number" class="form-control" style="height:31px">');break;case"date":this.cellEditor=$('<input type="datetime-local" class="form-control" style="height:31px">');break;case"boolean":this.cellEditor=$('<select class="form-control" style="height:31px"><option value="true">true</option><option value="false" selected="selected">false</option></select>');break;case"list":this.cellEditor=$('<input type="text" class="form-control" style="height:31px" title="双击打开窗口编辑列表值">'),this.cellEditor.dblclick(function(){var i=e[t];i&&""!==i||(i="{}");var r=JSON.parse(i)||{},a=r.rows||[],o=r.type,s=function(i){var r={type:o,rows:i},a=JSON.stringify(r);e[t]=a,n.find("div").html(a)};if(o){var l=null,f=!0,h=!1,d=void 0;try{for(var p,b=simulatorCategoryData[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var g=p.value;if(o===g.clazz){l=g;break}}}catch(t){h=!0,d=t}finally{try{!f&&b.return&&b.return()}finally{if(h)throw d}}l||(l={variables:[{name:"value",label:o+"具体值"}]});var y=l.variables||[];c.eventEmitter.emit(c.SHOW_CHILD_LIST_DIALOG,{variables:y,rows:a,callback:s})}else{var m=window.simulatorCategoryData||[],v=$('<select class="form-control"></select>'),A=!0,w=!1,M=void 0;try{for(var I,x=m[Symbol.iterator]();!(A=(I=x.next()).done);A=!0){var C=I.value;v.append('<option value="'+C.clazz+'">'+C.name+"</option>")}}catch(t){w=!0,M=t}finally{try{!A&&x.return&&x.return()}finally{if(w)throw M}}v.append('<option value="Integer">Integer</option>'),v.append('<option value="Double">Double</option>'),v.append('<option value="Float">Float</option>'),v.append('<option value="String">String</option>'),v.append('<option value="" selected></option>'),u.MsgBox.dialog("选择子对象类型",v,function(){if((o=v.val())&&""!==o){var t=null;if("Integer"!==o&&"Double"!==o&&"String"!==o&&"Float"!==o){var e=!0,n=!1,i=void 0;try{for(var r,l=m[Symbol.iterator]();!(e=(r=l.next()).done);e=!0){var f=r.value;if(o===f.clazz){t=f;break}}}catch(t){n=!0,i=t}finally{try{!e&&l.return&&l.return()}finally{if(n)throw i}}}else t={variables:[{name:"value",label:o+"具体值"}]};var h=t.variables||[];c.eventEmitter.emit(c.SHOW_CHILD_LIST_DIALOG,{variables:h,rows:a,callback:s})}else u.MsgBox.alert("请先选择子对象类型!")})}});break;default:this.cellEditor=$('<input type="text" class="form-control" style="height:31px">')}n.append(this.cellEditor),this.cellEditor.blur(function(){var i=$(this).val();"datetime-local"===$(this).prop("type")&&(i=i.replace(/T/g," ")),e[t]=i;var r=n.find("div");r.html(e[t]),r.show(),$(this).hide()})}this.cellEditor.val(e[t]),this.cellEditor.show(),this.cellEditor.focus()}},{key:"render",value:function(){var t=this,e=this.props,n=e.rowData,r=e.header,a=r.dateFormat,s=n[r.name];if(a){var u=new Date(s);s=(0,l.formatDate)(u,a)}s&&"object"===(void 0===s?"undefined":i(s))&&(s=JSON.stringify(s));var f={marginTop:"5px",minHeight:"26px",wordBreak:"break-all"};return"checkState"===r.name&&(f.color="启用"===s?"#4caf50":"#f44336"),o.default.createElement("td",{style:{padding:"1px 5px"}},o.default.createElement("div",{style:f,onClick:function(e){if(r.editable&&n._new){var i=e.target;$(i).css({display:"none"}),n._editorType?t._showEditor(r.name):c.eventEmitter.emit(c.SHOW_CELL_EDITOR,{targetDiv:i,rowData:n,colId:r.id})}}},s))}}]),e}();e.default=h},function(t,e){!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery)},function(t,e){!function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.4.0",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var i=t(this),r=i.attr("data-target");r||(r=(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),r="#"===r?[]:r;var a=t(document).find(r);function o(){a.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),a.length||(a=i.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery)},function(t,e){!function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.button"),a="object"==typeof n&&n;r||i.data("bs.button",r=new e(this,a)),"toggle"==n?r.toggle():n&&r.setState(n)})}e.VERSION="3.4.0",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",a=i.data();e+="Text",null==a.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==a[e]?this.options[e]:a[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var i=t(e.target).closest(".btn");n.call(i,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery)},function(t,e){!function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),a=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),o="string"==typeof n?n:a.slide;r||i.data("bs.carousel",r=new e(this,a)),"number"==typeof n?r.to(n):o?r[o]():a.interval&&r.pause().cycle()})}e.VERSION="3.4.0",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,i){var r=this.$element.find(".item.active"),a=i||this.getItemForDirection(n,r),o=this.interval,s="next"==n?"left":"right",c=this;if(a.hasClass("active"))return this.sliding=!1;var l=a[0],u=t.Event("slide.bs.carousel",{relatedTarget:l,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=t(this.$indicators.children()[this.getItemIndex(a)]);f&&f.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:l,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(a.addClass(n),"object"==typeof a&&a.length&&a[0].offsetWidth,r.addClass(s),a.addClass(s),r.one("bsTransitionEnd",function(){a.removeClass([n,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger(h)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(r.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(e){var i=t(this),r=i.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var a=i.attr("data-target")||r,o=t(document).find(a);if(o.hasClass("carousel")){var s=t.extend({},o.data(),i.data()),c=i.attr("data-slide-to");c&&(s.interval=!1),n.call(o,s),c&&o.data("bs.carousel").to(c),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery)},function(t,e){!function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function i(n){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),a=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!r&&a.toggle&&/show|hide/.test(n)&&(a.toggle=!1),r||i.data("bs.collapse",r=new e(this,a)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.0",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(n=r.data("bs.collapse"))&&n.transitioning)){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),n||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var c=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[o](this.$element[0][c])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var r=t(i);this.addAriaAndCollapsedClass(n(r),r)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var r=t(this);r.attr("data-target")||e.preventDefault();var a=n(r),o=a.data("bs.collapse")?"toggle":r.data();i.call(a,o)})}(jQuery)},function(t,e){!function(t){"use strict";var e=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function r(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(document).find(n);return i&&i.length?i:e.parent()}function a(i){i&&3===i.which||(t(e).remove(),t(n).each(function(){var e=t(this),n=r(e),a={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",a)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}i.VERSION="3.4.0",i.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var i=r(n),o=i.hasClass("open");if(a(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",a);var s={relatedTarget:this};if(i.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var a=r(i),o=a.hasClass("open");if(!o&&27!=e.which||o&&27==e.which)return 27==e.which&&a.find(n).trigger("focus"),i.trigger("click");var s=a.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var c=s.index(e.target);38==e.which&&c>0&&c--,40==e.which&&c<s.length-1&&c++,~c||(c=0),s.eq(c).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new i(this)),"string"==typeof e&&r[e].call(n)})},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery)},function(t,e){!function(t){"use strict";var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,i){return this.each(function(){var r=t(this),a=r.data("bs.modal"),o=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);a||r.data("bs.modal",a=new e(this,o)),"string"==typeof n?a[n](i):o.show&&a.show(i)})}e.VERSION="3.4.0",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,r=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var a=t.Event("shown.bs.modal",{relatedTarget:n});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;a?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):o()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+n),t(this.fixedContent).each(function(e,i){var r=i.style.paddingRight,a=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(a)+n+"px")}))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""})},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),r=i.attr("href"),a=i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),o=t(document).find(a),s=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&e.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(o,s,this)})}(jQuery)},function(t,e){!function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.4.0",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),a=r.length;a--;){var o=r[a];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",c="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(c+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var r=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(s);l&&(s=s.replace(c,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(t(document).find(this.options.container)):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),f=a[0].offsetWidth,h=a[0].offsetHeight;if(l){var d=s,p=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+h>p.bottom?"top":"top"==s&&u.top-h<p.top?"bottom":"right"==s&&u.right+f>p.width?"left":"left"==s&&u.left-f<p.left?"right":s,a.removeClass(d).addClass(s)}var b=this.getCalculatedOffset(s,u,f,h);this.applyPlacement(b,s);var g=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",g).emulateTransitionEnd(e.TRANSITION_DURATION):g()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,a=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),e.top+=o,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var c=i[0].offsetWidth,l=i[0].offsetHeight;"top"==n&&l!=a&&(e.top=e.top+a-l);var u=this.getViewportAdjustedDelta(n,e,c,l);u.left?e.left+=u.left:e.top+=u.top;var f=/top|bottom/.test(n),h=f?2*u.left-r+c:2*u.top-a+l,d=f?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][d],f)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){var i=this,r=t(this.$tip),a=t.Event("hide.bs."+this.type);function o(){"in"!=i.hoverState&&r.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),n&&n()}if(this.$element.trigger(a),!a.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",o).emulateTransitionEnd(e.TRANSITION_DURATION):o(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var a=window.SVGElement&&n instanceof window.SVGElement,o=i?{top:0,left:0}:a?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},c=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,c,o)},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var a=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-a-o.scroll,c=e.top+a-o.scroll+i;s<o.top?r.top=o.top-s:c>o.top+o.height&&(r.top=o.top+o.height-c)}else{var l=e.left-a,u=e.left+a+n;l<o.left?r.left=o.left-l:u>o.right&&(r.left=o.left+o.width-u)}return r},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),a="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.tooltip",r=new e(this,a)),"string"==typeof n&&r[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery)},function(t,e){!function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.0",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),r=i.data("bs.popover"),a="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.popover",r=new e(this,a)),"string"==typeof n&&r[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery)},function(t,e){!function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),a="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,a)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),a=/^#./.test(r)&&t(r);return a&&a.length&&a.is(":visible")&&[[a[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,a=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return o!=(t=a[a.length-1])&&this.activate(t);if(o&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)o!=a[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(a[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery)},function(t,e){!function(t){"use strict";var e=function(e){this.element=t(e)};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new e(this)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.0",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),a=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(a),e.trigger(o),!o.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=t(document).find(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},e.prototype.activate=function(n,i,r){var a=i.find("> .active"),o=r&&t.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);function s(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}a.length&&o?a.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),a.removeClass("in")};var i=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery)},function(t,e){!function(t){"use strict";var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i);var r=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.affix"),a="object"==typeof n&&n;r||i.data("bs.affix",r=new e(this,a)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.0",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),a=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=a.top)&&"bottom":!(r+o<=t-i)&&"bottom";var s=null==this.affixed,c=s?r:a.top;return null!=n&&r<=n?"top":null!=i&&c+(s?o:e)>=t-i&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,r=i.top,a=i.bottom,o=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(a=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var s=this.getState(o,n,r,a);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var c="affix"+(s?"-"+s:""),l=t.Event(c+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(c).trigger(c.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:o-n-a})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(e,i)})})}(jQuery)},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),o=i[0],s=i[1],c=new a(function(t,e,n){return 3*(e+n)/4-n}(0,o,s)),u=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,a=[],o=0,s=n-r;o<s;o+=16383)a.push(u(t,o,o+16383>s?s:o+16383));1===r?(e=t[n-1],a.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],a.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return a.join("")};for(var i=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function l(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("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var r,a,o=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(i[(a=r)>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,c=(1<<s)-1,l=c>>1,u=-7,f=n?r-1:0,h=n?-1:1,d=t[e+f];for(f+=h,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),a-=l}return(d?-1:1)*o*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var o,s,c,l=8*a-r-1,u=(1<<l)-1,f=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-1,p=i?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(o++,c/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(e*c-1)*Math.pow(2,r),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,r),o=0));r>=8;t[n+d]=255&s,d+=p,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;t[n+d]=255&o,d+=p,o/=256,l-=8);t[n+d-p]|=128*b}},function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(15),e.createHash=e.Hash=n(20),e.createHmac=e.Hmac=n(60);var i=n(132),r=Object.keys(i),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return a};var o=n(63);e.pbkdf2=o.pbkdf2,e.pbkdf2Sync=o.pbkdf2Sync;var s=n(134);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 c=n(151);e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var l=n(157);e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=n(191);var u=n(192);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var f=n(195);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}},function(t,e){},function(t,e,n){"use strict";var i=n(1).Buffer,r=n(118);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(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"";for(var e=this.head,n=""+e.data;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;for(var e,n,r,a=i.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,n=a,r=s,e.copy(n,r),s+=o.data.length,o=o.next;return a},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function a(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new a(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new a(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(120),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(8))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,a,o,s,c=1,l={},u=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){a.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(r=f.documentElement,i=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(o="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&p(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(o+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return l[c]=r,i(c),c++},h.clearImmediate=d}function d(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{d(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(8),n(11))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}}).call(this,n(8))},function(t,e,n){"use strict";t.exports=a;var i=n(57),r=n(21);function a(t){if(!(this instanceof a))return new a(t);i.call(this,t)}r.inherits=n(0),r.inherits(a,i),a.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(36)},function(t,e,n){t.exports=n(13)},function(t,e,n){t.exports=n(35).Transform},function(t,e,n){t.exports=n(35).PassThrough},function(t,e,n){var i=n(0),r=n(16),a=n(1).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,r.call(this,64,56)}function l(t){return t<<30|t>>>2}function u(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=t.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var h=0;h<80;++h){var d=~~(h/20),p=0|((e=i)<<5|e>>>27)+u(d,r,a,s)+c+n[h]+o[d];c=s,s=a,a=l(r),r=i,i=p}this._a=i+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=a.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=c},function(t,e,n){var i=n(0),r=n(16),a=n(1).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,r.call(this,64,56)}function l(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function f(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=(e=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),b=l(i)+f(p,r,a,s)+c+n[d]+o[p]|0;c=s,s=a,a=u(r),r=i,i=b}this._a=i+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=a.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=c},function(t,e,n){var i=n(0),r=n(58),a=n(16),o=n(1).Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}i(c,r),c.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},c.prototype._hash=function(){var t=o.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=c},function(t,e,n){var i=n(0),r=n(59),a=n(16),o=n(1).Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}i(c,r),c.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},c.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+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=c},function(t,e,n){"use strict";var i=n(0),r=n(1).Buffer,a=n(12),o=r.alloc(128),s=64;function c(t,e){a.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=r.concat([e,o],s));for(var n=this._ipad=r.allocUnsafe(s),i=this._opad=r.allocUnsafe(s),c=0;c<s;c++)n[c]=54^e[c],i[c]=92^e[c];this._hash=[n]}i(c,a),c.prototype._update=function(t){this._hash.push(t)},c.prototype._final=function(){var t=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,t]))},t.exports=c},function(t,e,n){t.exports=n(62)},function(t,e,n){(function(e,i){var r,a=n(64),o=n(65),s=n(66),c=n(1).Buffer,l=e.crypto&&e.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(t,e,n,i,r){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:r}},t,i<<3)}).then(function(t){return c.from(t)})}t.exports=function(t,n,d,p,b,g){"function"==typeof b&&(g=b,b=void 0);var y=u[(b=b||"sha1").toLowerCase()];if(!y||"function"!=typeof e.Promise)return i.nextTick(function(){var e;try{e=s(t,n,d,p,b)}catch(t){return g(t)}g(null,e)});if(a(t,n,d,p),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");c.isBuffer(t)||(t=c.from(t,o)),c.isBuffer(n)||(n=c.from(n,o)),function(t,e){t.then(function(t){i.nextTick(function(){e(null,t)})},function(t){i.nextTick(function(){e(t)})})}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==f[t])return f[t];var n=h(r=r||c.alloc(8),r,10,128,t).then(function(){return!0}).catch(function(){return!1});return f[t]=n,n}(y).then(function(e){return e?h(t,n,d,p,y):s(t,n,d,p,b)}),g)}}).call(this,n(8),n(11))},function(t,e,n){var i=n(135),r=n(41),a=n(42),o=n(150),s=n(29);function c(t,e,n){if(t=t.toLowerCase(),a[t])return r.createCipheriv(t,e,n);if(o[t])return new i({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function l(t,e,n){if(t=t.toLowerCase(),a[t])return r.createDecipheriv(t,e,n);if(o[t])return new i({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,i;if(t=t.toLowerCase(),a[t])n=a[t].key,i=a[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");n=8*o[t].key,i=o[t].iv}var r=s(e,!1,n,i);return c(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=function(t,e){var n,i;if(t=t.toLowerCase(),a[t])n=a[t].key,i=a[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");n=8*o[t].key,i=o[t].iv}var r=s(e,!1,n,i);return l(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=l,e.listCiphers=e.getCiphers=function(){return Object.keys(o).concat(r.getCiphers())}},function(t,e,n){var i=n(12),r=n(40),a=n(0),o=n(1).Buffer,s={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function c(t){i.call(this);var e,n=t.mode.toLowerCase(),r=s[n];e=t.decrypt?"decrypt":"encrypt";var a=t.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var c=t.iv;o.isBuffer(c)||(c=o.from(c)),this._des=r.create({key:a,iv:c,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=c,a(c,i),c.prototype._update=function(t){return o.from(this._des.update(t))},c.prototype._final=function(){return o.from(this._des.final())}},function(t,e,n){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>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,i){for(var r=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)r<<=1,r|=e>>>s+o&1;for(s=0;s<=24;s+=8)r<<=1,r|=t>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1}n[i+0]=r>>>0,n[i+1]=a>>>0},e.rip=function(t,e,n,i){for(var r=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)r<<=1,r|=e>>>s+o&1,r<<=1,r|=t>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=e>>>s+o&1,a<<=1,a|=t>>>s+o&1;n[i+0]=r>>>0,n[i+1]=a>>>0},e.pc1=function(t,e,n,i){for(var r=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)r<<=1,r|=e>>s+o&1;for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+o&1}for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;n[i+0]=r>>>0,n[i+1]=a>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var i=[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,r){for(var a=0,o=0,s=i.length>>>1,c=0;c<s;c++)a<<=1,a|=t>>>i[c]&1;for(c=s;c<i.length;c++)o<<=1,o|=e>>>i[c]&1;n[r+0]=a>>>0,n[r+1]=o>>>0},e.expand=function(t,e,n){var i=0,r=0;i=(1&t)<<5|t>>>27;for(var a=23;a>=15;a-=4)i<<=6,i|=t>>>a&63;for(a=11;a>=3;a-=4)r|=t>>>a&63,r<<=6;r|=(31&t)<<1|t>>>31,e[n+0]=i>>>0,e[n+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++){n<<=4,n|=r[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=r[256+64*i+(e>>>18-6*i&63)]}return n>>>0};var a=[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<a.length;n++)e<<=1,e|=t>>>a[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var i=t.toString(2);i.length<e;)i="0"+i;for(var r=[],a=0;a<e;a+=n)r.push(i.slice(a,a+n));return r.join(" ")}},function(t,e,n){"use strict";var i=n(6);function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i<n;i++)this.buffer[this.bufferOff+i]=t[e+i];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,n=0,i=(this.bufferOff+t.length)/this.blockSize|0,r=new Array(i*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(r,n)));for(var a=t.length-(t.length-e)%this.blockSize;e<a;e+=this.blockSize)this._update(t,e,r,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return r},r.prototype._updateDecrypt=function(t){for(var e=0,n=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,r=new Array(i*this.blockSize);i>0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(r,n);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,n){"use strict";var i=n(6),r=n(0),a=n(40),o=a.utils,s=a.Cipher;function c(){this.tmp=new Array(2),this.keys=null}function l(t){s.call(this,t);var e=new c;this._desState=e,this.deriveKeys(e,t.key)}r(l,s),t.exports=l,l.create=function(t){return new l(t)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),i.equal(e.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(e,0),r=o.readUInt32BE(e,4);o.pc1(n,r,t.tmp,0),n=t.tmp[0],r=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=u[a>>>1];n=o.r28shl(n,s),r=o.r28shl(r,s),o.pc2(n,r,t.keys,a)}},l.prototype._update=function(t,e,n,i){var r=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,r.tmp,0),a=r.tmp[0],s=r.tmp[1],"encrypt"===this.type?this._encrypt(r,a,s,r.tmp,0):this._decrypt(r,a,s,r.tmp,0),a=r.tmp[0],s=r.tmp[1],o.writeUInt32BE(n,a,i),o.writeUInt32BE(n,s,i+4)},l.prototype._pad=function(t,e){for(var n=t.length-e,i=e;i<t.length;i++)t[i]=n;return!0},l.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)i.equal(t[n],e);return t.slice(0,t.length-e)},l.prototype._encrypt=function(t,e,n,i,r){for(var a=e,s=n,c=0;c<t.keys.length;c+=2){var l=t.keys[c],u=t.keys[c+1];o.expand(s,t.tmp,0),l^=t.tmp[0],u^=t.tmp[1];var f=o.substitute(l,u),h=s;s=(a^o.permute(f))>>>0,a=h}o.rip(s,a,i,r)},l.prototype._decrypt=function(t,e,n,i,r){for(var a=n,s=e,c=t.keys.length-2;c>=0;c-=2){var l=t.keys[c],u=t.keys[c+1];o.expand(a,t.tmp,0),l^=t.tmp[0],u^=t.tmp[1];var f=o.substitute(l,u),h=a;a=(s^o.permute(f))>>>0,s=h}o.rip(a,s,i,r)}},function(t,e,n){"use strict";var i=n(6),r=n(0),a={};function o(t){i.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]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}r(e,t);for(var n=Object.keys(a),i=0;i<n.length;i++){var o=n[i];e.prototype[o]=a[o]}return e.create=function(t){return new e(t)},e},a._cbcInit=function(){var t=new o(this.options.iv);this._cbcState=t},a._update=function(t,e,n,i){var r=this._cbcState,a=this.constructor.super_.prototype,o=r.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=t[e+s];a._update.call(this,o,0,n,i);for(s=0;s<this.blockSize;s++)o[s]=n[i+s]}else{a._update.call(this,t,e,n,i);for(s=0;s<this.blockSize;s++)n[i+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=t[e+s]}}},function(t,e,n){"use strict";var i=n(6),r=n(0),a=n(40),o=a.Cipher,s=a.DES;function c(t,e){i.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),r=e.slice(8,16),a=e.slice(16,24);this.ciphers="encrypt"===t?[s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:r}),s.create({type:"encrypt",key:a})]:[s.create({type:"decrypt",key:a}),s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:n})]}function l(t){o.call(this,t);var e=new c(this.type,this.options.key);this._edeState=e}r(l,o),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,n,i){var r=this._edeState;r.ciphers[0]._update(t,e,n,i),r.ciphers[1]._update(n,i,n,i),r.ciphers[2]._update(n,i,n,i)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},function(t,e,n){var i=n(42),r=n(70),a=n(1).Buffer,o=n(71),s=n(12),c=n(28),l=n(29);function u(t,e,n){s.call(this),this._cache=new h,this._cipher=new c.AES(e),this._prev=a.from(n),this._mode=t,this._autopadding=!0}n(0)(u,s),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get();)n=this._mode.encrypt(this,e),i.push(n);return a.concat(i)};var f=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(t,e,n){var s=i[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=a.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,e,n):"auth"===s.type?new r(s.module,e,n):new u(s.module,e,n)}u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=a.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(){for(var t=16-this.cache.length,e=a.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return a.concat([this.cache,e])},e.createCipheriv=d,e.createCipher=function(t,e){var n=i[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(e,!1,n.key,n.iv);return d(t,r.key,r.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,n){var i=n(22);e.encrypt=function(t,e){var n=i(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 r=t._cipher.decryptBlock(e);return i(r,n)}},function(t,e,n){var i=n(1).Buffer,r=n(22);function a(t,e,n){var a=e.length,o=r(e,t._cache);return t._cache=t._cache.slice(a),t._prev=i.concat([t._prev,n?e:o]),o}e.encrypt=function(t,e,n){for(var r,o=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){o=i.concat([o,a(t,e,n)]);break}r=t._cache.length,o=i.concat([o,a(t,e.slice(0,r),n)]),e=e.slice(r)}return o}},function(t,e,n){var i=n(1).Buffer;function r(t,e,n){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([n?e:r])]),r}e.encrypt=function(t,e,n){for(var a=e.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=r(t,e[s],n);return o}},function(t,e,n){var i=n(1).Buffer;function r(t,e,n){for(var i,r,o=-1,s=0;++o<8;)i=e&1<<7-o?128:0,s+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^i))>>o%8,t._prev=a(t._prev,n?i:r);return s}function a(t,e){var n=t.length,r=-1,a=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++r<n;)a[r]=t[r]<<1|t[r+1]>>7;return a}e.encrypt=function(t,e,n){for(var a=e.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=r(t,e[s],n);return o}},function(t,e,n){(function(t){var i=n(22);function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,r(e)]);var a=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),i(n,a)}}).call(this,n(3).Buffer)},function(t,e,n){var i=n(1).Buffer,r=i.alloc(16,0);function a(t){var e=i.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 o(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},o.prototype._multiply=function(){for(var t,e,n,i=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],r=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(r[0]^=i[0],r[1]^=i[1],r[2]^=i[2],r[3]^=i[3]),n=0!=(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=a(r)},o.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,r],16)),this.ghash(a([0,t,0,e])),this.state},t.exports=o},function(t,e,n){var i=n(70),r=n(1).Buffer,a=n(42),o=n(71),s=n(12),c=n(28),l=n(29);function u(t,e,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(e),this._prev=r.from(n),this._mode=t,this._autopadding=!0}function f(){this.cache=r.allocUnsafe(0)}function h(t,e,n){var s=a[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=r.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=r.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new o(s.module,e,n,!0):"auth"===s.type?new i(s.module,e,n,!0):new u(s.module,e,n)}n(0)(u,s),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),i.push(n);return r.concat(i)},u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},f.prototype.add=function(t){this.cache=r.concat([this.cache,t])},f.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},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=a[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(e,!1,n.key,n.iv);return h(t,i.key,i.iv)},e.createDecipheriv=h},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}},function(t,e,n){(function(t){var i=n(72),r=n(155),a=n(156);var o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var n=new t(r[e].prime,"hex"),i=new t(r[e].gen,"hex");return new a(n,i)},e.createDiffieHellman=e.DiffieHellman=function e(n,r,s,c){return t.isBuffer(r)||void 0===o[r]?e(n,"binary",r,s):(r=r||"binary",c=c||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,c)),"number"==typeof n?new a(i(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,r)),new a(n,s,!0)))}}).call(this,n(3).Buffer)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e){},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"}}')},function(t,e,n){(function(e){var i=n(2),r=new(n(73)),a=new i(24),o=new i(11),s=new i(10),c=new i(3),l=new i(7),u=n(72),f=n(15);function h(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new i(t),this}function d(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new i(t),this}t.exports=b;var p={};function b(t,e,n){this.setGenerator(e),this.__prime=new i(t),this._prime=i.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=d):this._primeCode=8}function g(t,n){var i=new e(t.toArray());return n?i.toString(n):i}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),i=[n,t.toString(16)].join("_");if(i in p)return p[i];var f,h=0;if(t.isEven()||!u.simpleSieve||!u.fermatTest(t)||!r.test(t))return h+=1,h+="02"===n||"05"===n?8:4,p[i]=h,h;switch(r.test(t.shrn(1))||(h+=2),n){case"02":t.mod(a).cmp(o)&&(h+=8);break;case"05":(f=t.mod(s)).cmp(c)&&f.cmp(l)&&(h+=8);break;default:h+=4}return p[i]=h,h}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(t){var n=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new e(n.toArray()),a=this.getPrime();if(r.length<a.length){var o=new e(a.length-r.length);o.fill(0),r=e.concat([o,r])}return r},b.prototype.getPublicKey=function(t){return g(this._pub,t)},b.prototype.getPrivateKey=function(t){return g(this._priv,t)},b.prototype.getPrime=function(t){return g(this.__prime,t)},b.prototype.getGenerator=function(t){return g(this._gen,t)},b.prototype.setGenerator=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.__gen=t,this._gen=new i(t),this}}).call(this,n(3).Buffer)},function(t,e,n){(function(e){var i=n(20),r=n(34),a=n(0),o=n(158),s=n(190),c=n(62);function l(t){r.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 u(t){r.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 f(t){return new l(t)}function h(t){return new u(t)}Object.keys(c).forEach(function(t){c[t].id=new e(c[t].id,"hex"),c[t.toLowerCase()]=c[t]}),a(l,r.Writable),l.prototype._write=function(t,e,n){this._hash.update(t),n()},l.prototype.update=function(t,n){return"string"==typeof t&&(t=new e(t,n)),this._hash.update(t),this},l.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),i=o(n,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},a(u,r.Writable),u.prototype._write=function(t,e,n){this._hash.update(t),n()},u.prototype.update=function(t,n){return"string"==typeof t&&(t=new e(t,n)),this._hash.update(t),this},u.prototype.verify=function(t,n,i){"string"==typeof n&&(n=new e(n,i)),this.end();var r=this._hash.digest();return s(n,r,t,this._signType,this._tag)},t.exports={Sign:f,Verify:h,createSign:f,createVerify:h}}).call(this,n(3).Buffer)},function(t,e,n){(function(e){var i=n(60),r=n(44),a=n(45).ec,o=n(2),s=n(31),c=n(83);function l(t,n,r,a){if((t=new e(t.toArray())).length<n.byteLength()){var o=new e(n.byteLength()-t.length);o.fill(0),t=e.concat([o,t])}var s=r.length,c=function(t,n){t=(t=u(t,n)).mod(n);var i=new e(t.toArray());if(i.length<n.byteLength()){var r=new e(n.byteLength()-i.length);r.fill(0),i=e.concat([r,i])}return i}(r,n),l=new e(s);l.fill(1);var f=new e(s);return f.fill(0),f=i(a,f).update(l).update(new e([0])).update(t).update(c).digest(),l=i(a,f).update(l).digest(),{k:f=i(a,f).update(l).update(new e([1])).update(t).update(c).digest(),v:l=i(a,f).update(l).digest()}}function u(t,e){var n=new o(t),i=(t.length<<3)-e.bitLength();return i>0&&n.ishrn(i),n}function f(t,n,r){var a,o;do{for(a=new e(0);8*a.length<t.bitLength();)n.v=i(r,n.k).update(n.v).digest(),a=e.concat([a,n.v]);o=u(a,t),n.k=i(r,n.k).update(n.v).update(new e([0])).digest(),n.v=i(r,n.k).update(n.v).digest()}while(-1!==o.cmp(t));return o}function h(t,e,n,i){return t.toRed(o.mont(n)).redPow(e).fromRed().mod(i)}t.exports=function(t,n,i,d,p){var b=s(n);if(b.curve){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");return function(t,n){var i=c[n.curve.join(".")];if(!i)throw new Error("unknown curve "+n.curve.join("."));var r=new a(i).keyFromPrivate(n.privateKey).sign(t);return new e(r.toDER())}(t,b)}if("dsa"===b.type){if("dsa"!==d)throw new Error("wrong private key type");return function(t,n,i){var r,a=n.params.priv_key,s=n.params.p,c=n.params.q,d=n.params.g,p=new o(0),b=u(t,c).mod(c),g=!1,y=l(a,c,t,i);for(;!1===g;)r=f(c,y,i),p=h(d,r,s,c),0===(g=r.invm(c).imul(b.add(a.mul(p))).mod(c)).cmpn(0)&&(g=!1,p=new o(0));return function(t,n){t=t.toArray(),n=n.toArray(),128&t[0]&&(t=[0].concat(t));128&n[0]&&(n=[0].concat(n));var i=[48,t.length+n.length+4,2,t.length];return i=i.concat(t,[2,n.length],n),new e(i)}(p,g)}(t,b,i)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");t=e.concat([p,t]);for(var g=b.modulus.byteLength(),y=[0,1];t.length+y.length+1<g;)y.push(255);y.push(0);for(var m=-1;++m<t.length;)y.push(t[m]);return r(y,b)},t.exports.getKey=l,t.exports.makeKey=f}).call(this,n(3).Buffer)},function(t){t.exports=JSON.parse('{"_from":"elliptic@^6.0.0","_id":"elliptic@6.5.0","_inBundle":false,"_integrity":"sha512-eFOJTMyCYb7xtE/caJ6JJu+bhi67WCYNbkGSknu20pmM8Ke/bqOfdnZWxyoGN26JgfxTbXrsCkEw4KheCT/KGg==","_location":"/webpack/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"elliptic@^6.0.0","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.0.0","saveSpec":null,"fetchSpec":"^6.0.0"},"_requiredBy":["/webpack/browserify-sign","/webpack/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.0.tgz","_shasum":"2b8ed4c891b7de3200e14412a5b8248c7af505ca","_spec":"elliptic@^6.0.0","_where":"C:\\\\Users\\\\Jacky\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\webpack\\\\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":"^2.11.3","grunt":"^0.4.5","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":"^8.6.2","istanbul":"^0.4.2","jscs":"^2.9.0","jshint":"^2.6.0","mocha":"^2.1.0"},"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.0"}')},function(t,e,n){"use strict";var i=n(7),r=n(2),a=n(0),o=n(30),s=i.assert;function c(t){o.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(t,e,n,i){o.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(n,16),i&&(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 u(t,e,n,i){o.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(n,16),this.z=new r(i,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}a(c,o),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=(e=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(t.lambda)n=new r(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{beta:e,lambda:n,basis:t.basis?t.basis.map(function(t){return{a:new r(t.a,16),b:new r(t.b,16)}}):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),n=new r(2).toRed(e).redInvm(),i=n.redNeg(),a=new r(3).toRed(e).redNeg().redSqrt().redMul(n);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,n,i,a,o,s,c,l,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,d=this.n.clone(),p=new r(1),b=new r(0),g=new r(0),y=new r(1),m=0;0!==h.cmpn(0);){var v=d.div(h);l=d.sub(v.mul(h)),u=g.sub(v.mul(p));var A=y.sub(v.mul(b));if(!i&&l.cmp(f)<0)e=c.neg(),n=p,i=l.neg(),a=u;else if(i&&2==++m)break;c=l,d=h,h=l,g=p,p=u,y=b,b=A}o=l.neg(),s=u;var w=i.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=e,s=n),i.negative&&(i=i.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],i=e[1],r=i.b.mul(t).divRound(this.n),a=n.b.neg().mul(t).divRound(this.n),o=r.mul(n.a),s=a.mul(i.a),c=r.mul(n.b),l=a.mul(i.b);return{k1:t.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(0!==i.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=i.fromRed().isOdd();return(e&&!a||!e&&a)&&(i=i.redNeg()),this.point(t,i)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,i=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===n.redSqr().redISub(r).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,n){for(var i=this._endoWnafT1,r=this._endoWnafT2,a=0;a<t.length;a++){var o=this._endoSplit(e[a]),s=t[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),i[2*a]=s,i[2*a+1]=c,r[2*a]=o.k1,r[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,i,r,2*a,n),u=0;u<2*a;u++)i[u]=null,r[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(t,e,n){return new l(this,t,e,n)},c.prototype.pointFromJSON=function(t,e){return l.fromJSON(this,t,e)},l.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,i=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(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],n);if(!e[2])return i;function r(e){return t.point(e[0],e[1],n)}var a=e[2];return i.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[i].concat(a.doubles.points.map(r))},naf:a.naf&&{wnd:a.naf.wnd,points:[i].concat(a.naf.points.map(r))}},i},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(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),i=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)},l.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(),i=t.redInvm(),r=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(i),a=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(t){return t=new r(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){var i=[this,e],r=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,r):this.curve._wnafMulAdd(1,i,r,2)},l.prototype.jmulAdd=function(t,e,n){var i=[this,e],r=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,r,!0):this.curve._wnafMulAdd(1,i,r,2,!0)},l.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))},l.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,i=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return e},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(t,e,n){return new u(this,t,e,n)},u.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),i=this.y.redMul(e).redMul(t);return this.curve.point(n,i)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(e),r=t.x.redMul(n),a=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(n.redMul(this.z)),s=i.redSub(r),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),f=i.redMul(l),h=c.redSqr().redIAdd(u).redISub(f).redISub(f),d=c.redMul(f.redISub(h)).redISub(a.redMul(u)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,d,p)},u.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,i=t.x.redMul(e),r=this.y,a=t.y.redMul(e).redMul(this.z),o=n.redSub(i),s=r.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=n.redMul(c),f=s.redSqr().redIAdd(l).redISub(u).redISub(u),h=s.redMul(u.redISub(f)).redISub(r.redMul(l)),d=this.z.redMul(o);return this.curve.jpoint(f,h,d)},u.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 i=this.curve.a,r=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(n=0;n<t;n++){var u=a.redSqr(),f=l.redSqr(),h=f.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(i.redMul(c)),p=a.redMul(f),b=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(b),y=d.redMul(g);y=y.redIAdd(y).redISub(h);var m=l.redMul(s);n+1<t&&(c=c.redMul(h)),a=b,s=m,l=y}return this.curve.jpoint(a,l.redMul(r),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var i=this.x.redSqr(),r=this.y.redSqr(),a=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=c,e=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(u).redISub(h);d=d.redIAdd(d);var p=u.redAdd(u).redIAdd(u),b=p.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),t=b.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},u.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var i=this.x.redSqr(),r=this.y.redSqr(),a=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);t=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(u).redMul(this.x.redAdd(u));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),b=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(b),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},u.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,i=this.z,r=i.redSqr().redSqr(),a=e.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(t.redMul(r)),c=e.redAdd(e),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(u),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),p=n.redAdd(n).redMul(i);return this.curve.jpoint(u,d,p)},u.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(),i=e.redSqr(),r=t.redAdd(t).redIAdd(t),a=r.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(i),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=i.redIAdd(i);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=r.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=e.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,h,d)},u.prototype.mul=function(t,e){return t=new r(t,e),this.curve._wnafMul(this,t)},u.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 i=e.redMul(this.z),r=n.redMul(t.z);return 0===this.y.redMul(r).redISub(t.y.redMul(i)).cmpn(0)},u.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 i=t.clone(),r=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(r),0===this.x.cmp(n))return!0}},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";var i=n(2),r=n(0),a=n(30),o=n(7);function s(t){a.call(this,"mont",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,n){a.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(e,16),this.z=new i(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(s,a),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),i=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===i.redSqrt().redSqr().cmp(i)},r(c,a.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(o.toArray(t,e),1)},s.prototype.point=function(t,e){return new c(this,t,e)},s.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),i=t.redMul(e),r=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,r)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),r=t.x.redAdd(t.z),a=t.x.redSub(t.z).redMul(n),o=r.redMul(i),s=e.z.redMul(a.redAdd(o).redSqr()),c=e.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(t){for(var e=t.clone(),n=this,i=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var a=r.length-1;a>=0;a--)0===r[a]?(n=n.diffAdd(i,this),i=i.dbl()):(i=n.diffAdd(i,this),n=n.dbl());return i},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";var i=n(7),r=n(2),a=n(0),o=n(30),s=i.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,o.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function l(t,e,n,i,a){o.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(n,16),this.z=i?new r(i,16):this.curve.one,this.t=a&&new r(a,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()))))}a(c,o),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,n,i){return this.point(t,e,n,i)},c.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=i.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(e&&!c||!e&&c)&&(s=s.redNeg()),this.point(t,s)},c.prototype.pointFromY=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),i=e.redMul(this.a).redAdd(n),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===i.cmp(r)},a(l,o.BasePoint),c.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},c.prototype.point=function(t,e,n,i){return new l(this,t,e,n,i)},l.fromJSON=function(t,e){return new l(t,e[0],e[1],e[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),a=i.redAdd(e),o=a.redSub(n),s=i.redSub(e),c=r.redMul(o),l=a.redMul(s),u=r.redMul(s),f=o.redMul(a);return this.curve.point(c,l,f,u)},l.prototype._projDbl=function(){var t,e,n,i=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(l=this.curve._mulA(r)).redAdd(a);if(this.zOne)t=i.redSub(r).redSub(a).redMul(o.redSub(this.curve.two)),e=o.redMul(l.redSub(a)),n=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),c=o.redSub(s).redISub(s);t=i.redSub(r).redISub(a).redMul(c),e=o.redMul(l.redSub(a)),n=o.redMul(c)}}else{var l=r.redAdd(a);s=this.curve._mulC(this.z).redSqr(),c=l.redSub(s).redSub(s);t=this.curve._mulC(i.redISub(l)).redMul(c),e=this.curve._mulC(l).redMul(r.redISub(a)),n=l.redMul(c)}return this.curve.point(t,e,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.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)),i=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),a=n.redSub(e),o=r.redSub(i),s=r.redAdd(i),c=n.redAdd(e),l=a.redMul(o),u=s.redMul(c),f=a.redMul(c),h=o.redMul(s);return this.curve.point(l,u,h,f)},l.prototype._projAdd=function(t){var e,n,i=this.z.redMul(t.z),r=i.redSqr(),a=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(a).redMul(o),c=r.redSub(s),l=r.redAdd(s),u=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(a).redISub(o),f=i.redMul(c).redMul(u);return this.curve.twisted?(e=i.redMul(l).redMul(o.redSub(this.curve._mulA(a))),n=c.redMul(l)):(e=i.redMul(l).redMul(o.redSub(a)),n=this.curve._mulC(c).redMul(l)),this.curve.point(f,e,n)},l.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},l.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},l.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},l.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},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},l.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(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(t,e,n){"use strict";e.sha1=n(164),e.sha224=n(165),e.sha256=n(77),e.sha384=n(166),e.sha512=n(78)},function(t,e,n){"use strict";var i=n(9),r=n(23),a=n(76),o=i.rotl32,s=i.sum32,c=i.sum32_5,l=a.ft_1,u=r.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(h,u),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=o(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var r=this.h[0],a=this.h[1],u=this.h[2],h=this.h[3],d=this.h[4];for(i=0;i<n.length;i++){var p=~~(i/20),b=c(o(r,5),l(p,a,u,h),d,n[i],f[p]);d=h,h=u,u=o(a,30),a=r,r=b}this.h[0]=s(this.h[0],r),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],d)},h.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){"use strict";var i=n(9),r=n(77);function a(){if(!(this instanceof a))return new a;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(a,r),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(t,e,n){"use strict";var i=n(9),r=n(78);function a(){if(!(this instanceof a))return new a;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(a,r),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(t,e,n){"use strict";var i=n(9),r=n(23),a=i.rotl32,o=i.sum32,s=i.sum32_3,c=i.sum32_4,l=r.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(t,e,n,i){return t<=15?e^n^i:t<=31?e&n|~e&i:t<=47?(e|~n)^i:t<=63?e&i|n&~i:e^(n|~i)}function h(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}i.inherits(u,l),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(t,e){for(var n=this.h[0],i=this.h[1],r=this.h[2],l=this.h[3],u=this.h[4],m=n,v=i,A=r,w=l,M=u,I=0;I<80;I++){var x=o(a(c(n,f(I,i,r,l),t[p[I]+e],h(I)),g[I]),u);n=u,u=l,l=a(r,10),r=i,i=x,x=o(a(c(m,f(79-I,v,A,w),t[b[I]+e],d(I)),y[I]),M),m=M,M=w,w=a(A,10),A=v,v=x}x=s(this.h[1],r,w),this.h[1]=s(this.h[2],l,M),this.h[2]=s(this.h[3],u,m),this.h[3]=s(this.h[4],n,v),this.h[4]=s(this.h[0],i,A),this.h[0]=x},u.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"little"):i.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],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,n){"use strict";var i=n(9),r=n(6);function a(t,e,n){if(!(this instanceof a))return new a(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,n))}t.exports=a,a.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},a.prototype.update=function(t,e){return this.inner.update(t,e),this},a.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},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"]]}}},function(t,e,n){"use strict";var i=n(2),r=n(171),a=n(7),o=n(46),s=n(43),c=a.assert,l=n(172),u=n(173);function f(t){if(!(this instanceof f))return new f(t);"string"==typeof t&&(c(o.hasOwnProperty(t),"Unknown curve "+t),t=o[t]),t instanceof o.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 l(this,t)},f.prototype.keyFromPrivate=function(t,e){return l.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return l.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({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(),a=this.n.sub(new i(2));;){var o=new i(e.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},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,a){"object"==typeof n&&(a=n,n=null),a||(a={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var o=this.n.byteLength(),s=e.getPrivate().toArray("be",o),c=t.toArray("be",o),l=new r({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),f=this.n.sub(new i(1)),h=0;;h++){var d=a.k?a.k(h):new i(l.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var y=d.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return a.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new u({r:g,s:y,recoveryParam:m})}}}}}},f.prototype.verify=function(t,e,n,r){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,r);var a=(e=new u(e,"hex")).r,o=e.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),l=c.mul(t).umod(this.n),f=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),f)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},f.prototype.recoverPubKey=function(t,e,n,r){c((3&n)===n,"The recovery param is more than two bits"),e=new u(e,r);var a=this.n,o=new i(t),s=e.r,l=e.s,f=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var d=e.r.invm(a),p=a.sub(o).mul(d).umod(a),b=l.mul(d).umod(a);return this.g.mulAdd(p,s,b)},f.prototype.getKeyRecoveryParam=function(t,e,n,i){if(null!==(e=new u(e,i)).recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var a;try{a=this.recoverPubKey(t,e,r)}catch(t){continue}if(a.eq(n))return r}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";var i=n(47),r=n(74),a=n(6);function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),n=r.toArray(t.nonce,t.nonceEnc||"hex"),i=r.toArray(t.pers,t.persEnc||"hex");a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}t.exports=o,o.prototype._init=function(t,e,n){var i=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.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())},o.prototype.reseed=function(t,e,n,i){"string"!=typeof e&&(i=n,n=e,e=null),t=r.toArray(t,e),n=r.toArray(n,i),a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},o.prototype.generate=function(t,e,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=n,n=e,e=null),n&&(n=r.toArray(n,i||"hex"),this._update(n));for(var a=[];a.length<t;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,t);return this._update(n),this._reseed++,r.encode(o,e)}},function(t,e,n){"use strict";var i=n(2),r=n(7).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 i(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?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(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())+" >"}},function(t,e,n){"use strict";var i=n(2),r=n(7),a=r.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(a(t.r&&t.s,"Signature without r or s"),this.r=new i(t.r,16),this.s=new i(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function c(t,e){var n=t[e.place++];if(!(128&n))return n;for(var i=15&n,r=0,a=0,o=e.place;a<i;a++,o++)r<<=8,r|=t[o];return e.place=o,r}function l(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function u(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=r.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;if(c(t,n)+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var a=c(t,n),o=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var l=c(t,n);if(t.length!==l+n.place)return!1;var u=t.slice(n.place,l+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new i(o),this.s=new i(u),this.recoveryParam=null,!0},o.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=l(e),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var i=[2];u(i,e.length),(i=i.concat(e)).push(2),u(i,n.length);var a=i.concat(n),o=[48];return u(o,a.length),o=o.concat(a),r.encode(o,t)}},function(t,e,n){"use strict";var i=n(47),r=n(46),a=n(7),o=a.assert,s=a.parseBytes,c=n(175),l=n(176);function u(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof u))return new u(t);t=r[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}t.exports=u,u.prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),i=this.hashInt(n.messagePrefix(),t),r=this.g.mul(i),a=this.encodePoint(r),o=this.hashInt(a,n.pubBytes(),t).mul(n.priv()),c=i.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:c,Rencoded:a})},u.prototype.verify=function(t,e,n){t=s(t),e=this.makeSignature(e);var i=this.keyFromPublic(n),r=this.hashInt(e.Rencoded(),i.pubBytes(),t),a=this.g.mul(e.S());return e.R().add(i.pub().mul(r)).eq(a)},u.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return a.intFromLE(t.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},u.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},u.prototype.makeSignature=function(t){return t instanceof l?t:new l(this,t)},u.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},u.prototype.decodePoint=function(t){var e=(t=a.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),i=0!=(128&t[e]),r=a.intFromLE(n);return this.curve.pointFromY(r,i)},u.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(t){return a.intFromLE(t)},u.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,n){"use strict";var i=n(7),r=i.assert,a=i.parseBytes,o=i.cachedProperty;function s(t,e){this.eddsa=t,this._secret=a(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=a(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},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(t){return r(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 r(this._secret,"KeyPair is public only"),i.encode(this.secret(),t)},s.prototype.getPublic=function(t){return i.encode(this.pubBytes(),t)},t.exports=s},function(t,e,n){"use strict";var i=n(2),r=n(7),a=r.assert,o=r.cachedProperty,s=r.parseBytes;function c(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)}),a(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}o(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},function(t,e,n){"use strict";var i=n(24);e.certificate=n(187);var r=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=r;var a=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=a;var o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});e.PublicKey=o;var s=i.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())}),c=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});e.PrivateKey=c;var l=i.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=l;var u=i.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=u,e.DSAparam=i.define("DSAparam",function(){this.int()});var f=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=f;var h=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(t,e,n){var i=n(24),r=n(0);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){var e;try{e=n(179).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return r(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i.decoders[t])),this.decoders[t]},a.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(i.encoders[t])),this.encoders[t]},a.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(t){return function(t,e,n){t[e]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var n=e.contentWindow,i=n.eval,r=n.execScript;!i&&r&&(r.call(n,"null"),i=n.eval),forEach(Object_keys(t),function(e){n[e]=t[e]}),forEach(globals,function(e){t[e]&&(n[e]=t[e])});var a=Object_keys(n),o=i.call(n,this.code);return forEach(Object_keys(n),function(e){(e in t||-1===indexOf(a,e))&&(t[e]=n[e])}),forEach(globals,function(e){e in t||defineProp(t,e,n[e])}),document.body.removeChild(e),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),n=this.runInContext(e);return t&&forEach(Object_keys(e),function(n){t[n]=e[n]}),n},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var n=Script(e);return n[t].apply(n,[].slice.call(arguments,1))}}),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(n){e[n]=t[n]}),e}},function(t,e,n){var i=n(0);function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function a(t,e){this.path=t,this.rethrow(e)}e.Reporter=r,r.prototype.isError=function(t){return t instanceof a},r.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,n){var i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},r.prototype.error=function(t){var e,n=this._reporterState,i=t instanceof a;if(e=i?t:new a(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return i||n.errors.push(e),e},r.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(a,Error),a.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,n){var i=n(25).Reporter,r=n(25).EncoderBuffer,a=n(25).DecoderBuffer,o=n(6),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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(t,e){var n={};this._baseState=n,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=l;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var t=this._baseState,e={};u.forEach(function(n){e[n]=t[n]});var n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){var t=this._baseState;c.forEach(function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}},this)},l.prototype._init=function(t){var e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),o.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){var 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&&(o(null===e.children),e.children=n,n.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(n){n==(0|n)&&(n|=0);var i=t[n];e[i]=n}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){l.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),s.forEach(function(t){l.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(n),this}}),l.prototype.use=function(t){o(t);var e=this._baseState;return o(null===e.use),e.use=t,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(t){var e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},l.prototype.explicit=function(t){var e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){var e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){var 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){var e=this._baseState;return o(null===e.key),e.key=t,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(t){var e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},l.prototype.contains=function(t){var e=this._baseState;return o(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var i,r=n.default,o=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(o=this._peekTag(t,c,n.any),t.isError(o))return o}else{var l=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),o=!0}catch(t){o=!1}t.restore(l)}}if(n.obj&&o&&(i=t.enterObject()),o){if(null!==n.explicit){var u=this._decodeTag(t,n.explicit);if(t.isError(u))return u;t=u}var f=t.offset;if(null===n.use&&null===n.choice){if(n.any)l=t.save();var h=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(h))return h;n.any?r=t.raw(l):t=h}if(e&&e.track&&null!==n.tag&&e.track(t.path(),f,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),r=n.any?r:null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),t.isError(r))return r;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)){var d=new a(r);r=this._getUse(n.contains,t._reporterState.obj)._decode(d,e)}}return n.obj&&o&&(r=t.leaveObject(i)),null===n.key||null===r&&!0!==o?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,r),r},l.prototype._decodeGeneric=function(t,e,n){var i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.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,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),o(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){var n=this._baseState,i=null,r=!1;return Object.keys(n.choice).some(function(a){var o=t.save(),s=n.choice[a];try{var c=s._decode(t,e);if(t.isError(c))return!1;i={type:a,value:c},r=!0}catch(e){return t.restore(o),!1}return!0},this),r?i:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},l.prototype._encode=function(t,e,n){var i=this._baseState;if(null===i.default||i.default!==t){var r=this._encodeValue(t,e,n);if(void 0!==r&&!this._skipDefault(r,e,n))return r}},l.prototype._encodeValue=function(t,e,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new i);var a=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}var o=null,s=!1;if(r.any)a=this._createEncoderBuffer(t);else if(r.choice)a=this._encodeChoice(t,e);else if(r.contains)o=this._getUse(r.contains,n)._encode(t,e),s=!0;else if(r.children)o=r.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");var i=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var r=n._encode(t[n._baseState.key],e,t);return e.leaveKey(i),r},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(n){var i=this._baseState;return this._getUse(i.args[0],t)._encode(n,e)},c))}else null!==r.use?a=this._getUse(r.use,n)._encode(t,e):(o=this._encodePrimitive(r.tag,t),s=!0);if(!r.any&&null===r.choice){var l=null!==r.implicit?r.implicit:r.tag,u=null===r.implicit?"universal":"context";null===l?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(a=this._encodeComposite(l,s,u,o))}return null!==r.explicit&&(a=this._encodeComposite(r.explicit,!1,"context",a)),a},l.prototype._encodeChoice=function(t,e){var n=this._baseState,i=n.choice[t.type];return i||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){var 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)}},function(t,e,n){var i=n(80);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i._reverse(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=i._reverse(e.tag)},function(t,e,n){var i=e;i.der=n(81),i.pem=n(184)},function(t,e,n){var i=n(0),r=n(3).Buffer,a=n(81);function o(t){a.call(this,t),this.enc="pem"}i(o,a),t.exports=o,o.prototype.decode=function(t,e){for(var n=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,l=0;l<n.length;l++){var u=n[l].match(o);if(null!==u&&u[2]===i){if(-1!==s){if("END"!==u[1])break;c=l;break}if("BEGIN"!==u[1])break;s=l}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+i);var f=n.slice(s+1,c).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new r(f,"base64");return a.prototype.decode.call(this,h,e)}},function(t,e,n){var i=e;i.der=n(82),i.pem=n(186)},function(t,e,n){var i=n(0),r=n(82);function a(t){r.call(this,t),this.enc="pem"}i(a,r),t.exports=a,a.prototype.encode=function(t,e){for(var n=r.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+e.label+"-----"],a=0;a<n.length;a+=64)i.push(n.slice(a,a+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},function(t,e,n){"use strict";var i=n(24),r=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=i.define("RelativeDistinguishedName",function(){this.setof(a)}),l=i.define("RDNSequence",function(){this.seqof(c)}),u=i.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),f=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))}),h=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),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(h).optional())}),p=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=p},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"}')},function(t,e,n){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(29),s=n(41),c=n(1).Buffer;t.exports=function(t,e){var n,l=t.toString(),u=l.match(i);if(u){var f="aes"+u[1],h=c.from(u[2],"hex"),d=c.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(e,h.slice(0,8),parseInt(u[1],10)).key,b=[],g=s.createDecipheriv(f,p,h);b.push(g.update(d)),b.push(g.final()),n=c.concat(b)}else{var y=l.match(a);n=new c(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(r)[1],data:n}}},function(t,e,n){(function(e){var i=n(2),r=n(45).ec,a=n(31),o=n(83);function s(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,n,c,l,u){var f=a(c);if("ec"===f.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=o[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new r(i),s=n.data.subjectPrivateKey.data;return a.verify(e,t,s)}(t,n,f)}if("dsa"===f.type){if("dsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var r=n.data.p,o=n.data.q,c=n.data.g,l=n.data.pub_key,u=a.signature.decode(t,"der"),f=u.s,h=u.r;s(f,o),s(h,o);var d=i.mont(r),p=f.invm(o);return 0===c.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(l.toRed(d).redPow(h.mul(p).mod(o)).fromRed()).mod(r).mod(o).cmp(h)}(t,n,f)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");n=e.concat([u,n]);for(var h=f.modulus.byteLength(),d=[1],p=0;n.length+d.length+2<h;)d.push(255),p++;d.push(0);for(var b=-1;++b<n.length;)d.push(n[b]);d=new e(d);var g=i.mont(f.modulus);t=(t=new i(t).toRed(g)).redPow(new i(f.publicExponent)),t=new e(t.fromRed().toArray());var y=p<8?1:0;for(h=Math.min(t.length,d.length),t.length!==d.length&&(y=1),b=-1;++b<h;)y|=t[b]^d[b];return 0===y}}).call(this,n(3).Buffer)},function(t,e,n){(function(e){var i=n(45),r=n(2);t.exports=function(t){return new o(t)};var a={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 o(t){this.curveType=a[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function s(t,n,i){Array.isArray(t)||(t=t.toArray());var r=new e(t);if(i&&r.length<i){var a=new e(i-r.length);a.fill(0),r=e.concat([a,r])}return n?r.toString(n):r}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},o.prototype.computeSecret=function(t,n,i){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},o.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)},o.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},o.prototype.setPublicKey=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.keys._importPublic(t),this},o.prototype.setPrivateKey=function(t,n){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var i=new r(t);return i=i.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(i),this}}).call(this,n(3).Buffer)},function(t,e,n){e.publicEncrypt=n(193),e.privateDecrypt=n(194),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},function(t,e,n){var i=n(31),r=n(15),a=n(20),o=n(84),s=n(85),c=n(2),l=n(86),u=n(44),f=n(1).Buffer;t.exports=function(t,e,n){var h;h=t.padding?t.padding:n?1:4;var d,p=i(t);if(4===h)d=function(t,e){var n=t.modulus.byteLength(),i=e.length,l=a("sha1").update(f.alloc(0)).digest(),u=l.length,h=2*u;if(i>n-h-2)throw new Error("message too long");var d=f.alloc(n-i-h-2),p=n-u-1,b=r(u),g=s(f.concat([l,d,f.alloc(1,1),e],p),o(b,p)),y=s(b,o(g,u));return new c(f.concat([f.alloc(1),y,g],n))}(p,e);else if(1===h)d=function(t,e,n){var i,a=e.length,o=t.modulus.byteLength();if(a>o-11)throw new Error("message too long");i=n?f.alloc(o-a-3,255):function(t){var e,n=f.allocUnsafe(t),i=0,a=r(2*t),o=0;for(;i<t;)o===a.length&&(a=r(2*t),o=0),(e=a[o++])&&(n[i++]=e);return n}(o-a-3);return new c(f.concat([f.from([0,n?1:2]),i,f.alloc(1),e],o))}(p,e,n);else{if(3!==h)throw new Error("unknown padding");if((d=new c(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?u(d,p):l(d,p)}},function(t,e,n){var i=n(31),r=n(84),a=n(85),o=n(2),s=n(44),c=n(20),l=n(86),u=n(1).Buffer;t.exports=function(t,e,n){var f;f=t.padding?t.padding:n?1:4;var h,d=i(t),p=d.modulus.byteLength();if(e.length>p||new o(e).cmp(d.modulus)>=0)throw new Error("decryption error");h=n?l(new o(e),d):s(e,d);var b=u.alloc(p-h.length);if(h=u.concat([b,h],p),4===f)return function(t,e){var n=t.modulus.byteLength(),i=c("sha1").update(u.alloc(0)).digest(),o=i.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,o+1),l=e.slice(o+1),f=a(s,r(l,o)),h=a(l,r(f,n-o-1));if(function(t,e){t=u.from(t),e=u.from(e);var n=0,i=t.length;t.length!==e.length&&(n++,i=Math.min(t.length,e.length));var r=-1;for(;++r<i;)n+=t[r]^e[r];return n}(i,h.slice(0,o)))throw new Error("decryption error");var d=o;for(;0===h[d];)d++;if(1!==h[d++])throw new Error("decryption error");return h.slice(d)}(d,h);if(1===f)return function(t,e,n){var i=e.slice(0,2),r=2,a=0;for(;0!==e[r++];)if(r>=e.length){a++;break}var o=e.slice(2,r-1);("0002"!==i.toString("hex")&&!n||"0001"!==i.toString("hex")&&n)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return e.slice(r)}(0,h,n);if(3===f)return h;throw new Error("unknown padding")}},function(t,e,n){"use strict";(function(t,i){function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(1),o=n(15),s=a.Buffer,c=a.kMaxLength,l=t.crypto||t.msCrypto,u=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>u||t<0)throw new TypeError("offset must be a uint32");if(t>c||t>e)throw new RangeError("offset out of range")}function h(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>u||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>c)throw new RangeError("buffer too small")}function d(t,e,n,r){if(i.browser){var a=t.buffer,s=new Uint8Array(a,e,n);return l.getRandomValues(s),r?void i.nextTick(function(){r(null,t)}):t}if(!r)return o(n).copy(t,e),t;o(n,function(n,i){if(n)return r(n);i.copy(t,e),r(null,t)})}l&&l.getRandomValues||!i.browser?(e.randomFill=function(e,n,i,r){if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)r=n,n=0,i=e.length;else if("function"==typeof i)r=i,i=e.length-n;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return f(n,e.length),h(i,n,e.length),d(e,n,i,r)},e.randomFillSync=function(e,n,i){void 0===n&&(n=0);if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(n,e.length),void 0===i&&(i=e.length-n);return h(i,n,e.length),d(e,n,i)}):(e.randomFill=r,e.randomFillSync=r)}).call(this,n(8),n(11))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=c(r),o=c(n(10)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(51));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={display:"none"},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=this;s.eventEmitter.on(s.SHOW_CELL_EDITOR,function(e){var n=t.props.header;if(e.colId===n.id){var i=$(e.targetDiv),r=i.parent(),a=$(o.default.findDOMNode(t));r.append(a);var s=e.rowData;a.val(s[n.name]),t.setState({$targetDiv:i,rowData:s,display:""})}})}},{key:"componentWillUnmount",value:function(){s.eventEmitter.removeAllListeners(s.SHOW_CELL_EDITOR)}},{key:"blur",value:function(){var t=this.state.$targetDiv;if(t){t.css({display:""});var e=o.default.findDOMNode(this).value;t.html(e);var n=this.props.header;this.state.rowData[n.name]=e,this.setState({display:"none"}),window.setDirty&&window.setDirty()}}},{key:"componentDidUpdate",value:function(){""===this.state.display&&o.default.findDOMNode(this).focus()}},{key:"render",value:function(){var t={display:this.state.display,height:"31px",padding:"0px 5px"},e=this.props.header,n=e.editorType,i=e.selectData;switch(n){case"select":return a.default.createElement("select",{style:t,onBlur:this.blur.bind(this),className:"form-control"},i.map(function(t,e){return a.default.createElement("option",{key:e},t)}));case"boolean":return a.default.createElement("select",{onBlur:this.blur.bind(this),className:"form-control"},a.default.createElement("option",{value:"true"},"true"),a.default.createElement("option",{value:"false",selected:"selected"},"false"));case"date":return a.default.createElement("input",{style:t,onBlur:this.blur.bind(this),type:"datetime-local",className:"form-control"});case"number":return a.default.createElement("input",{style:t,onBlur:this.blur.bind(this),type:"number",className:"form-control"});default:return a.default.createElement("input",{style:t,onBlur:this.blur.bind(this),type:"text",className:"form-control"})}}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SAVE=e.DEL_SLAVE=e.UPDATE_SLAVE=e.ADD_SLAVE=e.DEL_MASTER=e.DO_APPROVE=e.UPDATE_MASTER=e.ADD_MASTER=e.LOAD_SLAVE_COMPLETE=e.LOAD_MASTER_COMPLETED=void 0,e.save=function(t,e){return{newVersion:t,project:e,type:u}},e.refreshKnowledgeCache=function(t,e,n,i){var s=window._core_version;s&&(s=(0,a.encrypt)(s));var c=window.parent;c&&c.componentEvent&&c.componentEvent.eventEmitter.emit(c.componentEvent.SHOW_LOADING);$.ajax({url:window._server+"/packageeditor/refreshKnowledgeCache",data:{project:t,packageId:e,comment:n,version:s,active:i},type:"POST",success:function(n){c&&c.componentEvent&&c.componentEvent.eventEmitter.emit(c.componentEvent.HIDE_LOADING);var i=n.clientInfo;i?bootbox.confirm('<h3 class="text-danger">发布操作成功！</h3>项目['+decodeURI(decodeURI(t))+']中配置了如下客户端：<div class="well" style="margin: 5px 0px 5px 0px">'+i+"</div>是否将此次更新的知识包推送到这些客户端中？",function(n){n&&new o.PushDialog(t,e).show()}):bootbox.alert("知识包["+e+"]发布成功!")},error:function(t){c&&c.componentEvent&&c.componentEvent.eventEmitter.emit(c.componentEvent.HIDE_LOADING),(0,r.handleError)(t)}})},e.pushToClients=function(t,e,n,i){var a=window.parent.componentEvent;a.eventEmitter.emit(a.SHOW_LOADING),$.ajax({url:window._server+"/packageeditor/pushKnowledgePackageToClients",data:{project:t,packageId:e,client:n,version:i},type:"POST",success:function(t){a.eventEmitter.emit(a.HIDE_LOADING),f(t)},error:function(t){a.eventEmitter.emit(a.HIDE_LOADING),(0,r.handleError)(t)}})},e.showDeloyResultInfo=f,e.loadClients=function(t,e){var n=window._server+"/packageeditor/loadClients";$.ajax({url:n,data:{project:t},type:"POST",success:function(t){e.call(this,t)},error:function(t){(0,r.handleError)(t)}})},e.saveData=h,e.addMaster=function(t,e){var n=t;return n.resourceItems=[],n.createDate=new Date,h([n],e,"insert")},e.updateMaster=function(t,e){return h([e],t,"update")},e.deleteMaster=function(t,e){return h([],t,"delete",e)},e.deleteSlave=function(t,e,n){return t.resourceItems.splice(e,1),h([t],n,"update")},e.addSlave=function(t,e,n){return t.resourceItems.push(e),h([t],n,"update")},e.updateSlave=function(t,e,n){var i=t.resourceItems[e.rowIndex];return i.name=e.name,i.path=e.path,i.version=e.version,h([t],n,"update")},e.approve=function(t){return $.ajax({url:window._server+"/packageeditor/packageStateChange",data:{packageId:t.packageId,project:t.project,state:t.check},type:"POST",success:function(){},error:function(t){(0,r.handleError)(t)}}),{type:l,data:t}},e.adminCheck=function(t,e){$.ajax({url:window._server+"/packageeditor/admin",success:function(n){n.admin?t():e?e():bootbox.alert("权限不足，只有管理才可能进行此操作！")}})},e.loadMasterData=d,e.loadSimulatorCategoryData=function(t,e){var n=window._core_version;n&&(n=(0,a.encrypt)(n));var i=window._server+"/packageeditor/loadForTestVariableCategories";$.ajax({url:i,type:"POST",data:{files:t,version:n},success:function(t){e(t)},error:function(t){var e=window.parent.componentEvent;e.eventEmitter.emit(e.HIDE_LOADING),(0,r.handleError)(t)}})},e.removeDeployKnowledgePackage=function(t,e){$.ajax({type:"POST",data:{project:t,packageId:e},url:window._server+"/packageeditor/removeDeployKnowledgePackage",success:function(){},error:function(t){(0,r.handleError)(t)}})},e.loadSlaveData=function(t){return{type:c,masterRowData:t}};var i=n(4),r=n(4),a=n(50),o=n(240),s=e.LOAD_MASTER_COMPLETED="load_master_completed",c=e.LOAD_SLAVE_COMPLETE="load_slave_completed",l=(e.ADD_MASTER="add_master",e.UPDATE_MASTER="update_master",e.DO_APPROVE="do_approve"),u=(e.DEL_MASTER="del_master",e.ADD_SLAVE="add_slave",e.UPDATE_SLAVE="update_slave",e.DEL_SLAVE="del_slave",e.SAVE="save");function f(t){var e=$('<div class="well" style="margin: 5px 0px 5px 0px"></div>'),n=function(t){var n=$(t.info);if(e.append(n),!t.result){n.css({cursor:"pointer"}),n.prop("title","点击查看推送失败原因");var i=$("<div>"+t.error+"</div>");e.append(i),i.hide(),n.click(function(){t.showError?(t.showError=!1,i.hide()):(t.showError=!0,i.show())})}},i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){n(o.value)}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}bootbox.dialog({message:"<div></div>",size:"large"}).find(".bootbox-body").append(e)}function h(t,e,n,a){var o='<?xml version="1.0" encoding="utf-8"?>';o+="<res-packages>";return t.forEach(function(t,e){if(o+='<res-package id="'+(0,r.escapeXml)(t.id)+'" name="'+(0,r.escapeXml)(t.name)+'" check="'+t.check+'" create_date="'+(0,i.formatDate)(t.createDate,"yyyy-MM-dd HH:mm:ss")+'"',t.monitor&&(o+=' monitor="true"',o+=' show-log="'+(t.showLog?"true":"false")+'"',o+=' show-fired-flow-node-list="'+(t.showFiredFlowNodeList?"true":"false")+'"',o+=' show-matched-rule-list="'+(t.showMatchedRuleList?"true":"false")+'"',o+=' show-not-match-rule-list="'+(t.showNotMatchRuleList?"true":"false")+'"'),o+=">",t.quickTestData&&(o+="<quick-test-data>",o+="<![CDATA[",o+=JSON.stringify(t.quickTestData),o+="]]>",o+="</quick-test-data>"),t.monitor){var n=!0,a=!1,s=void 0;try{for(var c,l=(t.inputData||[])[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var u=c.value;o+='<input name="'+u.name+'">';var f=!0,h=!1,d=void 0;try{for(var p,b=u.fields[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var g=p.value;o+='<field name="'+g.name+'" label="'+g.label+'"/>'}}catch(t){h=!0,d=t}finally{try{!f&&b.return&&b.return()}finally{if(h)throw d}}o+="</input>"}}catch(t){a=!0,s=t}finally{try{!n&&l.return&&l.return()}finally{if(a)throw s}}var y=!0,m=!1,v=void 0;try{for(var A,w=(t.outputData||[])[Symbol.iterator]();!(y=(A=w.next()).done);y=!0){var M=A.value;o+='<output name="'+M.name+'">';var I=!0,x=!1,C=void 0;try{for(var E,_=M.fields[Symbol.iterator]();!(I=(E=_.next()).done);I=!0){var T=E.value;o+='<field name="'+T.name+'" label="'+T.label+'"/>'}}catch(t){x=!0,C=t}finally{try{!I&&_.return&&_.return()}finally{if(x)throw C}}o+="</output>"}}catch(t){m=!0,v=t}finally{try{!y&&w.return&&w.return()}finally{if(m)throw v}}}if(t.service&&t.service.enabled){o+='<service security="'+(t.service.security||"false")+'"',t.service.security&&(o+=' username="'+(0,r.escapeXml)(t.service.username)+'" password="'+(0,r.escapeXml)(t.service.password)+'"'),o+=">";var D=!0,k=!1,S=void 0;try{for(var N,B=(t.service.inputData||[])[Symbol.iterator]();!(D=(N=B.next()).done);D=!0){var j=N.value;o+='<input name="'+j.name+'">';var R=!0,O=!1,L=void 0;try{for(var P,z=j.fields[Symbol.iterator]();!(R=(P=z.next()).done);R=!0){var Q=P.value;o+='<field name="'+Q.name+'" label="'+Q.label+'"/>'}}catch(t){O=!0,L=t}finally{try{!R&&z.return&&z.return()}finally{if(O)throw L}}o+="</input>"}}catch(t){k=!0,S=t}finally{try{!D&&B.return&&B.return()}finally{if(k)throw S}}var U=!0,Y=!1,F=void 0;try{for(var H,G=(t.service.outputData||[])[Symbol.iterator]();!(U=(H=G.next()).done);U=!0){var W=H.value;o+='<output name="'+W.name+'">';var Z=!0,V=!1,J=void 0;try{for(var $,X=W.fields[Symbol.iterator]();!(Z=($=X.next()).done);Z=!0){var K=$.value;o+='<field name="'+K.name+'" label="'+K.label+'"/>'}}catch(t){V=!0,J=t}finally{try{!Z&&X.return&&X.return()}finally{if(V)throw J}}o+="</output>"}}catch(t){Y=!0,F=t}finally{try{!U&&G.return&&G.return()}finally{if(Y)throw F}}o+="</service>"}t.resourceItems.forEach(function(t,e){o+='<res-package-item name="'+t.name+'" path="'+t.path+'" version="'+t.version+'"/>'}),o+="</res-package>"}),o+="</res-packages>",o=encodeURIComponent(o),function(t){$.ajax({url:window._server+"/packageeditor/saveResourcePackages",type:"POST",data:{xml:o,project:e,op:n,packageId:a},success:function(){"insert"===n&&(window.pageIndex=1e7),t(d(e))},error:function(t){(0,r.handleError)(t)}})}}function d(t,e,n){return e||(e=window.pageIndex),n||(n=window.pageSize),function(i){var a=window._server+"/packageeditor/loadPackages";$.ajax({url:a,type:"POST",data:{project:t,pageIndex:e,pageSize:n},success:function(t){var e=!0,n=!1,r=void 0;try{for(var a,o=(t.resourcePackages||[])[Symbol.iterator]();!(e=(a=o.next()).done);e=!0){var c=a.value;c.quickTestData&&(c.quickTestData=JSON.parse(c.quickTestData))}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}i({type:s,masterData:t.resourcePackages,pageIndex:t.pageIndex,totalPage:t.totalPage,total:t.total,pageSize:t.pageSize})},error:function(t){(0,r.handleError)(t)}})}}},function(t,e,n){var i;i=function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var i,r;i=[n(1),n(3),n(4)],void 0===(r=function(t){return t}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(2)],void 0===(r=function(t){function e(n){if(e.is(n,"function"))return y?n():t.on("raphael.DOMload",n);if(e.is(n,H))return e._engine.create[E](e,n.splice(0,3+e.is(n[0],Y))).add(n);var i=Array.prototype.slice.call(arguments,0);if(e.is(i[i.length-1],"function")){var r=i.pop();return y?r.call(e._engine.create[E](e,i)):t.on("raphael.DOMload",function(){r.call(e._engine.create[E](e,i))})}return e._engine.create[E](e,arguments)}function n(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[M](i)&&(e[i]=n(t[i]));return e}function i(t,e,n){return function i(){var r=Array.prototype.slice.call(arguments,0),a=r.join("␀"),o=i.cache=i.cache||{},s=i.count=i.count||[];return o[M](a)?(function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(s,a),n?n(o[a]):o[a]):(s.length>=1e3&&delete o[s.shift()],s.push(a),o[a]=t[E](e,r),n?n(o[a]):o[a])}}function r(){return this.hex}function a(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4==i?a[3]={x:+t[0],y:+t[1]}:r-2==i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4==i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}function o(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n}function s(t,e,n,i,r,a,s,c,l){null==l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var b=u*f[p]+u,g=o(b,t,n,r,s),y=o(b,e,i,a,c),m=g*g+y*y;d+=h[p]*O.sqrt(m)}return u*d}function c(t,e,n,i,r,a,o,s){if(!(L(t,n)<P(r,o)||P(t,n)>L(r,o)||L(e,i)<P(a,s)||P(e,i)>L(a,s))){var c=(t-n)*(a-s)-(e-i)*(r-o);if(c){var l=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/c,u=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/c,f=+l.toFixed(2),h=+u.toFixed(2);if(!(f<+P(t,n).toFixed(2)||f>+L(t,n).toFixed(2)||f<+P(r,o).toFixed(2)||f>+L(r,o).toFixed(2)||h<+P(e,i).toFixed(2)||h>+L(e,i).toFixed(2)||h<+P(a,s).toFixed(2)||h>+L(a,s).toFixed(2)))return{x:l,y:u}}}}function l(t,n,i){var r=e.bezierBBox(t),a=e.bezierBBox(n);if(!e.isBBoxIntersect(r,a))return i?0:[];for(var o=s.apply(0,t),l=s.apply(0,n),u=L(~~(o/5),1),f=L(~~(l/5),1),h=[],d=[],p={},b=i?0:[],g=0;g<u+1;g++){var y=e.findDotsAtSegment.apply(e,t.concat(g/u));h.push({x:y.x,y:y.y,t:g/u})}for(g=0;g<f+1;g++)y=e.findDotsAtSegment.apply(e,n.concat(g/f)),d.push({x:y.x,y:y.y,t:g/f});for(g=0;g<u;g++)for(var m=0;m<f;m++){var v=h[g],A=h[g+1],w=d[m],M=d[m+1],I=z(A.x-v.x)<.001?"y":"x",x=z(M.x-w.x)<.001?"y":"x",C=c(v.x,v.y,A.x,A.y,w.x,w.y,M.x,M.y);if(C){if(p[C.x.toFixed(4)]==C.y.toFixed(4))continue;p[C.x.toFixed(4)]=C.y.toFixed(4);var E=v.t+z((C[I]-v[I])/(A[I]-v[I]))*(A.t-v.t),_=w.t+z((C[x]-w[x])/(M[x]-w[x]))*(M.t-w.t);E>=0&&E<=1.001&&_>=0&&_<=1.001&&(i?b++:b.push({x:C.x,y:C.y,t1:P(E,1),t2:P(_,1)}))}}return b}function u(t,n,i){t=e._path2curve(t),n=e._path2curve(n);for(var r,a,o,s,c,u,f,h,d,p,b=i?0:[],g=0,y=t.length;g<y;g++){var m=t[g];if("M"==m[0])r=c=m[1],a=u=m[2];else{"C"==m[0]?(d=[r,a].concat(m.slice(1)),r=d[6],a=d[7]):(d=[r,a,r,a,c,u,c,u],r=c,a=u);for(var v=0,A=n.length;v<A;v++){var w=n[v];if("M"==w[0])o=f=w[1],s=h=w[2];else{"C"==w[0]?(p=[o,s].concat(w.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,f,h,f,h],o=f,s=h);var M=l(d,p,i);if(i)b+=M;else{for(var I=0,x=M.length;I<x;I++)M[I].segment1=g,M[I].segment2=v,M[I].bez1=d,M[I].bez2=p;b=b.concat(M)}}}}}return b}function f(t,e,n,i,r,a){null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+i,this.e=+r,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function h(){return this.x+k+this.y+k+this.width+" × "+this.height}function d(t,e,n,i,r,a){function o(t){return((l*t+c)*t+s)*t}var s=3*e,c=3*(i-e)-s,l=1-s-c,u=3*n,f=3*(r-n)-u,h=1-u-f;return function(t,e){var n=function(t,e){var n,i,r,a,u,f;for(r=t,f=0;f<8;f++){if(a=o(r)-t,z(a)<e)return r;if(z(u=(3*l*r+2*c)*r+s)<1e-6)break;r-=a/u}if(i=1,(r=t)<(n=0))return n;if(r>i)return i;for(;n<i;){if(a=o(r),z(a-t)<e)return r;t>a?n=r:i=r,r=(i-n)/2+n}return r}(t,e);return((h*n+f)*n+u)*n}(t,1/(200*a))}function p(t,e){var n=[],i={};if(this.ms=e,this.times=1,t){for(var r in t)t[M](r)&&(i[$(r)]=t[r],n.push($(r)));n.sort(ct)}this.anim=i,this.top=n[n.length-1],this.percents=n}function b(n,i,r,a,o,s){r=$(r);var c,l,u,h,p,b,g=n.ms,y={},m={},A={};if(a)for(I=0,x=ne.length;I<x;I++){var w=ne[I];if(w.el.id==i.id&&w.anim==n){w.percent!=r?(ne.splice(I,1),u=1):l=w,i.attr(w.totalOrigin);break}}else a=+m;for(var I=0,x=n.percents.length;I<x;I++){if(n.percents[I]==r||n.percents[I]>a*n.top){r=n.percents[I],p=n.percents[I-1]||0,g=g/n.top*(r-p),h=n.percents[I+1],c=n.anim[r];break}a&&i.attr(n.anim[n.percents[I]])}if(c){if(l)l.initstatus=a,l.start=new Date-l.ms*a;else{for(var C in c)if(c[M](C)&&(tt[M](C)||i.paper.customAttributes[M](C)))switch(y[C]=i.attr(C),null==y[C]&&(y[C]=q[C]),m[C]=c[C],tt[C]){case Y:A[C]=(m[C]-y[C])/g;break;case"colour":y[C]=e.getRGB(y[C]);var E=e.getRGB(m[C]);A[C]={r:(E.r-y[C].r)/g,g:(E.g-y[C].g)/g,b:(E.b-y[C].b)/g};break;case"path":var T=Nt(y[C],m[C]),D=T[1];for(y[C]=T[0],A[C]=[],I=0,x=y[C].length;I<x;I++){A[C][I]=[0];for(var k=1,B=y[C][I].length;k<B;k++)A[C][I][k]=(D[I][k]-y[C][I][k])/g}break;case"transform":var j=i._,R=Lt(j[C],m[C]);if(R)for(y[C]=R.from,m[C]=R.to,A[C]=[],A[C].real=!0,I=0,x=y[C].length;I<x;I++)for(A[C][I]=[y[C][I][0]],k=1,B=y[C][I].length;k<B;k++)A[C][I][k]=(m[C][I][k]-y[C][I][k])/g;else{var O=i.matrix||new f,L={_:{transform:j.transform},getBBox:function(){return i.getBBox(1)}};y[C]=[O.a,O.b,O.c,O.d,O.e,O.f],Rt(L,m[C]),m[C]=L._.transform,A[C]=[(L.matrix.a-O.a)/g,(L.matrix.b-O.b)/g,(L.matrix.c-O.c)/g,(L.matrix.d-O.d)/g,(L.matrix.e-O.e)/g,(L.matrix.f-O.f)/g]}break;case"csv":var P=S(c[C])[N](v),z=S(y[C])[N](v);if("clip-rect"==C)for(y[C]=z,A[C]=[],I=z.length;I--;)A[C][I]=(P[I]-y[C][I])/g;m[C]=P;break;default:for(P=[][_](c[C]),z=[][_](y[C]),A[C]=[],I=i.paper.customAttributes[C].length;I--;)A[C][I]=((P[I]||0)-(z[I]||0))/g}var Q=c.easing,U=e.easing_formulas[Q];if(!U)if((U=S(Q).match(V))&&5==U.length){var F=U;U=function(t){return d(t,+F[1],+F[2],+F[3],+F[4],g)}}else U=lt;if(w={anim:n,percent:r,timestamp:b=c.start||n.start||+new Date,start:b+(n.del||0),status:0,initstatus:a||0,stop:!1,ms:g,easing:U,from:y,diff:A,to:m,el:i,callback:c.callback,prev:p,next:h,repeat:s||n.times,origin:i.attr(),totalOrigin:o},ne.push(w),a&&!l&&!u&&(w.stop=!0,w.start=new Date-g*a,1==ne.length))return re();u&&(w.start=new Date-w.ms*a),1==ne.length&&ie(re)}t("raphael.anim.start."+i.id,i,n)}}function g(t){for(var e=0;e<ne.length;e++)ne[e].el.paper==t&&ne.splice(e--,1)}e.version="2.2.0",e.eve=t;var y,m,v=/[, ]+/,A={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},w=/\{(\d+)\}/g,M="hasOwnProperty",I={doc:document,win:window},x={was:Object.prototype[M].call(I.win,"Raphael"),is:I.win.Raphael},C=function(){this.ca=this.customAttributes={}},E="apply",_="concat",T="ontouchstart"in I.win||I.win.DocumentTouch&&I.doc instanceof DocumentTouch,D="",k=" ",S=String,N="split",B="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[N](k),j={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},R=S.prototype.toLowerCase,O=Math,L=O.max,P=O.min,z=O.abs,Q=O.pow,U=O.PI,Y="number",F="string",H="array",G=Object.prototype.toString,W=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),Z={NaN:1,Infinity:1,"-Infinity":1},V=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,J=O.round,$=parseFloat,X=parseInt,K=S.prototype.toUpperCase,q=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},tt=e._availableAnimAttrs={blur:Y,"clip-rect":"csv",cx:Y,cy:Y,fill:"colour","fill-opacity":Y,"font-size":Y,height:Y,opacity:Y,path:"path",r:Y,rx:Y,ry:Y,stroke:"colour","stroke-opacity":Y,"stroke-width":Y,transform:"transform",width:Y,x:Y,y:Y},et=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,nt={hs:1,rg:1},it=/,?([achlmqrstvxz]),?/gi,rt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,at=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ot=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,st=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),ct=function(t,e){return $(t)-$(e)},lt=function(t){return t},ut=e._rectPath=function(t,e,n,i,r){return r?[["M",t+r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]]},ft=function(t,e,n,i){return null==i&&(i=n),[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]]},ht=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return ft(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return ft(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return ut(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return ut(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return ut(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return ut(e.x,e.y,e.width,e.height)}},dt=e.mapPath=function(t,e){if(!e)return t;var n,i,r,a,o,s,c;for(r=0,o=(t=Nt(t)).length;r<o;r++)for(a=1,s=(c=t[r]).length;a<s;a+=2)n=e.x(c[a],c[a+1]),i=e.y(c[a],c[a+1]),c[a]=n,c[a+1]=i;return t};if(e._g=I,e.type=I.win.SVGAngle||I.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==e.type){var pt,bt=I.doc.createElement("div");if(bt.innerHTML='<v:shape adj="1"/>',(pt=bt.firstChild).style.behavior="url(#default#VML)",!pt||"object"!=typeof pt.adj)return e.type=D;bt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=C,e.fn=m=C.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=R.call(e))?!Z[M](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||G.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,n,i,r,a,o){if(null==a){var s=t-i,c=n-r;return s||c?(180+180*O.atan2(-c,-s)/U+360)%360:0}return e.angle(t,n,a,o)-e.angle(i,r,a,o)},e.rad=function(t){return t%360*U/180},e.deg=function(t){return Math.round(180*t/U%360*1e3)/1e3},e.snapTo=function(t,n,i){if(i=e.is(i,"finite")?i:10,e.is(t,H)){for(var r=t.length;r--;)if(z(t[r]-n)<=i)return t[r]}else{var a=n%(t=+t);if(a<i)return n-a;if(a>t-i)return n-a+t}return n},e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*O.random()|0;return("x"==t?e:3&e|8).toString(16)}),e.setWindow=function(n){t("raphael.setWindow",e,I.win,n),I.win=n,I.doc=I.win.document,e._engine.initWin&&e._engine.initWin(I.win)};var gt=function(t){if(e.vml){var n,r=/^\s+|\s+$/g;try{var a=new ActiveXObject("htmlfile");a.write("<body>"),a.close(),n=a.body}catch(t){n=createPopup().document.body}var o=n.createTextRange();gt=i(function(t){try{n.style.color=S(t).replace(r,D);var e=o.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=I.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",I.doc.body.appendChild(s),gt=i(function(t){return s.style.color=t,I.doc.defaultView.getComputedStyle(s,D).getPropertyValue("color")})}return gt(t)},yt=function(){return"hsb("+[this.h,this.s,this.b]+")"},mt=function(){return"hsl("+[this.h,this.s,this.l]+")"},vt=function(){return this.hex},At=function(t,n,i){if(null==n&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,n=t.g,t=t.r),null==n&&e.is(t,F)){var r=e.getRGB(t);t=r.r,n=r.g,i=r.b}return(t>1||n>1||i>1)&&(t/=255,n/=255,i/=255),[t,n,i]},wt=function(t,n,i,r){var a={r:t*=255,g:n*=255,b:i*=255,hex:e.rgb(t,n,i),toString:vt};return e.is(r,"finite")&&(a.opacity=r),a};e.color=function(t){var n;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=vt,t},e.hsb2rgb=function(t,e,n,i){var r,a,o,s,c;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,i=t.o,t=t.h),s=(c=n*e)*(1-z((t=(t*=360)%360/60)%2-1)),r=a=o=n-c,wt(r+=[c,s,0,0,s,c][t=~~t],a+=[s,c,c,s,0,0][t],o+=[0,0,s,c,c,s][t],i)},e.hsl2rgb=function(t,e,n,i){var r,a,o,s,c;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),s=(c=2*e*(n<.5?n:1-n))*(1-z((t=(t*=360)%360/60)%2-1)),r=a=o=n-c/2,wt(r+=[c,s,0,0,s,c][t=~~t],a+=[s,c,c,s,0,0][t],o+=[0,0,s,c,c,s][t],i)},e.rgb2hsb=function(t,e,n){var i,r;return t=(n=At(t,e,n))[0],e=n[1],n=n[2],{h:((0==(r=(i=L(t,e,n))-P(t,e,n))?null:i==t?(e-n)/r:i==e?(n-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/i,b:i,toString:yt}},e.rgb2hsl=function(t,e,n){var i,r,a,o;return t=(n=At(t,e,n))[0],e=n[1],n=n[2],i=((r=L(t,e,n))+(a=P(t,e,n)))/2,{h:((0==(o=r-a)?null:r==t?(e-n)/o:r==e?(n-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:i<.5?o/(2*i):o/(2-2*i),l:i,toString:mt}},e._path2string=function(){return this.join(",").replace(it,"$1")},e._preload=function(t,e){var n=I.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,I.doc.body.removeChild(this)},n.onerror=function(){I.doc.body.removeChild(this)},I.doc.body.appendChild(n),n.src=t},e.getRGB=i(function(t){if(!t||(t=S(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:r};!nt[M](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=gt(t));var n,i,a,o,s,c,l=t.match(W);return l?(l[2]&&(a=X(l[2].substring(5),16),i=X(l[2].substring(3,5),16),n=X(l[2].substring(1,3),16)),l[3]&&(a=X((s=l[3].charAt(3))+s,16),i=X((s=l[3].charAt(2))+s,16),n=X((s=l[3].charAt(1))+s,16)),l[4]&&(c=l[4][N](et),n=$(c[0]),"%"==c[0].slice(-1)&&(n*=2.55),i=$(c[1]),"%"==c[1].slice(-1)&&(i*=2.55),a=$(c[2]),"%"==c[2].slice(-1)&&(a*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(o=$(c[3])),c[3]&&"%"==c[3].slice(-1)&&(o/=100)),l[5]?(c=l[5][N](et),n=$(c[0]),"%"==c[0].slice(-1)&&(n*=2.55),i=$(c[1]),"%"==c[1].slice(-1)&&(i*=2.55),a=$(c[2]),"%"==c[2].slice(-1)&&(a*=2.55),("deg"==c[0].slice(-3)||"°"==c[0].slice(-1))&&(n/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(o=$(c[3])),c[3]&&"%"==c[3].slice(-1)&&(o/=100),e.hsb2rgb(n,i,a,o)):l[6]?(c=l[6][N](et),n=$(c[0]),"%"==c[0].slice(-1)&&(n*=2.55),i=$(c[1]),"%"==c[1].slice(-1)&&(i*=2.55),a=$(c[2]),"%"==c[2].slice(-1)&&(a*=2.55),("deg"==c[0].slice(-3)||"°"==c[0].slice(-1))&&(n/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(o=$(c[3])),c[3]&&"%"==c[3].slice(-1)&&(o/=100),e.hsl2rgb(n,i,a,o)):((l={r:n,g:i,b:a,toString:r}).hex="#"+(16777216|a|i<<8|n<<16).toString(16).slice(1),e.is(o,"finite")&&(l.opacity=o),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}},e),e.hsb=i(function(t,n,i){return e.hsb2rgb(t,n,i).hex}),e.hsl=i(function(t,n,i){return e.hsl2rgb(t,n,i).hex}),e.rgb=i(function(t,e,n){function i(t){return t+.5|0}return"#"+(16777216|i(n)|i(e)<<8|i(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var n=Mt(t);if(n.arr)return xt(n.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,H)&&e.is(t[0],H)&&(r=xt(t)),r.length||S(t).replace(rt,function(t,e,n){var a=[],o=e.toLowerCase();if(n.replace(ot,function(t,e){e&&a.push(+e)}),"m"==o&&a.length>2&&(r.push([e][_](a.splice(0,2))),o="l",e="m"==e?"l":"L"),"r"==o)r.push([e][_](a));else for(;a.length>=i[o]&&(r.push([e][_](a.splice(0,i[o]))),i[o]););}),r.toString=e._path2string,n.arr=xt(r),r},e.parseTransformString=i(function(t){if(!t)return null;var n=[];return e.is(t,H)&&e.is(t[0],H)&&(n=xt(t)),n.length||S(t).replace(at,function(t,e,i){var r=[];R.call(e),i.replace(ot,function(t,e){e&&r.push(+e)}),n.push([e][_](r))}),n.toString=e._path2string,n});var Mt=function(t){var e=Mt.ps=Mt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[M](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};e.findDotsAtSegment=function(t,e,n,i,r,a,o,s,c){var l=1-c,u=Q(l,3),f=Q(l,2),h=c*c,d=h*c,p=u*t+3*f*c*n+3*l*c*c*r+d*o,b=u*e+3*f*c*i+3*l*c*c*a+d*s,g=t+2*c*(n-t)+h*(r-2*n+t),y=e+2*c*(i-e)+h*(a-2*i+e),m=n+2*c*(r-n)+h*(o-2*r+n),v=i+2*c*(a-i)+h*(s-2*a+i),A=l*t+c*n,w=l*e+c*i,M=l*r+c*o,I=l*a+c*s,x=90-180*O.atan2(g-m,y-v)/U;return(g>m||y<v)&&(x+=180),{x:p,y:b,m:{x:g,y:y},n:{x:m,y:v},start:{x:A,y:w},end:{x:M,y:I},alpha:x}},e.bezierBBox=function(t,n,i,r,a,o,s,c){e.is(t,"array")||(t=[t,n,i,r,a,o,s,c]);var l=St.apply(null,t);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},e.isPointInsideBBox=function(t,e,n){return e>=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},e.isBBoxIntersect=function(t,n){var i=e.isPointInsideBBox;return i(n,t.x,t.y)||i(n,t.x2,t.y)||i(n,t.x,t.y2)||i(n,t.x2,t.y2)||i(t,n.x,n.y)||i(t,n.x2,n.y)||i(t,n.x,n.y2)||i(t,n.x2,n.y2)||(t.x<n.x2&&t.x>n.x||n.x<t.x2&&n.x>t.x)&&(t.y<n.y2&&t.y>n.y||n.y<t.y2&&n.y>t.y)},e.pathIntersection=function(t,e){return u(t,e)},e.pathIntersectionNumber=function(t,e){return u(t,e,1)},e.isPointInsidePath=function(t,n,i){var r=e.pathBBox(t);return e.isPointInsideBBox(r,n,i)&&u(t,[["M",n,i],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var It=e.pathBBox=function(t){var e=Mt(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,r=0,a=0,o=[],s=[],c=0,l=(t=Nt(t)).length;c<l;c++)if("M"==(i=t[c])[0])r=i[1],a=i[2],o.push(r),s.push(a);else{var u=St(r,a,i[1],i[2],i[3],i[4],i[5],i[6]);o=o[_](u.min.x,u.max.x),s=s[_](u.min.y,u.max.y),r=i[5],a=i[6]}var f=P[E](0,o),h=P[E](0,s),d=L[E](0,o),p=L[E](0,s),b=d-f,g=p-h,y={x:f,y:h,x2:d,y2:p,width:b,height:g,cx:f+b/2,cy:h+g/2};return e.bbox=n(y),y},xt=function(t){var i=n(t);return i.toString=e._path2string,i},Ct=e._pathToRelative=function(t){var n=Mt(t);if(n.rel)return xt(n.rel);e.is(t,H)&&e.is(t&&t[0],H)||(t=e.parsePathString(t));var i=[],r=0,a=0,o=0,s=0,c=0;"M"==t[0][0]&&(o=r=t[0][1],s=a=t[0][2],c++,i.push(["M",r,a]));for(var l=c,u=t.length;l<u;l++){var f=i[l]=[],h=t[l];if(h[0]!=R.call(h[0]))switch(f[0]=R.call(h[0]),f[0]){case"a":f[1]=h[1],f[2]=h[2],f[3]=h[3],f[4]=h[4],f[5]=h[5],f[6]=+(h[6]-r).toFixed(3),f[7]=+(h[7]-a).toFixed(3);break;case"v":f[1]=+(h[1]-a).toFixed(3);break;case"m":o=h[1],s=h[2];default:for(var d=1,p=h.length;d<p;d++)f[d]=+(h[d]-(d%2?r:a)).toFixed(3)}else{f=i[l]=[],"m"==h[0]&&(o=h[1]+r,s=h[2]+a);for(var b=0,g=h.length;b<g;b++)i[l][b]=h[b]}var y=i[l].length;switch(i[l][0]){case"z":r=o,a=s;break;case"h":r+=+i[l][y-1];break;case"v":a+=+i[l][y-1];break;default:r+=+i[l][y-2],a+=+i[l][y-1]}}return i.toString=e._path2string,n.rel=xt(i),i},Et=e._pathToAbsolute=function(t){var n=Mt(t);if(n.abs)return xt(n.abs);if(e.is(t,H)&&e.is(t&&t[0],H)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var i=[],r=0,o=0,s=0,c=0,l=0;"M"==t[0][0]&&(s=r=+t[0][1],c=o=+t[0][2],l++,i[0]=["M",r,o]);for(var u,f,h=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),d=l,p=t.length;d<p;d++){if(i.push(u=[]),(f=t[d])[0]!=K.call(f[0]))switch(u[0]=K.call(f[0]),u[0]){case"A":u[1]=f[1],u[2]=f[2],u[3]=f[3],u[4]=f[4],u[5]=f[5],u[6]=+(f[6]+r),u[7]=+(f[7]+o);break;case"V":u[1]=+f[1]+o;break;case"H":u[1]=+f[1]+r;break;case"R":for(var b=[r,o][_](f.slice(1)),g=2,y=b.length;g<y;g++)b[g]=+b[g]+r,b[++g]=+b[g]+o;i.pop(),i=i[_](a(b,h));break;case"M":s=+f[1]+r,c=+f[2]+o;default:for(g=1,y=f.length;g<y;g++)u[g]=+f[g]+(g%2?r:o)}else if("R"==f[0])b=[r,o][_](f.slice(1)),i.pop(),i=i[_](a(b,h)),u=["R"][_](f.slice(-2));else for(var m=0,v=f.length;m<v;m++)u[m]=f[m];switch(u[0]){case"Z":r=s,o=c;break;case"H":r=u[1];break;case"V":o=u[1];break;case"M":s=u[u.length-2],c=u[u.length-1];default:r=u[u.length-2],o=u[u.length-1]}}return i.toString=e._path2string,n.abs=xt(i),i},_t=function(t,e,n,i){return[t,e,n,i,n,i]},Tt=function(t,e,n,i,r,a){var o=1/3,s=2/3;return[o*t+s*n,o*e+s*i,o*r+s*n,o*a+s*i,r,a]},Dt=function(t,e,n,r,a,o,s,c,l,u){var f,h=120*U/180,d=U/180*(+a||0),p=[],b=i(function(t,e,n){return{x:t*O.cos(n)-e*O.sin(n),y:t*O.sin(n)+e*O.cos(n)}});if(u)x=u[0],C=u[1],M=u[2],I=u[3];else{t=(f=b(t,e,-d)).x,e=f.y,c=(f=b(c,l,-d)).x,l=f.y,O.cos(U/180*a),O.sin(U/180*a);var g=(t-c)/2,y=(e-l)/2,m=g*g/(n*n)+y*y/(r*r);m>1&&(n*=m=O.sqrt(m),r*=m);var v=n*n,A=r*r,w=(o==s?-1:1)*O.sqrt(z((v*A-v*y*y-A*g*g)/(v*y*y+A*g*g))),M=w*n*y/r+(t+c)/2,I=w*-r*g/n+(e+l)/2,x=O.asin(((e-I)/r).toFixed(9)),C=O.asin(((l-I)/r).toFixed(9));(x=t<M?U-x:x)<0&&(x=2*U+x),(C=c<M?U-C:C)<0&&(C=2*U+C),s&&x>C&&(x-=2*U),!s&&C>x&&(C-=2*U)}var E=C-x;if(z(E)>h){var T=C,D=c,k=l;C=x+h*(s&&C>x?1:-1),c=M+n*O.cos(C),l=I+r*O.sin(C),p=Dt(c,l,n,r,a,0,s,D,k,[C,T,M,I])}E=C-x;var S=O.cos(x),B=O.sin(x),j=O.cos(C),R=O.sin(C),L=O.tan(E/4),P=4/3*n*L,Q=4/3*r*L,Y=[t,e],F=[t+P*B,e-Q*S],H=[c+P*R,l-Q*j],G=[c,l];if(F[0]=2*Y[0]-F[0],F[1]=2*Y[1]-F[1],u)return[F,H,G][_](p);for(var W=[],Z=0,V=(p=[F,H,G][_](p).join()[N](",")).length;Z<V;Z++)W[Z]=Z%2?b(p[Z-1],p[Z],d).y:b(p[Z],p[Z+1],d).x;return W},kt=function(t,e,n,i,r,a,o,s,c){var l=1-c;return{x:Q(l,3)*t+3*Q(l,2)*c*n+3*l*c*c*r+Q(c,3)*o,y:Q(l,3)*e+3*Q(l,2)*c*i+3*l*c*c*a+Q(c,3)*s}},St=i(function(t,e,n,i,r,a,o,s){var c,l=r-2*n+t-(o-2*r+n),u=2*(n-t)-2*(r-n),f=t-n,h=(-u+O.sqrt(u*u-4*l*f))/2/l,d=(-u-O.sqrt(u*u-4*l*f))/2/l,p=[e,s],b=[t,o];return z(h)>"1e12"&&(h=.5),z(d)>"1e12"&&(d=.5),h>0&&h<1&&(c=kt(t,e,n,i,r,a,o,s,h),b.push(c.x),p.push(c.y)),d>0&&d<1&&(c=kt(t,e,n,i,r,a,o,s,d),b.push(c.x),p.push(c.y)),l=a-2*i+e-(s-2*a+i),f=e-i,h=(-(u=2*(i-e)-2*(a-i))+O.sqrt(u*u-4*l*f))/2/l,d=(-u-O.sqrt(u*u-4*l*f))/2/l,z(h)>"1e12"&&(h=.5),z(d)>"1e12"&&(d=.5),h>0&&h<1&&(c=kt(t,e,n,i,r,a,o,s,h),b.push(c.x),p.push(c.y)),d>0&&d<1&&(c=kt(t,e,n,i,r,a,o,s,d),b.push(c.x),p.push(c.y)),{min:{x:P[E](0,b),y:P[E](0,p)},max:{x:L[E](0,b),y:L[E](0,p)}}}),Nt=e._path2curve=i(function(t,e){var n=!e&&Mt(t);if(!e&&n.curve)return xt(n.curve);for(var i=Et(t),r=e&&Et(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][_](Dt[E](0,[e.x,e.y][_](t.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r][_](t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][_](Tt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][_](Tt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][_](_t(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][_](_t(e.x,e.y,t[1],e.y));break;case"V":t=["C"][_](_t(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][_](_t(e.x,e.y,e.X,e.Y))}return t},c=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)u[e]="A",r&&(f[e]="A"),t.splice(e++,0,["C"][_](n.splice(0,6)));t.splice(e,1),b=L(i.length,r&&r.length||0)}},l=function(t,e,n,a,o){t&&e&&"M"==t[o][0]&&"M"!=e[o][0]&&(e.splice(o,0,["M",a.x,a.y]),n.bx=0,n.by=0,n.x=t[o][1],n.y=t[o][2],b=L(i.length,r&&r.length||0))},u=[],f=[],h="",d="",p=0,b=L(i.length,r&&r.length||0);p<b;p++){i[p]&&(h=i[p][0]),"C"!=h&&(u[p]=h,p&&(d=u[p-1])),i[p]=s(i[p],a,d),"A"!=u[p]&&"C"==h&&(u[p]="C"),c(i,p),r&&(r[p]&&(h=r[p][0]),"C"!=h&&(f[p]=h,p&&(d=f[p-1])),r[p]=s(r[p],o,d),"A"!=f[p]&&"C"==h&&(f[p]="C"),c(r,p)),l(i,r,a,o,p),l(r,i,o,a,p);var g=i[p],y=r&&r[p],m=g.length,v=r&&y.length;a.x=g[m-2],a.y=g[m-1],a.bx=$(g[m-4])||a.x,a.by=$(g[m-3])||a.y,o.bx=r&&($(y[v-4])||o.x),o.by=r&&($(y[v-3])||o.y),o.x=r&&y[v-2],o.y=r&&y[v-1]}return r||(n.curve=xt(i)),r?[i,r]:i},null,xt),Bt=(e._parseDots=i(function(t){for(var n=[],i=0,r=t.length;i<r;i++){var a={},o=t[i].match(/^([^:]*):?([\d\.]*)/);if(a.color=e.getRGB(o[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,o[2]&&(a.offset=o[2]+"%"),n.push(a)}for(i=1,r=n.length-1;i<r;i++)if(!n[i].offset){for(var s=$(n[i-1].offset||0),c=0,l=i+1;l<r;l++)if(n[l].offset){c=n[l].offset;break}c||(c=100,l=r);for(var u=((c=$(c))-s)/(l-i+1);i<l;i++)s+=u,n[i].offset=s+"%"}return n}),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),jt=(e._tofront=function(t,e){e.top!==t&&(Bt(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(Bt(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,n){Bt(t,n),e==n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,n){Bt(t,n),e==n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var n=It(t),i={_:{transform:D},getBBox:function(){return n}};return Rt(i,e),i.matrix}),Rt=(e.transformPath=function(t,e){return dt(t,jt(t,e))},e._extractTransform=function(t,n){if(null==n)return t._.transform;n=S(n).replace(/\.{3}|\u2026/g,t._.transform||D);var i,r,a=e.parseTransformString(n),o=0,s=1,c=1,l=t._,u=new f;if(l.transform=a||[],a)for(var h=0,d=a.length;h<d;h++){var p,b,g,y,m,v=a[h],A=v.length,w=S(v[0]).toLowerCase(),M=v[0]!=w,I=M?u.invert():0;"t"==w&&3==A?M?(p=I.x(0,0),b=I.y(0,0),g=I.x(v[1],v[2]),y=I.y(v[1],v[2]),u.translate(g-p,y-b)):u.translate(v[1],v[2]):"r"==w?2==A?(m=m||t.getBBox(1),u.rotate(v[1],m.x+m.width/2,m.y+m.height/2),o+=v[1]):4==A&&(M?(g=I.x(v[2],v[3]),y=I.y(v[2],v[3]),u.rotate(v[1],g,y)):u.rotate(v[1],v[2],v[3]),o+=v[1]):"s"==w?2==A||3==A?(m=m||t.getBBox(1),u.scale(v[1],v[A-1],m.x+m.width/2,m.y+m.height/2),s*=v[1],c*=v[A-1]):5==A&&(M?(g=I.x(v[3],v[4]),y=I.y(v[3],v[4]),u.scale(v[1],v[2],g,y)):u.scale(v[1],v[2],v[3],v[4]),s*=v[1],c*=v[2]):"m"==w&&7==A&&u.add(v[1],v[2],v[3],v[4],v[5],v[6]),l.dirtyT=1,t.matrix=u}t.matrix=u,l.sx=s,l.sy=c,l.deg=o,l.dx=i=u.e,l.dy=r=u.f,1==s&&1==c&&!o&&l.bbox?(l.bbox.x+=+i,l.bbox.y+=+r):l.dirtyT=1}),Ot=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Lt=e._equaliseTransform=function(t,n){n=S(n).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],n=e.parseTransformString(n)||[];for(var i,r,a,o,s=L(t.length,n.length),c=[],l=[],u=0;u<s;u++){if(a=t[u]||Ot(n[u]),o=n[u]||Ot(a),a[0]!=o[0]||"r"==a[0].toLowerCase()&&(a[2]!=o[2]||a[3]!=o[3])||"s"==a[0].toLowerCase()&&(a[3]!=o[3]||a[4]!=o[4]))return;for(c[u]=[],l[u]=[],i=0,r=L(a.length,o.length);i<r;i++)i in a&&(c[u][i]=a[i]),i in o&&(l[u][i]=o[i])}return{from:c,to:l}};e._getContainer=function(t,n,i,r){var a;if(null!=(a=null!=r||e.is(t,"object")?t:I.doc.getElementById(t)))return a.tagName?null==n?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:n,height:i}:{container:1,x:t,y:n,width:i,height:r}},e.pathToRelative=Ct,e._engine={},e.path2curve=Nt,e.matrix=function(t,e,n,i,r,a){return new f(t,e,n,i,r,a)},function(t){function n(t){return t[0]*t[0]+t[1]*t[1]}function i(t){var e=O.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,n,i,r,a){var o,s,c,l,u=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[t,n,r],[e,i,a],[0,0,1]];for(t&&t instanceof f&&(d=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(l=0,c=0;c<3;c++)l+=h[o][c]*d[c][s];u[o][s]=l}this.a=u[0][0],this.b=u[1][0],this.c=u[0][1],this.d=u[1][1],this.e=u[0][2],this.f=u[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new f(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new f(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,n,i){null==e&&(e=t),(n||i)&&this.add(1,0,0,1,n,i),this.add(t,0,0,e,0,0),(n||i)&&this.add(1,0,0,1,-n,-i)},t.rotate=function(t,n,i){t=e.rad(t),n=n||0,i=i||0;var r=+O.cos(t).toFixed(9),a=+O.sin(t).toFixed(9);this.add(r,a,-a,r,n,i),this.add(1,0,0,1,-n,-i)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[S.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=O.sqrt(n(r[0])),i(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=O.sqrt(n(r[1])),i(r[1]),t.shear/=t.scaley;var a=-r[0][1],o=r[1][1];return o<0?(t.rotate=e.deg(O.acos(o)),a<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(O.asin(a)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[N]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:D)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:D)+(e.rotate?"r"+[e.rotate,0,0]:D)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(f.prototype);for(var Pt=function(){this.returnValue=!1},zt=function(){return this.originalEvent.preventDefault()},Qt=function(){this.cancelBubble=!0},Ut=function(){return this.originalEvent.stopPropagation()},Yt=function(t){var e=I.doc.documentElement.scrollTop||I.doc.body.scrollTop,n=I.doc.documentElement.scrollLeft||I.doc.body.scrollLeft;return{x:t.clientX+n,y:t.clientY+e}},Ft=I.doc.addEventListener?function(t,e,n,i){var r=function(t){var e=Yt(t);return n.call(i,t,e.x,e.y)};if(t.addEventListener(e,r,!1),T&&j[e]){var a=function(e){for(var r=Yt(e),a=e,o=0,s=e.targetTouches&&e.targetTouches.length;o<s;o++)if(e.targetTouches[o].target==t){(e=e.targetTouches[o]).originalEvent=a,e.preventDefault=zt,e.stopPropagation=Ut;break}return n.call(i,e,r.x,r.y)};t.addEventListener(j[e],a,!1)}return function(){return t.removeEventListener(e,r,!1),T&&j[e]&&t.removeEventListener(j[e],a,!1),!0}}:I.doc.attachEvent?function(t,e,n,i){var r=function(t){t=t||I.win.event;var e=I.doc.documentElement.scrollTop||I.doc.body.scrollTop,r=I.doc.documentElement.scrollLeft||I.doc.body.scrollLeft,a=t.clientX+r,o=t.clientY+e;return t.preventDefault=t.preventDefault||Pt,t.stopPropagation=t.stopPropagation||Qt,n.call(i,t,a,o)};return t.attachEvent("on"+e,r),function(){return t.detachEvent("on"+e,r),!0}}:void 0,Ht=[],Gt=function(e){for(var n,i=e.clientX,r=e.clientY,a=I.doc.documentElement.scrollTop||I.doc.body.scrollTop,o=I.doc.documentElement.scrollLeft||I.doc.body.scrollLeft,s=Ht.length;s--;){if(n=Ht[s],T&&e.touches){for(var c,l=e.touches.length;l--;)if((c=e.touches[l]).identifier==n.el._drag.id){i=c.clientX,r=c.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var u,f=n.el.node,h=f.nextSibling,d=f.parentNode,p=f.style.display;I.win.opera&&d.removeChild(f),f.style.display="none",u=n.el.paper.getElementByPoint(i,r),f.style.display=p,I.win.opera&&(h?d.insertBefore(f,h):d.appendChild(f)),u&&t("raphael.drag.over."+n.el.id,n.el,u),i+=o,r+=a,t("raphael.drag.move."+n.el.id,n.move_scope||n.el,i-n.el._drag.x,r-n.el._drag.y,i,r,e)}},Wt=function(n){e.unmousemove(Gt).unmouseup(Wt);for(var i,r=Ht.length;r--;)(i=Ht[r]).el._drag={},t("raphael.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,n);Ht=[]},Zt=e.el={},Vt=B.length;Vt--;)!function(t){e[t]=Zt[t]=function(n,i){return e.is(n,"function")&&(this.events=this.events||[],this.events.push({name:t,f:n,unbind:Ft(this.shape||this.node||I.doc,t,n,i||this)})),this},e["un"+t]=Zt["un"+t]=function(n){for(var i=this.events||[],r=i.length;r--;)i[r].name!=t||!e.is(n,"undefined")&&i[r].f!=n||(i[r].unbind(),i.splice(r,1),!i.length&&delete this.events);return this}}(B[Vt]);Zt.data=function(n,i){var r=st[this.id]=st[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(e.is(n,"object")){for(var a in n)n[M](a)&&this.data(a,n[a]);return this}return t("raphael.data.get."+this.id,this,r[n],n),r[n]}return r[n]=i,t("raphael.data.set."+this.id,this,i,n),this},Zt.removeData=function(t){return null==t?st[this.id]={}:st[this.id]&&delete st[this.id][t],this},Zt.getData=function(){return n(st[this.id]||{})},Zt.hover=function(t,e,n,i){return this.mouseover(t,n).mouseout(e,i||n)},Zt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Jt=[];Zt.drag=function(n,i,r,a,o,s){function c(c){(c.originalEvent||c).preventDefault();var l=c.clientX,u=c.clientY,f=I.doc.documentElement.scrollTop||I.doc.body.scrollTop,h=I.doc.documentElement.scrollLeft||I.doc.body.scrollLeft;if(this._drag.id=c.identifier,T&&c.touches)for(var d,p=c.touches.length;p--;)if(d=c.touches[p],this._drag.id=d.identifier,d.identifier==this._drag.id){l=d.clientX,u=d.clientY;break}this._drag.x=l+h,this._drag.y=u+f,!Ht.length&&e.mousemove(Gt).mouseup(Wt),Ht.push({el:this,move_scope:a,start_scope:o,end_scope:s}),i&&t.on("raphael.drag.start."+this.id,i),n&&t.on("raphael.drag.move."+this.id,n),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,o||a||this,c.clientX+h,c.clientY+f,c)}return this._drag={},Jt.push({el:this,start:c}),this.mousedown(c),this},Zt.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},Zt.undrag=function(){for(var n=Jt.length;n--;)Jt[n].el==this&&(this.unmousedown(Jt[n].start),Jt.splice(n,1),t.unbind("raphael.drag.*."+this.id));!Jt.length&&e.unmousemove(Gt).unmouseup(Wt),Ht=[]},m.circle=function(t,n,i){var r=e._engine.circle(this,t||0,n||0,i||0);return this.__set__&&this.__set__.push(r),r},m.rect=function(t,n,i,r,a){var o=e._engine.rect(this,t||0,n||0,i||0,r||0,a||0);return this.__set__&&this.__set__.push(o),o},m.ellipse=function(t,n,i,r){var a=e._engine.ellipse(this,t||0,n||0,i||0,r||0);return this.__set__&&this.__set__.push(a),a},m.path=function(t){t&&!e.is(t,F)&&!e.is(t[0],H)&&(t+=D);var n=e._engine.path(e.format[E](e,arguments),this);return this.__set__&&this.__set__.push(n),n},m.image=function(t,n,i,r,a){var o=e._engine.image(this,t||"about:blank",n||0,i||0,r||0,a||0);return this.__set__&&this.__set__.push(o),o},m.text=function(t,n,i){var r=e._engine.text(this,t||0,n||0,S(i));return this.__set__&&this.__set__.push(r),r},m.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var n=new oe(t);return this.__set__&&this.__set__.push(n),n.paper=this,n.type="set",n},m.setStart=function(t){this.__set__=t||this.set()},m.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},m.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},m.setSize=function(t,n){return e._engine.setSize.call(this,t,n)},m.setViewBox=function(t,n,i,r,a){return e._engine.setViewBox.call(this,t,n,i,r,a)},m.top=m.bottom=null,m.raphael=e,m.getElementByPoint=function(t,e){var n=this,i=n.canvas,r=I.doc.elementFromPoint(t,e);if(I.win.opera&&"svg"==r.tagName){var a=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,i=n.body,r=n.documentElement,a=r.clientTop||i.clientTop||0,o=r.clientLeft||i.clientLeft||0;return{y:e.top+(I.win.pageYOffset||r.scrollTop||i.scrollTop)-a,x:e.left+(I.win.pageXOffset||r.scrollLeft||i.scrollLeft)-o}}(i),o=i.createSVGRect();o.x=t-a.x,o.y=e-a.y,o.width=o.height=1;var s=i.getIntersectionList(o,null);s.length&&(r=s[s.length-1])}if(!r)return null;for(;r.parentNode&&r!=i.parentNode&&!r.raphael;)r=r.parentNode;return r==n.canvas.parentNode&&(r=i),r&&r.raphael?n.getById(r.raphaelid):null},m.getElementsByBBox=function(t){var n=this.set();return this.forEach(function(i){e.isBBoxIntersect(i.getBBox(),t)&&n.push(i)}),n},m.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},m.forEach=function(t,e){for(var n=this.bottom;n;){if(!1===t.call(e,n))return this;n=n.next}return this},m.getElementsByPoint=function(t,e){var n=this.set();return this.forEach(function(i){i.isPointInside(t,e)&&n.push(i)}),n},Zt.isPointInside=function(t,n){var i=this.realPath=ht[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(i=e.transformPath(i,this.attr("transform"))),e.isPointInsidePath(i,t,n)},Zt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=ht[this.type](this),e.bboxwt=It(this.realPath),e.bboxwt.toString=h,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=ht[this.type](this)),e.bbox=It(dt(this.realPath,this.matrix)),e.bbox.toString=h,e.dirty=e.dirtyT=0),e.bbox)},Zt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Zt.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},n=e.width/2,i=this.paper,r=i.set(),a=this.realPath||ht[this.type](this);a=this.matrix?dt(a,this.matrix):a;for(var o=1;o<n+1;o++)r.push(i.path(a).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/n*o).toFixed(3),opacity:+(e.opacity/n).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var $t=function(t,n,i,r,a,o,c,l,u){return null==u?s(t,n,i,r,a,o,c,l):e.findDotsAtSegment(t,n,i,r,a,o,c,l,function(t,e,n,i,r,a,o,c,l){if(!(l<0||s(t,e,n,i,r,a,o,c)<l)){var u,f=.5,h=1-f;for(u=s(t,e,n,i,r,a,o,c,h);z(u-l)>.01;)u=s(t,e,n,i,r,a,o,c,h+=(u<l?1:-1)*(f/=2));return h}}(t,n,i,r,a,o,c,l,u))},Xt=function(t,n){return function(i,r,a){for(var o,s,c,l,u,f="",h={},d=0,p=0,b=(i=Nt(i)).length;p<b;p++){if("M"==(c=i[p])[0])o=+c[1],s=+c[2];else{if(d+(l=$t(o,s,c[1],c[2],c[3],c[4],c[5],c[6]))>r){if(n&&!h.start){if(f+=["C"+(u=$t(o,s,c[1],c[2],c[3],c[4],c[5],c[6],r-d)).start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],a)return f;h.start=f,f=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,c[5],c[6]].join(),d+=l,o=+c[5],s=+c[6];continue}if(!t&&!n)return{x:(u=$t(o,s,c[1],c[2],c[3],c[4],c[5],c[6],r-d)).x,y:u.y,alpha:u.alpha}}d+=l,o=+c[5],s=+c[6]}f+=c.shift()+c}return h.end=f,(u=t?d:n?h:e.findDotsAtSegment(o,s,c[0],c[1],c[2],c[3],c[4],c[5],1)).alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},Kt=Xt(1),qt=Xt(),te=Xt(0,1);e.getTotalLength=Kt,e.getPointAtLength=qt,e.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return te(t,e).end;var i=te(t,n,1);return e?te(i,e).end:i},Zt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Kt(t)},Zt.getPointAtLength=function(t){var e=this.getPath();if(e)return qt(e,t)},Zt.getPath=function(){var t,n=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(t=n(this)),t},Zt.getSubpath=function(t,n){var i=this.getPath();if(i)return e.getSubpath(i,t,n)};var ee=e.easing_formulas={linear:function(t){return t},"<":function(t){return Q(t,1.7)},">":function(t){return Q(t,.48)},"<>":function(t){var e=.48-t/1.04,n=O.sqrt(.1734+e*e),i=n-e,r=-n-e,a=Q(z(i),1/3)*(i<0?-1:1)+Q(z(r),1/3)*(r<0?-1:1)+.5;return 3*(1-a)*a*a+a*a*a},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:Q(2,-10*t)*O.sin(2*U*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375}};ee.easeIn=ee["ease-in"]=ee["<"],ee.easeOut=ee["ease-out"]=ee[">"],ee.easeInOut=ee["ease-in-out"]=ee["<>"],ee["back-in"]=ee.backIn,ee["back-out"]=ee.backOut;var ne=[],ie=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},re=function(){for(var n=+new Date,i=0;i<ne.length;i++){var r=ne[i];if(!r.el.removed&&!r.paused){var a,o,s=n-r.start,c=r.ms,l=r.easing,u=r.from,f=r.diff,h=r.to,d=(r.t,r.el),p={},g={};if(r.initstatus?(s=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*c,r.status=r.initstatus,delete r.initstatus,r.stop&&ne.splice(i--,1)):r.status=(r.prev+(r.percent-r.prev)*(s/c))/r.anim.top,!(s<0))if(s<c){var y=l(s/c);for(var m in u)if(u[M](m)){switch(tt[m]){case Y:a=+u[m]+y*c*f[m];break;case"colour":a="rgb("+[ae(J(u[m].r+y*c*f[m].r)),ae(J(u[m].g+y*c*f[m].g)),ae(J(u[m].b+y*c*f[m].b))].join(",")+")";break;case"path":a=[];for(var v=0,A=u[m].length;v<A;v++){a[v]=[u[m][v][0]];for(var w=1,I=u[m][v].length;w<I;w++)a[v][w]=+u[m][v][w]+y*c*f[m][v][w];a[v]=a[v].join(k)}a=a.join(k);break;case"transform":if(f[m].real)for(a=[],v=0,A=u[m].length;v<A;v++)for(a[v]=[u[m][v][0]],w=1,I=u[m][v].length;w<I;w++)a[v][w]=u[m][v][w]+y*c*f[m][v][w];else{var x=function(t){return+u[m][t]+y*c*f[m][t]};a=[["m",x(0),x(1),x(2),x(3),x(4),x(5)]]}break;case"csv":if("clip-rect"==m)for(a=[],v=4;v--;)a[v]=+u[m][v]+y*c*f[m][v];break;default:var C=[][_](u[m]);for(a=[],v=d.paper.customAttributes[m].length;v--;)a[v]=+C[v]+y*c*f[m][v]}p[m]=a}d.attr(p),function(e,n,i){setTimeout(function(){t("raphael.anim.frame."+e,n,i)})}(d.id,d,r.anim)}else{if(function(n,i,r){setTimeout(function(){t("raphael.anim.frame."+i.id,i,r),t("raphael.anim.finish."+i.id,i,r),e.is(n,"function")&&n.call(i)})}(r.callback,d,r.anim),d.attr(h),ne.splice(i--,1),r.repeat>1&&!r.next){for(o in h)h[M](o)&&(g[o]=r.totalOrigin[o]);r.el.attr(g),b(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&b(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}ne.length&&ie(re)},ae=function(t){return t>255?255:t<0?0:t};Zt.animateWith=function(t,n,i,r,a,o){var s=this;if(s.removed)return o&&o.call(s),s;var c=i instanceof p?i:e.animation(i,r,a,o);b(c,s,c.percents[0],null,s.attr());for(var l=0,u=ne.length;l<u;l++)if(ne[l].anim==n&&ne[l].el==t){ne[u-1].start=ne[l].start;break}return s},Zt.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},p.prototype.delay=function(t){var e=new p(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},p.prototype.repeat=function(t){var e=new p(this.anim,this.ms);return e.del=this.del,e.times=O.floor(L(t,0))||1,e},e.animation=function(t,n,i,r){if(t instanceof p)return t;!e.is(i,"function")&&i||(r=r||i||null,i=null),t=Object(t),n=+n||0;var a,o,s={};for(o in t)t[M](o)&&$(o)!=o&&$(o)+"%"!=o&&(a=!0,s[o]=t[o]);if(a)return i&&(s.easing=i),r&&(s.callback=r),new p({100:s},n);if(r){var c=0;for(var l in t){var u=X(l);t[M](l)&&u>c&&(c=u)}!t[c+="%"].callback&&(t[c].callback=r)}return new p(t,n)},Zt.animate=function(t,n,i,r){var a=this;if(a.removed)return r&&r.call(a),a;var o=t instanceof p?t:e.animation(t,n,i,r);return b(o,a,o.percents[0],null,a.attr()),a},Zt.setTime=function(t,e){return t&&null!=e&&this.status(t,P(e,t.ms)/t.ms),this},Zt.status=function(t,e){var n,i,r=[],a=0;if(null!=e)return b(t,this,-1,P(e,1)),this;for(n=ne.length;a<n;a++)if((i=ne[a]).el.id==this.id&&(!t||i.anim==t)){if(t)return i.status;r.push({anim:i.anim,status:i.status})}return t?0:r},Zt.pause=function(e){for(var n=0;n<ne.length;n++)ne[n].el.id!=this.id||e&&ne[n].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,ne[n].anim)&&(ne[n].paused=!0);return this},Zt.resume=function(e){for(var n=0;n<ne.length;n++)if(ne[n].el.id==this.id&&(!e||ne[n].anim==e)){var i=ne[n];!1!==t("raphael.anim.resume."+this.id,this,i.anim)&&(delete i.paused,this.status(i.anim,i.status))}return this},Zt.stop=function(e){for(var n=0;n<ne.length;n++)ne[n].el.id!=this.id||e&&ne[n].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,ne[n].anim)&&ne.splice(n--,1);return this},t.on("raphael.remove",g),t.on("raphael.clear",g),Zt.toString=function(){return"Raphaël’s object"};var oe=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)!t[e]||t[e].constructor!=Zt.constructor&&t[e].constructor!=oe||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},se=oe.prototype;for(var ce in se.push=function(){for(var t,e,n=0,i=arguments.length;n<i;n++)!(t=arguments[n])||t.constructor!=Zt.constructor&&t.constructor!=oe||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},se.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},se.forEach=function(t,e){for(var n=0,i=this.items.length;n<i;n++)if(!1===t.call(e,this.items[n],n))return this;return this},Zt)Zt[M](ce)&&(se[ce]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t][E](n,e)})}}(ce));return se.attr=function(t,n){if(t&&e.is(t,H)&&e.is(t[0],"object"))for(var i=0,r=t.length;i<r;i++)this.items[i].attr(t[i]);else for(var a=0,o=this.items.length;a<o;a++)this.items[a].attr(t,n);return this},se.clear=function(){for(;this.length;)this.pop()},se.splice=function(t,e,n){t=t<0?L(this.length+t,0):t,e=L(0,P(this.length-t,e));var i,r=[],a=[],o=[];for(i=2;i<arguments.length;i++)o.push(arguments[i]);for(i=0;i<e;i++)a.push(this[t+i]);for(;i<this.length-t;i++)r.push(this[t+i]);var s=o.length;for(i=0;i<s+r.length;i++)this.items[t+i]=this[t+i]=i<s?o[i]:r[i-s];for(i=this.items.length=this.length-=e-s;this[i];)delete this[i++];return new oe(a)},se.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0},se.animate=function(t,n,i,r){(e.is(i,"function")||!i)&&(r=i||null);var a,o,s=this.items.length,c=s,l=this;if(!s)return this;r&&(o=function(){!--s&&r.call(l)}),i=e.is(i,F)?i:o;var u=e.animation(t,n,i,o);for(a=this.items[--c].animate(u);c--;)this.items[c]&&!this.items[c].removed&&this.items[c].animateWith(a,u,u),this.items[c]&&!this.items[c].removed||s--;return this},se.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},se.getBBox=function(){for(var t=[],e=[],n=[],i=[],r=this.items.length;r--;)if(!this.items[r].removed){var a=this.items[r].getBBox();t.push(a.x),e.push(a.y),n.push(a.x+a.width),i.push(a.y+a.height)}return{x:t=P[E](0,t),y:e=P[E](0,e),x2:n=L[E](0,n),y2:i=L[E](0,i),width:n-t,height:i-e}},se.clone=function(t){t=this.paper.set();for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},se.toString=function(){return"Raphaël‘s set"},se.glow=function(t){var e=this.paper.set();return this.forEach(function(n,i){var r=n.glow(t);null!=r&&r.forEach(function(t,n){e.push(t)})}),e},se.isPointInside=function(t,e){var n=!1;return this.forEach(function(i){if(i.isPointInside(t,e))return n=!0,!1}),n},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(var i in t.face)t.face[M](i)&&(e.face[i]=t.face[i]);if(this.fonts[n]?this.fonts[n].push(e):this.fonts[n]=[e],!t.svg)for(var r in e.face["units-per-em"]=X(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[M](r)){var a=t.glyphs[r];if(e.glyphs[r]={w:a.w,k:{},d:a.d&&"M"+a.d.replace(/[mlcxtrv]/g,function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"})+"z"},a.k)for(var o in a.k)a[M](o)&&(e.glyphs[r].k[o]=a.k[o])}return t},m.getFont=function(t,n,i,r){if(r=r||"normal",i=i||"normal",n=+n||{normal:400,bold:700,lighter:300,bolder:800}[n]||400,e.fonts){var a,o=e.fonts[t];if(!o){var s=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,D)+"(\\s|$)","i");for(var c in e.fonts)if(e.fonts[M](c)&&s.test(c)){o=e.fonts[c];break}}if(o)for(var l=0,u=o.length;l<u&&((a=o[l]).face["font-weight"]!=n||a.face["font-style"]!=i&&a.face["font-style"]||a.face["font-stretch"]!=r);l++);return a}},m.print=function(t,n,i,r,a,o,s,c){o=o||"middle",s=L(P(s||0,1),-1),c=L(P(c||1,3),1);var l,u=S(i)[N](D),f=0,h=0,d=D;if(e.is(r,"string")&&(r=this.getFont(r)),r){l=(a||16)/r.face["units-per-em"];for(var p=r.face.bbox[N](v),b=+p[0],g=p[3]-p[1],y=0,m=+p[1]+("baseline"==o?g+ +r.face.descent:g/2),A=0,w=u.length;A<w;A++){if("\n"==u[A])f=0,I=0,h=0,y+=g*c;else{var M=h&&r.glyphs[u[A-1]]||{},I=r.glyphs[u[A]];f+=h?(M.w||r.w)+(M.k&&M.k[u[A]]||0)+r.w*s:0,h=1}I&&I.d&&(d+=e.transformPath(I.d,["t",f*l,y*l,"s",l,l,b,m,"t",(t-b)/l,(n-m)/l]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},m.add=function(t){if(e.is(t,"array"))for(var n,i=this.set(),r=0,a=t.length;r<a;r++)n=t[r]||{},A[M](n.type)&&i.push(this[n.type]().attr(n));return i},e.format=function(t,n){var i=e.is(n,H)?[0][_](n):arguments;return t&&e.is(t,F)&&i.length-1&&(t=t.replace(w,function(t,e){return null==i[++e]?D:i[e]})),t||D},e.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,i){var r=i;return n.replace(e,function(t,e,n,i,a){e=e||i,r&&(e in r&&(r=r[e]),"function"==typeof r&&a&&(r=r()))}),r=(null==r||r==i?t:r)+""};return function(e,i){return String(e).replace(t,function(t,e){return n(t,e,i)})}}(),e.ninja=function(){if(x.was)I.win.Raphael=x.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=se,t.on("raphael.DOMload",function(){y=!0}),function(t,n,i){null==t.readyState&&t.addEventListener&&(t.addEventListener(n,i=function(){t.removeEventListener(n,i,!1),t.readyState="complete"},!1),t.readyState="loading"),function n(){/in/.test(t.readyState)?setTimeout(n,9):e.eve("raphael.DOMload")}()}(document,"DOMContentLoaded"),e}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r,a,o,s,c,l,u,f,h,d,p,b,g;o="0.5.0",s="hasOwnProperty",c=/[\.\/]/,l=/\s*,\s*/,u=function(t,e){return t-e},f={n:{}},h=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},d=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},p=Object.prototype.toString,b=String,g=Array.isArray||function(t){return t instanceof Array||"[object Array]"==p.call(t)},eve=function(t,e){var n,i=a,o=Array.prototype.slice.call(arguments,2),s=eve.listeners(t),c=0,l=[],f={},p=[],b=r;p.firstDefined=h,p.lastDefined=d,r=t,a=0;for(var g=0,y=s.length;g<y;g++)"zIndex"in s[g]&&(l.push(s[g].zIndex),s[g].zIndex<0&&(f[s[g].zIndex]=s[g]));for(l.sort(u);l[c]<0;)if(n=f[l[c++]],p.push(n.apply(e,o)),a)return a=i,p;for(g=0;g<y;g++)if("zIndex"in(n=s[g]))if(n.zIndex==l[c]){if(p.push(n.apply(e,o)),a)break;do{if((n=f[l[++c]])&&p.push(n.apply(e,o)),a)break}while(n)}else f[n.zIndex]=n;else if(p.push(n.apply(e,o)),a)break;return a=i,r=b,p},eve._events=f,eve.listeners=function(t){var e,n,i,r,a,o,s,l,u=g(t)?t:t.split(c),h=f,d=[h],p=[];for(r=0,a=u.length;r<a;r++){for(l=[],o=0,s=d.length;o<s;o++)for(n=[(h=d[o].n)[u[r]],h["*"]],i=2;i--;)(e=n[i])&&(l.push(e),p=p.concat(e.f||[]));d=l}return p},eve.separator=function(t){t?(t="["+(t=b(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",c=new RegExp(t)):c=/[\.\/]/},eve.on=function(t,e){if("function"!=typeof e)return function(){};for(var n=g(t)?g(t[0])?t:[t]:b(t).split(l),i=0,r=n.length;i<r;i++)!function(t){for(var n,i=g(t)?t:b(t).split(c),r=f,a=0,o=i.length;a<o;a++)r=(r=r.n).hasOwnProperty(i[a])&&r[i[a]]||(r[i[a]]={n:{}});for(r.f=r.f||[],a=0,o=r.f.length;a<o;a++)if(r.f[a]==e){n=!0;break}!n&&r.f.push(e)}(n[i]);return function(t){+t==+t&&(e.zIndex=+t)}},eve.f=function(t){var e=[].slice.call(arguments,1);return function(){eve.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},eve.stop=function(){a=1},eve.nt=function(t){var e=g(r)?r.join("."):r;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},eve.nts=function(){return g(r)?r:r.split(c)},eve.off=eve.unbind=function(t,e){if(t){var n=g(t)?g(t[0])?t:[t]:b(t).split(l);if(n.length>1)for(var i=0,r=n.length;i<r;i++)eve.off(n[i],e);else{n=g(t)?t:b(t).split(c);var a,o,u,h,d,p=[f];for(i=0,r=n.length;i<r;i++)for(h=0;h<p.length;h+=u.length-2){if(u=[h,1],a=p[h].n,"*"!=n[i])a[n[i]]&&u.push(a[n[i]]);else for(o in a)a[s](o)&&u.push(a[o]);p.splice.apply(p,u)}for(i=0,r=p.length;i<r;i++)for(a=p[i];a.n;){if(e){if(a.f){for(h=0,d=a.f.length;h<d;h++)if(a.f[h]==e){a.f.splice(h,1);break}!a.f.length&&delete a.f}for(o in a.n)if(a.n[s](o)&&a.n[o].f){var y=a.n[o].f;for(h=0,d=y.length;h<d;h++)if(y[h]==e){y.splice(h,1);break}!y.length&&delete a.n[o].f}}else for(o in delete a.f,a.n)a.n[s](o)&&a.n[o].f&&delete a.n[o].f;a=a.n}}}else eve._events=f={n:{}}},eve.once=function(t,e){var n=function(){return eve.off(t,n),e.apply(this,arguments)};return eve.on(t,n)},eve.version=o,eve.toString=function(){return"You are running Eve "+o},void 0!==t&&t.exports?t.exports=eve:void 0===(i=function(){return eve}.apply(e,[]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(1)],void 0===(r=function(t){if(!t||t.svg){var e="hasOwnProperty",n=String,i=parseFloat,r=parseInt,a=Math,o=a.max,s=a.abs,c=a.pow,l=/[, ]+/,u=t.eve,f="",h=" ",d="http://www.w3.org/1999/xlink",p={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},b={};t.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var g=function(i,r){if(r)for(var a in"string"==typeof i&&(i=g(i)),r)r[e](a)&&("xlink:"==a.substring(0,6)?i.setAttributeNS(d,a.substring(6),n(r[a])):i.setAttribute(a,n(r[a])));else(i=t._g.doc.createElementNS("http://www.w3.org/2000/svg",i)).style&&(i.style.webkitTapHighlightColor="rgba(0,0,0,0)");return i},y=function(e,r){var l="linear",u=e.id+r,h=.5,d=.5,p=e.node,b=e.paper,y=p.style,v=t._g.doc.getElementById(u);if(!v){if(r=(r=n(r).replace(t._radial_gradient,function(t,e,n){if(l="radial",e&&n){h=i(e);var r=2*((d=i(n))>.5)-1;c(h-.5,2)+c(d-.5,2)>.25&&(d=a.sqrt(.25-c(h-.5,2))*r+.5)&&.5!=d&&(d=d.toFixed(5)-1e-5*r)}return f})).split(/\s*\-\s*/),"linear"==l){var A=r.shift();if(A=-i(A),isNaN(A))return null;var w=[0,0,a.cos(t.rad(A)),a.sin(t.rad(A))],M=1/(o(s(w[2]),s(w[3]))||1);w[2]*=M,w[3]*=M,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var I=t._parseDots(r);if(!I)return null;if(u=u.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&u!=e.gradient.id&&(b.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){v=g(l+"Gradient",{id:u}),e.gradient=v,g(v,"radial"==l?{fx:h,fy:d}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:e.matrix.invert()}),b.defs.appendChild(v);for(var x=0,C=I.length;x<C;x++)v.appendChild(g("stop",{offset:I[x].offset?I[x].offset:x?"100%":"0%","stop-color":I[x].color||"#fff","stop-opacity":isFinite(I[x].opacity)?I[x].opacity:1}))}}return g(p,{fill:m(u),opacity:1,"fill-opacity":1}),y.fill=f,y.opacity=1,y.fillOpacity=1,1},m=function(t){if(function(){var t=document.documentMode;return t&&(9===t||10===t)}())return"url('#"+t+"')";var e=document.location;return"url('"+e.protocol+"//"+e.host+e.pathname+e.search+"#"+t+"')"},v=function(t){var e=t.getBBox(1);g(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},A=function(i,r,a){if("path"==i.type){for(var o,s,c,l,u,h=n(r).toLowerCase().split("-"),d=i.paper,y=a?"end":"start",m=i.node,v=i.attrs,A=v["stroke-width"],w=h.length,M="classic",I=3,x=3,C=5;w--;)switch(h[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":M=h[w];break;case"wide":x=5;break;case"narrow":x=2;break;case"long":I=5;break;case"short":I=2}if("open"==M?(I+=2,x+=2,C+=2,c=1,l=a?4:1,u={fill:"none",stroke:v.stroke}):(l=c=I/2,u={fill:v.stroke,stroke:"none"}),i._.arrows?a?(i._.arrows.endPath&&b[i._.arrows.endPath]--,i._.arrows.endMarker&&b[i._.arrows.endMarker]--):(i._.arrows.startPath&&b[i._.arrows.startPath]--,i._.arrows.startMarker&&b[i._.arrows.startMarker]--):i._.arrows={},"none"!=M){var E="raphael-marker-"+M,_="raphael-marker-"+y+M+I+x+"-obj"+i.id;t._g.doc.getElementById(E)?b[E]++:(d.defs.appendChild(g(g("path"),{"stroke-linecap":"round",d:p[M],id:E})),b[E]=1);var T,D=t._g.doc.getElementById(_);D?(b[_]++,T=D.getElementsByTagName("use")[0]):(D=g(g("marker"),{id:_,markerHeight:x,markerWidth:I,orient:"auto",refX:l,refY:x/2}),T=g(g("use"),{"xlink:href":"#"+E,transform:(a?"rotate(180 "+I/2+" "+x/2+") ":f)+"scale("+I/C+","+x/C+")","stroke-width":(1/((I/C+x/C)/2)).toFixed(4)}),D.appendChild(T),d.defs.appendChild(D),b[_]=1),g(T,u);var k=c*("diamond"!=M&&"oval"!=M);a?(o=i._.arrows.startdx*A||0,s=t.getTotalLength(v.path)-k*A):(o=k*A,s=t.getTotalLength(v.path)-(i._.arrows.enddx*A||0)),(u={})["marker-"+y]="url(#"+_+")",(s||o)&&(u.d=t.getSubpath(v.path,o,s)),g(m,u),i._.arrows[y+"Path"]=E,i._.arrows[y+"Marker"]=_,i._.arrows[y+"dx"]=k,i._.arrows[y+"Type"]=M,i._.arrows[y+"String"]=r}else a?(o=i._.arrows.startdx*A||0,s=t.getTotalLength(v.path)-o):(o=0,s=t.getTotalLength(v.path)-(i._.arrows.enddx*A||0)),i._.arrows[y+"Path"]&&g(m,{d:t.getSubpath(v.path,o,s)}),delete i._.arrows[y+"Path"],delete i._.arrows[y+"Marker"],delete i._.arrows[y+"dx"],delete i._.arrows[y+"Type"],delete i._.arrows[y+"String"];for(u in b)if(b[e](u)&&!b[u]){var S=t._g.doc.getElementById(u);S&&S.parentNode.removeChild(S)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},M=function(t,e,i){if(e=w[n(e).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",a={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||i["stroke-linecap"]]||0,o=[],s=e.length;s--;)o[s]=e[s]*r+(s%2?1:-1)*a;g(t.node,{"stroke-dasharray":o.join(",")})}else g(t.node,{"stroke-dasharray":"none"})},I=function(i,a){var c=i.node,u=i.attrs,h=c.style.visibility;for(var p in c.style.visibility="hidden",a)if(a[e](p)){if(!t._availableAttrs[e](p))continue;var b=a[p];switch(u[p]=b,p){case"blur":i.blur(b);break;case"title":var m=c.getElementsByTagName("title");if(m.length&&(m=m[0]))m.firstChild.nodeValue=b;else{m=g("title");var w=t._g.doc.createTextNode(b);m.appendChild(w),c.appendChild(m)}break;case"href":case"target":var I=c.parentNode;if("a"!=I.tagName.toLowerCase()){var C=g("a");I.insertBefore(C,c),C.appendChild(c),I=C}"target"==p?I.setAttributeNS(d,"show","blank"==b?"new":b):I.setAttributeNS(d,p,b);break;case"cursor":c.style.cursor=b;break;case"transform":i.transform(b);break;case"arrow-start":A(i,b);break;case"arrow-end":A(i,b,1);break;case"clip-rect":var E=n(b).split(l);if(4==E.length){i.clip&&i.clip.parentNode.parentNode.removeChild(i.clip.parentNode);var _=g("clipPath"),T=g("rect");_.id=t.createUUID(),g(T,{x:E[0],y:E[1],width:E[2],height:E[3]}),_.appendChild(T),i.paper.defs.appendChild(_),g(c,{"clip-path":"url(#"+_.id+")"}),i.clip=T}if(!b){var D=c.getAttribute("clip-path");if(D){var k=t._g.doc.getElementById(D.replace(/(^url\(#|\)$)/g,f));k&&k.parentNode.removeChild(k),g(c,{"clip-path":f}),delete i.clip}}break;case"path":"path"==i.type&&(g(c,{d:b?u.path=t._pathToAbsolute(b):"M0,0"}),i._.dirty=1,i._.arrows&&("startString"in i._.arrows&&A(i,i._.arrows.startString),"endString"in i._.arrows&&A(i,i._.arrows.endString,1)));break;case"width":if(c.setAttribute(p,b),i._.dirty=1,!u.fx)break;p="x",b=u.x;case"x":u.fx&&(b=-u.x-(u.width||0));case"rx":if("rx"==p&&"rect"==i.type)break;case"cx":c.setAttribute(p,b),i.pattern&&v(i),i._.dirty=1;break;case"height":if(c.setAttribute(p,b),i._.dirty=1,!u.fy)break;p="y",b=u.y;case"y":u.fy&&(b=-u.y-(u.height||0));case"ry":if("ry"==p&&"rect"==i.type)break;case"cy":c.setAttribute(p,b),i.pattern&&v(i),i._.dirty=1;break;case"r":"rect"==i.type?g(c,{rx:b,ry:b}):c.setAttribute(p,b),i._.dirty=1;break;case"src":"image"==i.type&&c.setAttributeNS(d,"href",b);break;case"stroke-width":1==i._.sx&&1==i._.sy||(b/=o(s(i._.sx),s(i._.sy))||1),c.setAttribute(p,b),u["stroke-dasharray"]&&M(i,u["stroke-dasharray"],a),i._.arrows&&("startString"in i._.arrows&&A(i,i._.arrows.startString),"endString"in i._.arrows&&A(i,i._.arrows.endString,1));break;case"stroke-dasharray":M(i,b,a);break;case"fill":var S=n(b).match(t._ISURL);if(S){_=g("pattern");var N=g("image");_.id=t.createUUID(),g(_,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),g(N,{x:0,y:0,"xlink:href":S[1]}),_.appendChild(N),function(e){t._preload(S[1],function(){var t=this.offsetWidth,n=this.offsetHeight;g(e,{width:t,height:n}),g(N,{width:t,height:n})})}(_),i.paper.defs.appendChild(_),g(c,{fill:"url(#"+_.id+")"}),i.pattern=_,i.pattern&&v(i);break}var B=t.getRGB(b);if(B.error){if(("circle"==i.type||"ellipse"==i.type||"r"!=n(b).charAt())&&y(i,b)){if("opacity"in u||"fill-opacity"in u){var j=t._g.doc.getElementById(c.getAttribute("fill").replace(/^url\(#|\)$/g,f));if(j){var R=j.getElementsByTagName("stop");g(R[R.length-1],{"stop-opacity":("opacity"in u?u.opacity:1)*("fill-opacity"in u?u["fill-opacity"]:1)})}}u.gradient=b,u.fill="none";break}}else delete a.gradient,delete u.gradient,!t.is(u.opacity,"undefined")&&t.is(a.opacity,"undefined")&&g(c,{opacity:u.opacity}),!t.is(u["fill-opacity"],"undefined")&&t.is(a["fill-opacity"],"undefined")&&g(c,{"fill-opacity":u["fill-opacity"]});B[e]("opacity")&&g(c,{"fill-opacity":B.opacity>1?B.opacity/100:B.opacity});case"stroke":B=t.getRGB(b),c.setAttribute(p,B.hex),"stroke"==p&&B[e]("opacity")&&g(c,{"stroke-opacity":B.opacity>1?B.opacity/100:B.opacity}),"stroke"==p&&i._.arrows&&("startString"in i._.arrows&&A(i,i._.arrows.startString),"endString"in i._.arrows&&A(i,i._.arrows.endString,1));break;case"gradient":("circle"==i.type||"ellipse"==i.type||"r"!=n(b).charAt())&&y(i,b);break;case"opacity":u.gradient&&!u[e]("stroke-opacity")&&g(c,{"stroke-opacity":b>1?b/100:b});case"fill-opacity":if(u.gradient){(j=t._g.doc.getElementById(c.getAttribute("fill").replace(/^url\(#|\)$/g,f)))&&(R=j.getElementsByTagName("stop"),g(R[R.length-1],{"stop-opacity":b}));break}default:"font-size"==p&&(b=r(b,10)+"px");var O=p.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});c.style[O]=b,i._.dirty=1,c.setAttribute(p,b)}}x(i,a),c.style.visibility=h},x=function(i,a){if("text"==i.type&&(a[e]("text")||a[e]("font")||a[e]("font-size")||a[e]("x")||a[e]("y"))){var o=i.attrs,s=i.node,c=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,f).getPropertyValue("font-size"),10):10;if(a[e]("text")){for(o.text=a.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,u=n(a.text).split("\n"),h=[],d=0,p=u.length;d<p;d++)l=g("tspan"),d&&g(l,{dy:1.2*c,x:o.x}),l.appendChild(t._g.doc.createTextNode(u[d])),s.appendChild(l),h[d]=l}else for(d=0,p=(h=s.getElementsByTagName("tspan")).length;d<p;d++)d?g(h[d],{dy:1.2*c,x:o.x}):g(h[0],{dy:0});g(s,{x:o.x,y:o.y}),i._.dirty=1;var b=i._getBBox(),y=o.y-(b.y+b.height/2);y&&t.is(y,"finite")&&g(h[0],{dy:y})}},C=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},E=function(e,n){this[0]=this.node=e,e.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=n,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},_=t.el;E.prototype=_,_.constructor=E,t._engine.path=function(t,e){var n=g("path");e.canvas&&e.canvas.appendChild(n);var i=new E(n,e);return i.type="path",I(i,{fill:"none",stroke:"#000",path:t}),i},_.rotate=function(t,e,r){if(this.removed)return this;if((t=n(t).split(l)).length-1&&(e=i(t[1]),r=i(t[2])),t=i(t[0]),null==r&&(e=r),null==e||null==r){var a=this.getBBox(1);e=a.x+a.width/2,r=a.y+a.height/2}return this.transform(this._.transform.concat([["r",t,e,r]])),this},_.scale=function(t,e,r,a){if(this.removed)return this;if((t=n(t).split(l)).length-1&&(e=i(t[1]),r=i(t[2]),a=i(t[3])),t=i(t[0]),null==e&&(e=t),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",t,e,r,a]])),this},_.translate=function(t,e){return this.removed?this:((t=n(t).split(l)).length-1&&(e=i(t[1])),t=i(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]])),this)},_.transform=function(n){var i=this._;if(null==n)return i.transform;if(t._extractTransform(this,n),this.clip&&g(this.clip,{transform:this.matrix.invert()}),this.pattern&&v(this),this.node&&g(this.node,{transform:this.matrix}),1!=i.sx||1!=i.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},_.hide=function(){return this.removed||(this.node.style.display="none"),this},_.show=function(){return this.removed||(this.node.style.display=""),this},_.remove=function(){var e=C(this.node);if(!this.removed&&e.parentNode){var n=this.paper;for(var i in n.__set__&&n.__set__.exclude(this),u.unbind("raphael.*.*."+this.id),this.gradient&&n.defs.removeChild(this.gradient),t._tear(this,n),e.parentNode.removeChild(e),this.removeData(),this)this[i]="function"==typeof this[i]?t._removedFactory(i):null;this.removed=!0}},_._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,n=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(n=!0,e.display="");var i={};try{i=this.node.getBBox()}catch(t){i={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{i=i||{},n&&(e.display="none")}return t&&this.hide(),i},_.attr=function(n,i){if(this.removed)return this;if(null==n){var r={};for(var a in this.attrs)this.attrs[e](a)&&(r[a]=this.attrs[a]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==i&&t.is(n,"string")){if("fill"==n&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==n)return this._.transform;for(var o=n.split(l),s={},c=0,f=o.length;c<f;c++)(n=o[c])in this.attrs?s[n]=this.attrs[n]:t.is(this.paper.customAttributes[n],"function")?s[n]=this.paper.customAttributes[n].def:s[n]=t._availableAttrs[n];return f-1?s:s[o[0]]}if(null==i&&t.is(n,"array")){for(s={},c=0,f=n.length;c<f;c++)s[n[c]]=this.attr(n[c]);return s}if(null!=i){var h={};h[n]=i}else null!=n&&t.is(n,"object")&&(h=n);for(var d in h)u("raphael.attr."+d+"."+this.id,this,h[d]);for(d in this.paper.customAttributes)if(this.paper.customAttributes[e](d)&&h[e](d)&&t.is(this.paper.customAttributes[d],"function")){var p=this.paper.customAttributes[d].apply(this,[].concat(h[d]));for(var b in this.attrs[d]=h[d],p)p[e](b)&&(h[b]=p[b])}return I(this,h),this},_.toFront=function(){if(this.removed)return this;var e=C(this.node);e.parentNode.appendChild(e);var n=this.paper;return n.top!=this&&t._tofront(this,n),this},_.toBack=function(){if(this.removed)return this;var e=C(this.node),n=e.parentNode;return n.insertBefore(e,n.firstChild),t._toback(this,this.paper),this.paper,this},_.insertAfter=function(e){if(this.removed||!e)return this;var n=C(this.node),i=C(e.node||e[e.length-1].node);return i.nextSibling?i.parentNode.insertBefore(n,i.nextSibling):i.parentNode.appendChild(n),t._insertafter(this,e,this.paper),this},_.insertBefore=function(e){if(this.removed||!e)return this;var n=C(this.node),i=C(e.node||e[0].node);return i.parentNode.insertBefore(n,i),t._insertbefore(this,e,this.paper),this},_.blur=function(e){var n=this;if(0!=+e){var i=g("filter"),r=g("feGaussianBlur");n.attrs.blur=e,i.id=t.createUUID(),g(r,{stdDeviation:+e||1.5}),i.appendChild(r),n.paper.defs.appendChild(i),n._blur=i,g(n.node,{filter:"url(#"+i.id+")"})}else n._blur&&(n._blur.parentNode.removeChild(n._blur),delete n._blur,delete n.attrs.blur),n.node.removeAttribute("filter");return n},t._engine.circle=function(t,e,n,i){var r=g("circle");t.canvas&&t.canvas.appendChild(r);var a=new E(r,t);return a.attrs={cx:e,cy:n,r:i,fill:"none",stroke:"#000"},a.type="circle",g(r,a.attrs),a},t._engine.rect=function(t,e,n,i,r,a){var o=g("rect");t.canvas&&t.canvas.appendChild(o);var s=new E(o,t);return s.attrs={x:e,y:n,width:i,height:r,rx:a||0,ry:a||0,fill:"none",stroke:"#000"},s.type="rect",g(o,s.attrs),s},t._engine.ellipse=function(t,e,n,i,r){var a=g("ellipse");t.canvas&&t.canvas.appendChild(a);var o=new E(a,t);return o.attrs={cx:e,cy:n,rx:i,ry:r,fill:"none",stroke:"#000"},o.type="ellipse",g(a,o.attrs),o},t._engine.image=function(t,e,n,i,r,a){var o=g("image");g(o,{x:n,y:i,width:r,height:a,preserveAspectRatio:"none"}),o.setAttributeNS(d,"href",e),t.canvas&&t.canvas.appendChild(o);var s=new E(o,t);return s.attrs={x:n,y:i,width:r,height:a,src:e},s.type="image",s},t._engine.text=function(e,n,i,r){var a=g("text");e.canvas&&e.canvas.appendChild(a);var o=new E(a,e);return o.attrs={x:n,y:i,"text-anchor":"middle",text:r,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},o.type="text",I(o,o.attrs),o},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e&&e.container,i=e.x,r=e.y,a=e.width,o=e.height;if(!n)throw new Error("SVG container not found.");var s,c=g("svg"),l="overflow:hidden;";return i=i||0,r=r||0,g(c,{height:o=o||342,version:1.1,width:a=a||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==n?(c.style.cssText=l+"position:absolute;left:"+i+"px;top:"+r+"px",t._g.doc.body.appendChild(c),s=1):(c.style.cssText=l+"position:relative",n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c)),(n=new t._Paper).width=a,n.height=o,n.canvas=c,n.clear(),n._left=n._top=0,s&&(n.renderfix=function(){}),n.renderfix(),n},t._engine.setViewBox=function(t,e,n,i,r){u("raphael.setViewBox",this,this._viewBox,[t,e,n,i,r]);var a,s,c=this.getSize(),l=o(n/c.width,i/c.height),f=this.top,d=r?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(l=1),delete this._vbSize,a="0 0 "+this.width+h+this.height):(this._vbSize=l,a=t+h+e+h+n+h+i),g(this.canvas,{viewBox:a,preserveAspectRatio:d});l&&f;)s="stroke-width"in f.attrs?f.attrs["stroke-width"]:1,f.attr({"stroke-width":s}),f._.dirty=1,f._.dirtyT=1,f=f.prev;return this._viewBox=[t,e,n,i,!!r],this},t.prototype.renderfix=function(){var t,e=this.canvas,n=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(n){t=e.createSVGMatrix()}var i=-t.e%1,r=-t.f%1;(i||r)&&(i&&(this._left=(this._left+i)%1,n.left=this._left+"px"),r&&(this._top=(this._top+r)%1,n.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=g("desc")).appendChild(t._g.doc.createTextNode("Created with Raphaël "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=g("defs"))},t.prototype.remove=function(){for(var e in u("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var T=t.st;for(var D in _)_[e](D)&&!T[e](D)&&(T[D]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(D))}}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1)],void 0===(r=function(t){if(!t||t.vml){var e="hasOwnProperty",n=String,i=parseFloat,r=Math,a=r.round,o=r.max,s=r.min,c=r.abs,l="fill",u=/[, ]+/,f=t.eve,h=" ",d="",p={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},b=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,y=/-?[^,\s-]+/g,m="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",v=21600,A={path:1,rect:1,image:1},w={circle:1,ellipse:1},M=function(e){var i=/[ahqstv]/gi,r=t._pathToAbsolute;if(n(e).match(i)&&(r=t._path2curve),i=/[clmz]/g,r==t._pathToAbsolute&&!n(e).match(i)){var o=n(e).replace(b,function(t,e,n){var i=[],r="m"==e.toLowerCase(),o=p[e];return n.replace(y,function(t){r&&2==i.length&&(o+=i+p["m"==e?"l":"L"],i=[]),i.push(a(t*v))}),o+i});return o}var s,c,l=r(e);o=[];for(var u=0,f=l.length;u<f;u++){s=l[u],"z"==(c=l[u][0].toLowerCase())&&(c="x");for(var g=1,m=s.length;g<m;g++)c+=a(s[g]*v)+(g!=m-1?",":d);o.push(c)}return o.join(h)},I=function(e,n,i){var r=t.matrix();return r.rotate(-e,.5,.5),{dx:r.x(n,i),dy:r.y(n,i)}},x=function(t,e,n,i,r,a){var o=t._,s=t.matrix,u=o.fillpos,f=t.node,d=f.style,p=1,b="",g=v/e,y=v/n;if(d.visibility="hidden",e&&n){if(f.coordsize=c(g)+h+c(y),d.rotation=a*(e*n<0?-1:1),a){var m=I(a,i,r);i=m.dx,r=m.dy}if(e<0&&(b+="x"),n<0&&(b+=" y")&&(p=-1),d.flip=b,f.coordorigin=i*-g+h+r*-y,u||o.fillsize){var A=f.getElementsByTagName(l);A=A&&A[0],f.removeChild(A),u&&(m=I(a,s.x(u[0],u[1]),s.y(u[0],u[1])),A.position=m.dx*p+h+m.dy*p),o.fillsize&&(A.size=o.fillsize[0]*c(e)+h+o.fillsize[1]*c(n)),f.appendChild(A)}d.visibility="visible"}};t.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var C,E=function(t,e,i){for(var r=n(e).toLowerCase().split("-"),a=i?"end":"start",o=r.length,s="classic",c="medium",l="medium";o--;)switch(r[o]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=r[o];break;case"wide":case"narrow":l=r[o];break;case"long":case"short":c=r[o]}var u=t.node.getElementsByTagName("stroke")[0];u[a+"arrow"]=s,u[a+"arrowlength"]=c,u[a+"arrowwidth"]=l},_=function(r,c){r.attrs=r.attrs||{};var f=r.node,p=r.attrs,b=f.style,g=A[r.type]&&(c.x!=p.x||c.y!=p.y||c.width!=p.width||c.height!=p.height||c.cx!=p.cx||c.cy!=p.cy||c.rx!=p.rx||c.ry!=p.ry||c.r!=p.r),y=w[r.type]&&(p.cx!=c.cx||p.cy!=c.cy||p.r!=c.r||p.rx!=c.rx||p.ry!=c.ry),m=r;for(var I in c)c[e](I)&&(p[I]=c[I]);if(g&&(p.path=t._getPath[r.type](r),r._.dirty=1),c.href&&(f.href=c.href),c.title&&(f.title=c.title),c.target&&(f.target=c.target),c.cursor&&(b.cursor=c.cursor),"blur"in c&&r.blur(c.blur),(c.path&&"path"==r.type||g)&&(f.path=M(~n(p.path).toLowerCase().indexOf("r")?t._pathToAbsolute(p.path):p.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[p.x,p.y],r._.fillsize=[p.width,p.height],x(r,1,1,0,0,0))),"transform"in c&&r.transform(c.transform),y){var _=+p.cx,D=+p.cy,k=+p.rx||+p.r||0,S=+p.ry||+p.r||0;f.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",a((_-k)*v),a((D-S)*v),a((_+k)*v),a((D+S)*v),a(_*v)),r._.dirty=1}if("clip-rect"in c){var N=n(c["clip-rect"]).split(u);if(4==N.length){N[2]=+N[2]+ +N[0],N[3]=+N[3]+ +N[1];var B=f.clipRect||t._g.doc.createElement("div"),j=B.style;j.clip=t.format("rect({1}px {2}px {3}px {0}px)",N),f.clipRect||(j.position="absolute",j.top=0,j.left=0,j.width=r.paper.width+"px",j.height=r.paper.height+"px",f.parentNode.insertBefore(B,f),B.appendChild(f),f.clipRect=B)}c["clip-rect"]||f.clipRect&&(f.clipRect.style.clip="auto")}if(r.textpath){var R=r.textpath.style;c.font&&(R.font=c.font),c["font-family"]&&(R.fontFamily='"'+c["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,d)+'"'),c["font-size"]&&(R.fontSize=c["font-size"]),c["font-weight"]&&(R.fontWeight=c["font-weight"]),c["font-style"]&&(R.fontStyle=c["font-style"])}if("arrow-start"in c&&E(m,c["arrow-start"]),"arrow-end"in c&&E(m,c["arrow-end"],1),null!=c.opacity||null!=c.fill||null!=c.src||null!=c.stroke||null!=c["stroke-width"]||null!=c["stroke-opacity"]||null!=c["fill-opacity"]||null!=c["stroke-dasharray"]||null!=c["stroke-miterlimit"]||null!=c["stroke-linejoin"]||null!=c["stroke-linecap"]){var O=f.getElementsByTagName(l);if(!(O=O&&O[0])&&(O=C(l)),"image"==r.type&&c.src&&(O.src=c.src),c.fill&&(O.on=!0),null!=O.on&&"none"!=c.fill&&null!==c.fill||(O.on=!1),O.on&&c.fill){var L=n(c.fill).match(t._ISURL);if(L){O.parentNode==f&&f.removeChild(O),O.rotate=!0,O.src=L[1],O.type="tile";var P=r.getBBox(1);O.position=P.x+h+P.y,r._.fillpos=[P.x,P.y],t._preload(L[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]})}else O.color=t.getRGB(c.fill).hex,O.src=d,O.type="solid",t.getRGB(c.fill).error&&(m.type in{circle:1,ellipse:1}||"r"!=n(c.fill).charAt())&&T(m,c.fill,O)&&(p.fill="none",p.gradient=c.fill,O.rotate=!1)}if("fill-opacity"in c||"opacity"in c){var z=((+p["fill-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+t.getRGB(c.fill).o+1||2)-1);z=s(o(z,0),1),O.opacity=z,O.src&&(O.color="none")}f.appendChild(O);var Q=f.getElementsByTagName("stroke")&&f.getElementsByTagName("stroke")[0],U=!1;!Q&&(U=Q=C("stroke")),(c.stroke&&"none"!=c.stroke||c["stroke-width"]||null!=c["stroke-opacity"]||c["stroke-dasharray"]||c["stroke-miterlimit"]||c["stroke-linejoin"]||c["stroke-linecap"])&&(Q.on=!0),("none"==c.stroke||null===c.stroke||null==Q.on||0==c.stroke||0==c["stroke-width"])&&(Q.on=!1);var Y=t.getRGB(c.stroke);Q.on&&c.stroke&&(Q.color=Y.hex),z=((+p["stroke-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+Y.o+1||2)-1);var F=.75*(i(c["stroke-width"])||1);if(z=s(o(z,0),1),null==c["stroke-width"]&&(F=p["stroke-width"]),c["stroke-width"]&&(Q.weight=F),F&&F<1&&(z*=F)&&(Q.weight=1),Q.opacity=z,c["stroke-linejoin"]&&(Q.joinstyle=c["stroke-linejoin"]||"miter"),Q.miterlimit=c["stroke-miterlimit"]||8,c["stroke-linecap"]&&(Q.endcap="butt"==c["stroke-linecap"]?"flat":"square"==c["stroke-linecap"]?"square":"round"),"stroke-dasharray"in c){var H={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Q.dashstyle=H[e](c["stroke-dasharray"])?H[c["stroke-dasharray"]]:d}U&&f.appendChild(Q)}if("text"==m.type){m.paper.canvas.style.display=d;var G=m.paper.span,W=p.font&&p.font.match(/\d+(?:\.\d*)?(?=px)/);b=G.style,p.font&&(b.font=p.font),p["font-family"]&&(b.fontFamily=p["font-family"]),p["font-weight"]&&(b.fontWeight=p["font-weight"]),p["font-style"]&&(b.fontStyle=p["font-style"]),W=i(p["font-size"]||W&&W[0])||10,b.fontSize=100*W+"px",m.textpath.string&&(G.innerHTML=n(m.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var Z=G.getBoundingClientRect();m.W=p.w=(Z.right-Z.left)/100,m.H=p.h=(Z.bottom-Z.top)/100,m.X=p.x,m.Y=p.y+m.H/2,("x"in c||"y"in c)&&(m.path.v=t.format("m{0},{1}l{2},{1}",a(p.x*v),a(p.y*v),a(p.x*v)+1));for(var V=["x","y","text","font","font-family","font-weight","font-style","font-size"],J=0,$=V.length;J<$;J++)if(V[J]in c){m._.dirty=1;break}switch(p["text-anchor"]){case"start":m.textpath.style["v-text-align"]="left",m.bbx=m.W/2;break;case"end":m.textpath.style["v-text-align"]="right",m.bbx=-m.W/2;break;default:m.textpath.style["v-text-align"]="center",m.bbx=0}m.textpath.style["v-text-kern"]=!0}},T=function(e,a,o){e.attrs=e.attrs||{},e.attrs;var s=Math.pow,c="linear",l=".5 .5";if(e.attrs.gradient=a,a=(a=n(a).replace(t._radial_gradient,function(t,e,n){return c="radial",e&&n&&(e=i(e),n=i(n),s(e-.5,2)+s(n-.5,2)>.25&&(n=r.sqrt(.25-s(e-.5,2))*(2*(n>.5)-1)+.5),l=e+h+n),d})).split(/\s*\-\s*/),"linear"==c){var u=a.shift();if(u=-i(u),isNaN(u))return null}var f=t._parseDots(a);if(!f)return null;if(e=e.shape||e.node,f.length){e.removeChild(o),o.on=!0,o.method="none",o.color=f[0].color,o.color2=f[f.length-1].color;for(var p=[],b=0,g=f.length;b<g;b++)f[b].offset&&p.push(f[b].offset+h+f[b].color);o.colors=p.length?p.join():"0% "+o.color,"radial"==c?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=l,o.angle=0):(o.type="gradient",o.angle=(270-u)%360),e.appendChild(o)}return 1},D=function(e,n){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=n,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},k=t.el;D.prototype=k,k.constructor=D,k.transform=function(e){if(null==e)return this._.transform;var i,r=this.paper._viewBoxShift,a=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:d;r&&(i=e=n(e).replace(/\.{3}|\u2026/g,this._.transform||d)),t._extractTransform(this,a+e);var o,s=this.matrix.clone(),c=this.skew,l=this.node,u=~n(this.attrs.fill).indexOf("-"),f=!n(this.attrs.fill).indexOf("url(");if(s.translate(1,1),f||u||"image"==this.type)if(c.matrix="1 0 0 1",c.offset="0 0",o=s.split(),u&&o.noRotation||!o.isSimple){l.style.filter=s.toFilter();var p=this.getBBox(),b=this.getBBox(1),g=p.x-b.x,y=p.y-b.y;l.coordorigin=g*-v+h+y*-v,x(this,1,1,g,y,0)}else l.style.filter=d,x(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else l.style.filter=d,c.matrix=n(s),c.offset=s.offset();return null!==i&&(this._.transform=i,t._extractTransform(this,i)),this},k.rotate=function(t,e,r){if(this.removed)return this;if(null!=t){if((t=n(t).split(u)).length-1&&(e=i(t[1]),r=i(t[2])),t=i(t[0]),null==r&&(e=r),null==e||null==r){var a=this.getBBox(1);e=a.x+a.width/2,r=a.y+a.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,r]])),this}},k.translate=function(t,e){return this.removed?this:((t=n(t).split(u)).length-1&&(e=i(t[1])),t=i(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]])),this)},k.scale=function(t,e,r,a){if(this.removed)return this;if((t=n(t).split(u)).length-1&&(e=i(t[1]),r=i(t[2]),a=i(t[3]),isNaN(r)&&(r=null),isNaN(a)&&(a=null)),t=i(t[0]),null==e&&(e=t),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",t,e,r,a]])),this._.dirtyT=1,this},k.hide=function(){return!this.removed&&(this.node.style.display="none"),this},k.show=function(){return!this.removed&&(this.node.style.display=d),this},k.auxGetBBox=t.el.getBBox,k.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},n=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=n,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=n,e.width=t.width*n,e.height=t.height*n,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},k._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},k.remove=function(){if(!this.removed&&this.node.parentNode){for(var e in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},k.attr=function(n,i){if(this.removed)return this;if(null==n){var r={};for(var a in this.attrs)this.attrs[e](a)&&(r[a]=this.attrs[a]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==i&&t.is(n,"string")){if(n==l&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var o=n.split(u),s={},c=0,h=o.length;c<h;c++)(n=o[c])in this.attrs?s[n]=this.attrs[n]:t.is(this.paper.customAttributes[n],"function")?s[n]=this.paper.customAttributes[n].def:s[n]=t._availableAttrs[n];return h-1?s:s[o[0]]}if(this.attrs&&null==i&&t.is(n,"array")){for(s={},c=0,h=n.length;c<h;c++)s[n[c]]=this.attr(n[c]);return s}var d;for(var p in null!=i&&((d={})[n]=i),null==i&&t.is(n,"object")&&(d=n),d)f("raphael.attr."+p+"."+this.id,this,d[p]);if(d){for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&d[e](p)&&t.is(this.paper.customAttributes[p],"function")){var b=this.paper.customAttributes[p].apply(this,[].concat(d[p]));for(var g in this.attrs[p]=d[p],b)b[e](g)&&(d[g]=b[g])}d.text&&"text"==this.type&&(this.textpath.string=d.text),_(this,d)}return this},k.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},k.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this)},k.insertAfter=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper),this)},k.insertBefore=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper),this)},k.blur=function(e){var n=this.node.runtimeStyle,i=n.filter;return i=i.replace(g,d),0!=+e?(this.attrs.blur=e,n.filter=i+h+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",n.margin=t.format("-{0}px 0 0 -{0}px",a(+e||1.5))):(n.filter=i,n.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var n=C("shape");n.style.cssText=m,n.coordsize=v+h+v,n.coordorigin=e.coordorigin;var i=new D(n,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),i.type="path",i.path=[],i.Path=d,_(i,r),e.canvas&&e.canvas.appendChild(n);var a=C("skew");return a.on=!0,n.appendChild(a),i.skew=a,i.transform(d),i},t._engine.rect=function(e,n,i,r,a,o){var s=t._rectPath(n,i,r,a,o),c=e.path(s),l=c.attrs;return c.X=l.x=n,c.Y=l.y=i,c.W=l.width=r,c.H=l.height=a,l.r=o,l.path=s,c.type="rect",c},t._engine.ellipse=function(t,e,n,i,r){var a=t.path();return a.attrs,a.X=e-i,a.Y=n-r,a.W=2*i,a.H=2*r,a.type="ellipse",_(a,{cx:e,cy:n,rx:i,ry:r}),a},t._engine.circle=function(t,e,n,i){var r=t.path();return r.attrs,r.X=e-i,r.Y=n-i,r.W=r.H=2*i,r.type="circle",_(r,{cx:e,cy:n,r:i}),r},t._engine.image=function(e,n,i,r,a,o){var s=t._rectPath(i,r,a,o),c=e.path(s).attr({stroke:"none"}),u=c.attrs,f=c.node,h=f.getElementsByTagName(l)[0];return u.src=n,c.X=u.x=i,c.Y=u.y=r,c.W=u.width=a,c.H=u.height=o,u.path=s,c.type="image",h.parentNode==f&&f.removeChild(h),h.rotate=!0,h.src=n,h.type="tile",c._.fillpos=[i,r],c._.fillsize=[a,o],f.appendChild(h),x(c,1,1,0,0,0),c},t._engine.text=function(e,i,r,o){var s=C("shape"),c=C("path"),l=C("textpath");i=i||0,r=r||0,o=o||"",c.v=t.format("m{0},{1}l{2},{1}",a(i*v),a(r*v),a(i*v)+1),c.textpathok=!0,l.string=n(o),l.on=!0,s.style.cssText=m,s.coordsize=v+h+v,s.coordorigin="0 0";var u=new D(s,e),f={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:o};u.shape=s,u.path=c,u.textpath=l,u.type="text",u.attrs.text=n(o),u.attrs.x=i,u.attrs.y=r,u.attrs.w=1,u.attrs.h=1,_(u,f),s.appendChild(l),s.appendChild(c),e.canvas.appendChild(s);var p=C("skew");return p.on=!0,s.appendChild(p),u.skew=p,u.transform(d),u},t._engine.setSize=function(e,n){var i=this.canvas.style;return this.width=e,this.height=n,e==+e&&(e+="px"),n==+n&&(n+="px"),i.width=e,i.height=n,i.clip="rect(0 "+e+" "+n+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,n,i,r,a){t.eve("raphael.setViewBox",this,this._viewBox,[e,n,i,r,a]);var o,s,c=this.getSize(),l=c.width,u=c.height;return a&&(i*(o=u/r)<l&&(e-=(l-i*o)/2/o),r*(s=l/i)<u&&(n-=(u-r*s)/2/s)),this._viewBox=[e,n,i,r,!!a],this._viewBoxShift={dx:-e,dy:-n,scale:c},this.forEach(function(t){t.transform("...")}),this},t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),C=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(t){C=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e.container,i=e.height,r=e.width,a=e.x,o=e.y;if(!n)throw new Error("VML container not found.");var s=new t._Paper,c=s.canvas=t._g.doc.createElement("div"),l=c.style;return a=a||0,o=o||0,r=r||512,i=i||342,s.width=r,s.height=i,r==+r&&(r+="px"),i==+i&&(i+="px"),s.coordsize=216e5+h+216e5,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",c.appendChild(s.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,i),1==n?(t._g.doc.body.appendChild(c),l.left=a+"px",l.top=o+"px",l.position="absolute"):n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=d,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var S=t.st;for(var N in k)k[e](N)&&!S[e](N)&&(S[N]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(N))}}.apply(e,i))||(t.exports=r)}])},t.exports=i()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=s(r),o=s(n(201));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){var t=this.props,e=t.items,n=t.data,i=t.dispatch,r=t.menuId,s=[];return e.forEach(function(t,e){s.push(a.default.createElement(o.default,{item:t,key:e,data:n,dispatch:i}))}),a.default.createElement("div",{id:r},a.default.createElement("ul",{className:"dropdown-menu",style:{color:"rgb(11, 54, 106)"}},s))}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=s(r),o=s(n(89));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=e.dispatch,r=e.selectDir,s=[];return n.forEach(function(e,n){s.push(a.default.createElement(o.default,{data:e,key:n,dispatch:i,selectDir:r,expandLevel:t.props.expandLevel}))}),a.default.createElement("ul",{style:{marginLeft:"-18px"}},s)}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=s(r),o=s(n(10));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.item,n=t.data,i=t.dispatch;if(e.click){var r=o.default.findDOMNode(this);$(r).click(function(t){e.click(n,i)})}}},{key:"render",value:function(){var t=this.props.item;return a.default.createElement("li",null,a.default.createElement("a",{href:"###"},a.default.createElement("i",{className:t.icon,style:{color:"#00A0E8"}})," ",t.name))}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(241)),a=o(n(203));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.items=[],this.output=n,this.fieldsData=i,this.variableCategory=e,this.variableCategories=r,this.init()}return i(t,[{key:"init",value:function(){this.container=$('<div style="padding: 0px 20px 0px"><label>'+this.variableCategory.name+"</label></div>");var t=$('<button class="btn btn-link">添加字段</button>');this.container.append(t);var e=$('<i class="glyphicon glyphicon-trash" style="color: red;cursor: pointer"></i>');this.container.append(e);var n=this;e.click(function(){bootbox.confirm("真的要删除当前变量分类及其下字段吗？",function(t){if(t){var e=n.categoryItems.indexOf(n);n.categoryItems.splice(e,1),n.container.remove()}})});var i=$("<div></div>");this.container.append(i),t.click(function(){new r.default(n.output).show(n.variableCategory.variables,function(t){t.items=n.items;var e=null,r=!0,a=!1,o=void 0;try{for(var s,c=n.items[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var l=s.value;if(l.field.name===t.field.name){e=l.field.label+"字段已存在，不能重复添加!";break}}}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}e?bootbox.alert(e):(n.items.push(t),t.variableCategories=n.variableCategories,i.append(t.container))})}),this.initData(i)}},{key:"initData",value:function(t){if(this.fieldsData){var e=!0,n=!1,i=void 0;try{for(var r,o=(this.fieldsData||[])[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var s=r.value,c=s.name,l=this.findVariable(c);if(l){var u=new a.default(l,this.output);this.items.push(u),u.items=this.items,u.editor&&(u.editor.val(s.value),u.value=s.value),u.variableCategories=this.variableCategories,t.append(u.container)}}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}}}},{key:"findVariable",value:function(t){var e=null,n=!0,i=!1,r=void 0;try{for(var a,o=this.variableCategory.variables[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.name===t){e=s;break}}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}return e}},{key:"toData",value:function(){var t={categoryName:this.variableCategory.name,categoryClass:this.variableCategory.clazz,fields:[]},e=!0,n=!1,i=void 0;try{for(var r,a=this.items[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;t.fields.push(o.toData())}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}return t}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(255),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.field=e,this.output=n,this.variableCategories=null,this.init()}return r(t,[{key:"init",value:function(){this.container=$('<div style="margin:5px;padding:5px;"><label>'+this.field.label+"</label></div>");var t=$("<span></span>");this.container.append(t);var e=$('<i class="glyphicon glyphicon-remove" style="color: #ef7f38;cursor: pointer"></i>');this.container.append(e);var n=this;e.click(function(){bootbox.confirm("真的要删除当前字段吗？",function(t){if(t){var e=n.items.indexOf(n);n.items.splice(e,1),n.container.remove()}})}),this.output?this.container.css("display","inline-block"):("Boolean"===this.field.type?(this.value="true",this.editor=$('<select class="form-control" placeholder="请输入值"><option value="true">true</option><option value="false">false</option></select>')):"List"===this.field.type||"Set"===this.field.type?(this.editor=$('<textarea class="form-control" rows="5" placeholder="请输入一段集合类型的JSON"></textarea>'),this.objectButton=$('<button type="button" class="btn btn-link">选择对象来创建集合</button>'),this.objectButton.click(function(){new o.default(!0).show(n.variableCategories,function(t){n.editor.val(t),n.value=t})})):"Object"===this.field.type||"Map"===this.field.type?(this.editor=$('<textarea class="form-control" rows="5" placeholder="请输入一段JSON对象值"></textarea>'),this.objectButton=$('<button type="button" class="btn btn-link">选择对象创建所需JSON</button>'),this.objectButton.click(function(){new o.default(!1).show(n.variableCategories,function(t){n.editor.val(t),n.value=t})})):"Date"===this.field.type?this.editor=$('<input type="text" class="form-control" placeholder="日期格式为:yyyy-MM-dd或yyyy-MM-dd HH:mm:ss">'):"Integer"===this.field.type?this.editor=$('<input type="text" class="form-control" placeholder="请输入一个整数">'):"Double"===this.field.type||"Long"===this.field.type||"Float"===this.field.type||"BigDecimal"===this.field.type?this.editor=$('<input type="text" class="form-control" placeholder="请输入一个数字">'):this.editor=$('<input type="text" class="form-control" placeholder="请输入值">'),this.container.append(this.editor),this.editor.change(function(){n.value=$(this).val()}),this.objectButton&&t.append(this.objectButton))}},{key:"toData",value:function(){var t={name:this.field.name,label:this.field.label,type:this.field.type};return this.output||(t.value=this.value),t}}]),t}();e.default=s},function(t,e,n){var i=n(205);"string"==typeof i&&(i=[[t.i,i,""]]);n(18)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(17)(!1)).push([t.i,".tree {\r\n}\r\n.tree li {\r\n    list-style-type:none;\r\n    margin:0;\r\n    padding:2px 5px 0 0px;\r\n    position:relative;\r\n    line-height: 1;\r\n}\r\n.tree li::before, .tree li::after {\r\n    content:'';\r\n    left:-35px;\r\n    position:absolute;\r\n    right:auto\r\n}\r\n.tree li::before {\r\n    border-left:1px solid #999;\r\n    bottom:50px;\r\n    height:100%;\r\n    top:-6px;\r\n    width:1px;\r\n}\r\n.tree li div li::before {\r\n    border:none;\r\n}\r\n.tree li::after {\r\n    border-top:1px solid #999;\r\n    height:20px;\r\n    top:23px;\r\n    width:15px\r\n}\r\n.tree li div li::after {\r\n    border:none\r\n}\r\n.tree li {\r\n    margin-top:-5px;\r\n}\r\n.tree li span {\r\n    border:1px solid transparent;\r\n    display:inline-block;\r\n    padding:2px 2px;\r\n    margin:10px 0px 5px -20px;\r\n    cursor:pointer;\r\n    white-space: nowrap;\r\n}\r\n.tree li.parent_li>span {\r\n}\r\n.tree>ul>li::before, .tree>ul>li::after {\r\n    border:0\r\n}\r\n.tree li:last-child::before {\r\n    height:30px;\r\n}\r\n.tree-active{\r\n    border:solid 1px #2196F3 !important\r\n}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();n(49);var r=n(5),a=h(r),o=h(n(48)),s=h(n(207)),c=f(n(32)),l=f(n(14)),u=h(n(208));function f(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function h(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={title:"选择资源"},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=this;l.eventEmitter.on(l.TREE_NODE_DBLCLICK,function(e){t.callback(e.fullPath,"LATEST"),l.eventEmitter.emit(l.HIDE_KNOWLEDGE_TREE_DIALOG)}),l.eventEmitter.on(l.OPEN_KNOWLEDGE_TREE_DIALOG,function(e){t._config=e,t.withoutVersion=e.withoutVersion,t.callback=e.callback;var n=!1;window.authority_config&&(n=!0),c.loadResourceTreeData({project:e.project,forLib:e.forLib,fileType:e.fileType,authority:n},function(t){this.setState({data:t,fileType:e.fileType}),$("#_knowledge_tree_dialog_container").children(".modal").modal("show")}.bind(t))}),l.eventEmitter.on(l.HIDE_KNOWLEDGE_TREE_DIALOG,function(){$("#_knowledge_tree_dialog_container").children(".modal").modal("hide")}),l.eventEmitter.on(l.TREE_NODE_CLICK,function(e){t.currentNodeData=e}),l.eventEmitter.on(l.TREE_DIR_NODE_CLICK,function(e){t.currentNodeData=e})}},{key:"search",value:function(){var t=$(".resSearchText").val(),e=this._config;c.loadResourceTreeData({project:e.project,forLib:e.forLib,fileType:e.fileType,searchFileName:t},function(t){this.setState({data:t,fileType:e.fileType})}.bind(this))}},{key:"componentWillUnmount",value:function(){l.eventEmitter.removeAllListeners(l.OPEN_KNOWLEDGE_TREE_DIALOG),l.eventEmitter.removeAllListeners(l.HIDE_KNOWLEDGE_TREE_DIALOG),l.eventEmitter.removeAllListeners(l.TREE_NODE_CLICK)}},{key:"render",value:function(){var t=a.default.createElement("div",{className:"tree",style:{marginLeft:"10px"}},a.default.createElement("div",null,a.default.createElement("input",{type:"text",className:"form-control resSearchText",placeholder:"请输入要查询的文件名...",style:{display:"inline-block",width:"220px"}}),a.default.createElement("a",{href:"###",onClick:this.search.bind(this),style:{margin:"6px",fontSize:"16px"}},a.default.createElement("i",{className:"glyphicon glyphicon-search"}))),a.default.createElement(s.default,{data:this.state.data,selectDir:this.props.selectDir})),e=(this.state.fileType,[{name:"确定",className:"btn btn-danger",icon:"glyphicon glyphicon-floppy-saved",click:function(){this.currentNodeData?(this.callback(this.currentNodeData.fullPath,"LATEST"),l.eventEmitter.emit(l.HIDE_KNOWLEDGE_TREE_DIALOG)):bootbox.alert("请先选择一个文件")}.bind(this)}]);return this.withoutVersion||e.push({name:"选择版本",className:"btn btn-primary",icon:"glyphicon glyphicon-hand-up",click:function(){this.currentNodeData?l.eventEmitter.emit(l.OPEN_VERSION_SELECT_DIALOG,{file:this.currentNodeData.fullPath,callback:this.callback}):bootbox.alert("请先选择一个文件")}.bind(this)}),a.default.createElement("div",null,a.default.createElement(u.default,null),a.default.createElement("div",{id:"_knowledge_tree_dialog_container"},a.default.createElement(o.default,{title:this.state.title,body:t,buttons:e})))}}]),e}();e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();n(49);var r=s(n(89)),a=n(5),o=s(a);function s(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.Component),i(e,[{key:"render",value:function(){var t=this.props,e=t.data,n=t.selectDir;return e?(function t(e,n){e._level=n++;var i=e.children;i&&i.forEach(function(e,i){t(e,n)})}(e,1),o.default.createElement("ul",{style:{paddingLeft:"20px"}},o.default.createElement(r.default,{data:e,selectDir:n,expandLevel:this.props.expandLevel}))):o.default.createElement("ul",null)}}]),e}();e.default=c,c.defaultProps={expandLevel:3}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(5),a=h(r),o=h(n(10)),s=h(n(92)),c=h(n(48)),l=f(n(14)),u=f(n(32));function f(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function h(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={title:""},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"componentDidMount",value:function(){var t=this;l.eventEmitter.on(l.OPEN_VERSION_SELECT_DIALOG,function(e){var n=e.file;t.callback=e.callback,t.file=n,u.loadFileVersions(n,function(t){$(o.default.findDOMNode(this)).modal("show"),this.setState({data:t,title:"选择文件["+n+"]的版本"})}.bind(t))}),l.eventEmitter.on(l.HIDE_VERSION_SELECT_DIALOG,function(){$(o.default.findDOMNode(t)).modal("hide")}),$(o.default.findDOMNode(this)).modal("hide")}},{key:"componentWillUnmount",value:function(){l.eventEmitter.removeAllListeners(l.OPEN_VERSION_SELECT_DIALOG),l.eventEmitter.removeAllListeners(l.HIDE_VERSION_SELECT_DIALOG)}},{key:"render",value:function(){var t={width:"75px",operations:[{label:"选择该版本",icon:"rf rf-select",style:{fontSize:"18px",color:"#337ab7",padding:"0px 4px",cursor:"pointer"},click:function(t,e){this.callback(this.file,e.name),l.eventEmitter.emit(l.HIDE_VERSION_SELECT_DIALOG),l.eventEmitter.emit(l.HIDE_KNOWLEDGE_TREE_DIALOG)}.bind(this)}]},e=a.default.createElement(s.default,{headers:[{id:"v-name",name:"name",label:"版本名称",filterable:!0,width:"100px"},{id:"v-comment",name:"comment",label:"版本描述"},{id:"v-createUser",name:"createUser",label:"创建人",filterable:!0,width:"140px"},{id:"v-createDate",name:"createDate",label:"创建日期",width:"140px",dateFormat:"yyyy-MM-dd HH:mm:ss"}],operationConfig:t,rows:this.state.data||[]});return a.default.createElement(c.default,{title:this.state.title,body:e,buttons:[],large:!0})}}]),e}();e.default=d},,function(t,e,n){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,c=o(t),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))r.call(n,u)&&(c[u]=n[u]);if(i){s=i(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(c[s[f]]=n[s[f]])}}return c}},function(t,e,n){var i=n(230);"string"==typeof i&&(i=[[t.i,i,""]]);n(18)(i,{});i.locals&&(t.exports=i.locals)},function(module,exports,__webpack_require__){"use strict";!function(){window.URule||(window.URule={}),URule.menu={},URule.menu.AbstractMenu=function(t){},URule.menu.AbstractMenu.prototype={fadeSpeed:100,above:"auto",preventDoubleContext:!0,compress:!1,createDom:function(){},getDom:function(){return this._dom||(this._dom=this.createDom(),$(this._dom).data("ref",this)),this._dom},render:function(t){this._rendered||(t?$(t).append(this.getDom()):$("body").append(this.getDom())),this._rendered=!0},setConfig:function(t){this.remove(),this.constructor.call(this,t)},remove:function(){this._dom&&(this._dom.remove(),this._dom=null),this._rendered=!1}},URule.menu.Menu=function(t){URule.menu.Menu.prototype.superClass.call(this,t),$.extend(this,t)},URule.menu.Menu.prototype=new URule.menu.AbstractMenu,URule.menu.Menu.prototype.superClass=URule.menu.AbstractMenu,URule.menu.Menu.prototype.constructor=URule.menu.Menu,URule.menu.Menu.prototype.createDom=function(){var t,e,n,i;t=this.compress?" compressed-context":"",e=(i=$("<ul class='dropdown-menu dropdown-context"+t+"' style='font-size:12px'></ul>"))[0],this._dom=e,n=this.menuItems;var r=this;if(n.length>20){var a=$("<div style='margin-left: 2px;margin-right: 2px'>");a.append("<i class='glyphicon glyphicon-filter' style='color:#006600;margin-left: 2px;margin-right: 2px'></i>  "),this.search=$("<input type='text' class='form-control' placeholder='输入值后回车查询' style='width: 85%;display: inline-block;height: 26px;padding: 1px;font-size: 12px;'>"),a.append(this.search),i.append(a),this.search.click(function(t){t.stopPropagation()}),this.search.dblclick(function(t){t.stopPropagation()}),this.search.keypress(function(t){var e=t.keyCode?t.keyCode:t.which;if("13"===e||13===e){var i=$(this).val();if(!r.oldSearchValue||r.oldSearchValue!==i){for(r.oldSearchValue=i;r.menuItems.length>0;)r.menuItems[0].remove();for(var a=0;a<n.length;a++){var o=n[a],s=o.label;i&&""!==i?s&&s.indexOf(i)>-1&&r.addMenuItem(o):r.addMenuItem(o)}}}})}this.menuItems=[];for(var o=0;o<n.length;o++)this.addMenuItem(n[o]);return e},URule.menu.Menu.prototype.addMenuItem=function(menuItem){var item;return item=menuItem instanceof URule.menu.MenuItem?menuItem:menuItem.$type?eval("(URule.menu."+menuItem.$type+"(menuItem))"):new URule.menu.MenuItem(menuItem),item.parent=this,item.render(this.getDom()),this.menuItems.push(item),item},URule.menu.Menu.prototype.getMenuItem=function(t){for(var e,n=0;n<this.menuItems.length;n++){if(e=this.menuItems[n],"string"!=typeof t)return this.menuItems[t];if(e.name===t)return e;if(e.subMenu&&(e=e.subMenu.getMenuItem(t)))return e}},URule.menu.Menu.prototype.remove=function(){URule.menu.Menu.prototype.superClass.prototype.remove.call(this),this.parent&&(this.parent.subMenu=null,this.parent.getDom().removeClass("dropdown-submenu"))},URule.menu.Menu.prototype.show=function(t){t.preventDefault(),t.stopPropagation(),this.render(),$(".modal").removeAttr("tabindex");for(var e=$(this.getDom()),n=$(t.target),i=3;!n.is("body");){var r=n.css("z-index");if(!isNaN(r)&&"0"!==r){i=parseInt(r)+1;break}n=n.parent()}if(e.css("z-index",i),$(".dropdown-context:not(.dropdown-context-sub)").hide(),"boolean"==typeof this.above&&this.above)e.addClass("dropdown-context-up").css({top:t.pageY-20-e.height(),left:t.pageX-13}).fadeIn(this.fadeSpeed);else if("string"==typeof this.above&&"auto"==this.above){e.removeClass("dropdown-context-up");var a=e.height()+10;t.pageY+a>$("html").height()+10&&t.pageY>a?e.addClass("dropdown-context-up").css({top:t.pageY-20-a,left:t.pageX-13}).fadeIn(this.fadeSpeed):e.css({top:t.pageY+10,left:t.pageX-13}).fadeIn(this.fadeSpeed)}this.onShow&&this.onShow(this)},URule.menu.Menu.prototype.hide=function(){var t=$(this._dom);t.is(":visible")&&(this.onHide&&this.onHide(this),t.fadeOut(this.fadeSpeed,function(){t.css({display:""}).find(".drop-left").removeClass("drop-left")}),this.parent&&this.parent.parent.hide())},URule.menu.MenuItem=function(t){URule.menu.MenuItem.prototype.superClass.call(this,t),$.extend(this,t)},URule.menu.MenuItem.prototype=new URule.menu.AbstractMenu,URule.menu.MenuItem.prototype.superClass=URule.menu.AbstractMenu,URule.menu.MenuItem.prototype.constructor=URule.menu.MenuItem,URule.menu.MenuItem.prototype.createDom=function(){var t,e,n;return n=this,t=$("<li style='cursor: default'></li>"),this._dom=t[0],this.image?(e='<img src="'+this.image+'"',e=this.label?'<img src="'+this.image+'" style="width: 20px" title="'+this.label+'">':'<img src="'+this.image+'" style="width: 20px">'):e=this.icon?"<i class='"+this.icon+"'></i> "+this.label:this.label,t.on("mouseout",function(){clearTimeout(n.showMenuTimer),n.hideMenuTimer=setTimeout(function(){t.siblings(".dropdown-submenu").each(function(){$(this).find("ul.dropdown-context-sub").each(function(){var t=$(this).data("ref");$(this).fadeOut(t.fadeSpeed)})})},300)}),"divider"===this.type?(t.addClass("divider"),t.append(e)):"header"==this.type?(t.addClass("nav-header"),t.append(e)):(t.append("<a>"+e+"</a>"),this.subMenu&&this.setSubMenu(this.subMenu)),n.onClick&&(this.parent&&this.parent.search?(t.click(function(t){t.stopPropagation()}),t.dblclick(function(t){n.onClick(n,{event:t}),t.preventDefault(),t.stopPropagation(),n.parent.hide()})):t.click(function(t){t.preventDefault(),t.stopPropagation(),n.onClick(n,{event:t}),n.parent.hide()})),t[0]},URule.menu.MenuItem.prototype.setSubMenu=function(t){var e,n;e=(n=this).getDom(),t instanceof URule.menu.Menu?n.subMenu=t:n.subMenu=new URule.menu.Menu(t),n.subMenu.parent=this;var i=$(e).attr("class","dropdown-submenu");return i.mouseover(function(){clearTimeout(n.showMenuTimer),i.siblings(".dropdown-submenu").each(function(){$(this).find("ul.dropdown-context-sub").each(function(){var t=$(this).data("ref");$(this).fadeOut(t.fadeSpeed)})});var t=$(this).find(".dropdown-context-sub:first");t.width()+t.offset().left>window.innerWidth&&t.addClass("drop-left"),n.showMenuTimer=setTimeout(function(){$(n.subMenu.getDom()).fadeIn(n.subMenu.fadeSpeed)},300)}),this.subMenu.render(e),$(this.subMenu.getDom()).addClass("dropdown-context-sub"),this.subMenu},URule.menu.MenuItem.prototype.remove=function(){URule.menu.MenuItem.prototype.superClass.prototype.remove.call(this);var t=this.parent.menuItems.indexOf(this);this.parent.menuItems.splice(t,1)},URule.menu.MenuItem.prototype.show=function(){$(this._dom).show()},URule.menu.MenuItem.prototype.hide=function(){$(this._dom).hide()},$(document).on("dblclick","html",function(){$(".dropdown-context").each(function(){$(this).data("ref").hide()})}),$(document).keyup(function(t){27===t.keyCode&&($(".dropdown-context").each(function(){$(this).data("ref").hide()}),window._simple_value_input&&window._simple_value_input.is(":visible")&&window._simple_value_input.trigger("blur"))}),URule.menu.AbstractMenu.preventDoubleContext&&$(document).on("contextmenu",".dropdown-context",function(t){t.preventDefault()})}()},function(t,e,n){"use strict";var i=n(4);window._ConstantValueArray=[],window._ActionTypeArray=[],window._VariableValueArray=[],window._ParameterValueArray=[],window._FunctionValueArray=[],window._conditionTemplateArray=[],window._actionTemplateArray=[],window.actionLibraries=[],window.variableLibraries=[],window.constantLibraries=[],window.parameterLibraries=[],window.conditionTemplates=[],window.actionTemplates=[],window.urule={},window.knowledgePackages=null,window.loadKnowledgePackages=function(t){window.knowledgePackages?t(window.knowledgePackages):$.ajax({url:window._server+"/ruleflowdesigner/loadPackages?project="+window._project,type:"POST",success:function(e){window.knowledgePackages=e,t(e)},error:function(t){(0,i.handleError)(t)}})},window.refreshConditionTemplates=function(){for(var t="",e=0;e<conditionTemplates.length;e++){var n=conditionTemplates[e];0==e?t=n:t+=";"+n}if(t){var r=window._server+"/common/loadXml";$.ajax({type:"POST",data:{files:t},url:r,error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorConditionTemplates=t,$.each(window._conditionTemplateArray,function(e,n){n.initMenu(t,1)})}})}},window.refreshActionTemplates=function(){for(var t="",e=0;e<actionTemplates.length;e++){var n=actionTemplates[e];0==e?t=n:t+=";"+n}if(t){var r=window._server+"/common/loadXml";$.ajax({type:"POST",data:{files:t},url:r,error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorActionTemplates=t,$.each(window._actionTemplateArray,function(e,n){n.initMenu(t,1)})}})}},window.generateContainer=function(){var t=$("<span class='operation-container'></span>");return t.mouseover(function(){t.css({border:"dashed gray 1px"})}),t.mouseout(function(){t.css({border:"dashed transparent 1px"})}),t},window.refreshParameterLibraries=function(){for(var t="",e=0;e<parameterLibraries.length;e++){var n=parameterLibraries[e];0==e?t=n:t+=";"+n}if(t){var r=window._server+"/common/loadXml";$.ajax({type:"POST",data:{files:t},url:r,error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorParameterLibraries=t,$.each(window._ParameterValueArray,function(e,n){n.initMenu(t,1)})}})}},window.refreshVariableLibraries=function(){for(var t="",e=0;e<variableLibraries.length;e++){var n=variableLibraries[e];0==e?t=n:t+=";"+n}if(t){var r=window._server+"/common/loadXml";$.ajax({type:"POST",data:{files:t},url:r,error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorVariableLibraries=t,$.each(window._VariableValueArray,function(e,n){n.initMenu(t)}),$.each(window._ParameterValueArray,function(t,e){e.initMenu(null,1)})}})}},window.refreshActionLibraries=function(){for(var t="",e=0;e<actionLibraries.length;e++){var n=actionLibraries[e];0==e?t=n:t+=";"+n}t||(t="builtinactions");var r=window._server+"/common/loadXml";$.ajax({type:"POST",data:{files:t},url:r,error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorActionLibraries=t,$.each(window._ActionTypeArray,function(e,n){n.initMenu(t)})}})},window.refreshFunctionLibraries=function(){var t=window._server+"/common/loadFunctions";$.ajax({url:t,error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorFunctionLibraries=t,$.each(window._FunctionValueArray,function(e,n){n.initMenu(t)})}})},window.refreshConstantLibraries=function(){for(var t="",e=0;e<constantLibraries.length;e++){var n=constantLibraries[e];0==e?t=n:t+=";"+n}if(t){var r=window._server+"/common/loadXml";$.ajax({data:{files:t},url:r,type:"POST",error:function(t){(0,i.handleError)(t)},success:function(t){window._uruleEditorConstantLibraries=t,$.each(window._ConstantValueArray,function(e,n){n.initMenu(t)})}})}}},function(t,e,n){"use strict";var i=a(n(90)),r=a(n(235));function a(t){return t&&t.__esModule?t:{default:t}}urule.InputType=function(t,e,n,r,a){this.container=$("<span>"),this.initSigmaMenu=!1,this.label=generateContainer(),this.rule=r,this.extInfo=a,this.container.append(this.label),e?(URule.setDomContent(this.label,e),this.label.css({color:"gray"})):(URule.setDomContent(this.label,"选择值类型"),this.label.css({color:"blue"})),this.functionProperty=n,this.dataContainer=$("<span>"),this.container.append(this.dataContainer),this.type="";var o=this,s=function(t){o.setValueType(t.name)};if(o.menu=new URule.menu.Menu({menuItems:[{label:"输入值",name:"Input",onClick:s},{label:"选择变量",name:"Variable",onClick:s},{label:"选择常量",name:"Constant",onClick:s},{label:"选择参数",name:"Parameter",onClick:s}]}),o.menu.menuItems.push({label:"选择方法",name:"Method",onClick:s},{label:"选择函数",name:"CommonFunction",onClick:s}),this.label.click(function(t){o.initMathMenu||window._decisionTree||(o.initMathMenu=!0,0==o.container.parents("condition").length&&o.menu.menuItems.push({label:"选择常用数学符号",name:"Math",onClick:s}));if(!o.initSigmaMenu){o.initSigmaMenu=!0;var e=o.container.parents("td");e.length>0&&e.data("sigma")&&o.menu.menuItems.splice(0,0,{name:"SignI",image:i.default,onClick:s})}o.menu.show(t)}),t){var c=$("<span style='color:red;font-size:11pt'><strong>"+t+"</strong></span>");this.container.append(c)}},urule.InputType.prototype.getDisplayContainer=function(){var t=$("<span>");return"Input"==this.type?t.append(this.simpleValue.getDisplayContainer()):"Variable"==this.type||"VariableCategory"==this.type?t.append(this.variableValue.getDisplayContainer()):"Constant"==this.type?t.append(this.constantValue.getDisplayContainer()):"Method"==this.type?t.append(this.methodValue.getDisplayContainer()):"Parameter"==this.type?t.append(this.parameterValue.getDisplayContainer()):"CommonFunction"==this.type?t.append(this.functionValue.getDisplayContainer()):"Math"==this.type?t.append(this.mathValue.getDisplayContainer()):this.type,t},urule.InputType.prototype.setValueType=function(t,e){switch(window._setDirty(),this.type=t,this.variableValue&&this.variableValue.getContainer().hide(),this.constantValue&&this.constantValue.getContainer().hide(),this.simpleValue&&this.simpleValue.getContainer().hide(),this.methodValue&&this.methodValue.getContainer().hide(),this.parameterValue&&this.parameterValue.getContainer().hide(),this.functionValue&&this.functionValue.getContainer().hide(),this.mathValue&&this.mathValue.getContainer().hide(),this.signI&&this.signI.getContainer().hide(),URule.setDomContent(this.label,""),this.label.css({color:"#FDFDFD"}),t){case"Input":this.simpleValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.simpleValue=new urule.SimpleValue(this.arithmetic,e,this.extInfo),this.dataContainer.append(this.simpleValue.getContainer())),this.simpleValue.getContainer().show(),this.type="Input";break;case"Constant":this.constantValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.constantValue=new urule.ConstantValue(this.arithmetic,e),this.dataContainer.append(this.constantValue.getContainer())),this.constantValue.getContainer().show(),this.type="Constant";break;case"Method":this.methodValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.methodValue=new urule.MethodValue(this.arithmetic,e,this.dataContainer),this.dataContainer.append(this.methodValue.getContainer())),this.methodValue.getContainer().show(),this.type="Method";break;case"Parameter":this.parameterValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.parameterValue=new urule.ParameterValue(this.arithmetic,e,"In"),this.dataContainer.append(this.parameterValue.getContainer())),this.parameterValue.getContainer().show(),this.type="Parameter";break;case"CommonFunction":this.functionValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.functionValue=new urule.FunctionValue(this.arithmetic,e,"In"),this.dataContainer.append(this.functionValue.getContainer())),this.functionValue.getContainer().show(),this.type="CommonFunction";break;case"Math":this.mathValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.mathValue=new urule.MathValue(this.arithmetic,e),this.dataContainer.append(this.mathValue.getContainer())),this.mathValue.getContainer().show(),this.type="Math";break;case"SignI":this.signI||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.signI=new r.default(this.arithmetic,e),this.dataContainer.append(this.signI.getContainer())),this.signI.getContainer().show(),this.type="SignI";break;default:this.variableValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.variableValue=new urule.VariableValue(this.arithmetic,e,"In",this.functionProperty),this.dataContainer.append(this.variableValue.getContainer())),this.variableValue.getContainer().show(),this.type="Variable"}},urule.InputType.prototype.toXml=function(){if(""==this.type)return"";var t="<value ";if("Input"==this.type){var e=this.simpleValue.getValue();if(!e||""==e)throw"输入值不能为空!";t+=' content="'+e+'"'}else if("Variable"==this.type||"VariableCategory"==this.type)t+=this.variableValue.toXml(),this.type=this.variableValue.getType();else if("Method"==this.type)t+=this.methodValue.toXml();else if("Parameter"==this.type)t+=this.parameterValue.toXml();else if("CommonFunction"==this.type)t+=this.functionValue.toXml();else if("Constant"===this.type)t+=this.constantValue.toXml();else if("Math"===this.type)t+=this.mathValue.toXml();else{if("SignI"!==this.type)throw"请选择具体值！";t+=this.signI.toXml()}if(t+=' type="'+this.type+'" ',t+=">",t+=this.arithmetic.toXml(),"Method"==this.type)for(var n=this.methodValue.action.parameters,i=0;i<n.length;i++){t+=n[i].toXml()}else if("CommonFunction"==this.type){t+=this.functionValue.getParameter().toXml()}else"Math"===this.type&&(t+=this.mathValue.math.toXml());return t+="</value>"},urule.InputType.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.NextType=function(t){this.container=$("<span>"),this.rule=t,this.inputType=null,this.paren=null,this.selectorLabel=generateContainer(),this.selectorLabel.css({fontWeight:"blod",color:"#fff"}),this.container.append(this.selectorLabel),URule.setDomContent(this.selectorLabel,"");var e=this,n=function(t){var n=t.name;e.doNext(n),window._setDirty()};e.menu=new URule.menu.Menu({menuItems:[{label:"值",name:"value",onClick:n},{label:"括号",name:"paren",onClick:n}]}),this.selectorLabel.click(function(t){e.menu.show(t)})},urule.NextType.prototype.initData=function(t){var e=t.value;if(e){var n=e.valueType;"Paren"==n?(this.doNext("paren"),this.paren.initData(e)):(this.doNext("value"),this.inputType.setValueType(n,e))}},urule.NextType.prototype.toXml=function(){if(this.paren)return this.paren.toXml();if(this.inputType)return this.inputType.toXml();throw"请选择具体值！"},urule.NextType.prototype.getDisplayContainer=function(){return this.inputType?this.inputType.getDisplayContainer():this.paren?this.paren.getDisplayContainer():null},urule.NextType.prototype.getContainer=function(){return this.container},urule.NextType.prototype.doNext=function(t){"value"==t?(this.paren&&(this.paren.getContainer().remove(),this.paren=null),this.inputType||(this.inputType=new urule.InputType(null,null,null,this.rule),this.container.append(this.inputType.getContainer()))):"paren"==t&&(this.inputType&&(this.inputType.getContainer().remove(),this.inputType=null),this.paren||(this.paren=new urule.Paren(this.rule),this.container.append(this.paren.getContainer())))}},function(t,e,n){"use strict";urule.Paren=function(t){this.container=$("<span>"),this.leftParen=$("<span>(</span>"),this.leftParen.css({color:"#000",fontWeight:"blod","padding-left":"3px","padding-right":"3px"}),this.rightParen=$("<span>)</span>"),this.rightParen.css({color:"#000",fontWeight:"blod","padding-left":"3px","padding-right":"3px"}),this.parenContainer=$("<span>"),this.container.append(this.leftParen),this.container.append(this.parenContainer),this.container.append(this.rightParen),this.inputType=new urule.InputType(null,null,null,t),this.parenContainer.append(this.inputType.getContainer()),this.arithmetic=new urule.ComplexArithmetic(t),this.container.append(this.arithmetic.getContainer())},urule.Paren.prototype.initData=function(t){var e=t.value,n=e.valueType;this.inputType.setValueType(n,e),this.arithmetic.initData(t.arithmetic)},urule.Paren.prototype.getDisplayContainer=function(){return this.inputType.getDisplayContainer()},urule.Paren.prototype.toXml=function(){if(!this.inputType)throw"请输入括号内容!";var t="<paren>";return t+=this.inputType.toXml(),this.arithmetic&&(t+=this.arithmetic.toXml()),t+="</paren>"},urule.Paren.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.MethodParameter=function(t){this.inputType=new urule.InputType(null,null,null,t),this.container=this.inputType.getContainer()},urule.MethodParameter.prototype.initData=function(t){if(t&&(this.name=t.name,this.type=t.type,t.value)){var e=t.value;e.valueType&&this.inputType.setValueType(e.valueType,e)}},urule.MethodParameter.prototype.toXml=function(){var t='<parameter name="'+this.name+'" type="'+this.type+'">';return t+=this.inputType.toXml(),t+="</parameter>"},urule.MethodParameter.prototype.getContainer=function(){return this.container},urule.MethodParameter.prototype.getInputType=function(){return this.inputType}},function(t,e,n){"use strict";urule.MethodAction=function(t){this.parameters=[],this.rule=t,this.init()},urule.MethodAction.prototype.init=function(){this.container=$("<span>"),this.nameContainer=$("<span>"),this.container.append(this.nameContainer),this.nameContainer.css({color:"darkblue"})},urule.MethodAction.prototype.initData=function(t){if(t){this.bean=t.beanId,this.name=t.beanLabel,this.method=t.methodName,this.methodLabel=t.methodLabel,this.knowledgePackage=t.knowledgePackage;var e=t.parameters;if(this.parameterCount=0,e&&(this.parameterCount=e.length),"invokeKnowledgePackage"===this.method){URule.setDomContent(this.nameContainer,"调用");var n=$("<span>知识包：</span>");this.packageSelect=$('<select class="form-control" style="display: inline-block;width: inherit;height: 22px;padding: 0px;"></select>'),n.append(this.packageSelect);var i=this;return window.loadKnowledgePackages(function(t){var e=!0,n=!1,r=void 0;try{for(var a,o=t[Symbol.iterator]();!(e=(a=o.next()).done);e=!0){var s=a.value;i.packageSelect.append('<option value="'+s.project+"/"+s.id+'">'+s.name+"</option>")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}i.knowledgePackage?i.packageSelect.val(i.knowledgePackage):i.packageSelect.append('<option selected value=""></option>')}),this.packageSelect.change(function(){i.knowledgePackage=$(this).val()}),void this.container.append(n)}if(0!==this.parameterCount){URule.setDomContent(this.nameContainer,this.methodLabel+"(");for(var r=0;r<this.parameterCount;r++){var a=e[r];if(r>0){var o=$("<span>;</span>");this.container.append(o)}if(this.parameterCount>0){var s=$("<span style='color:purple'>&nbsp;"+a.name+":</span>");this.container.append(s)}var c=new urule.MethodParameter(this.rule);this.parameters.push(c),this.container.append(c.getContainer()),c.initData(a)}this.container.append(")")}else{URule.setDomContent(this.nameContainer,this.methodLabel);n=$("<span style='color:gray'>(无参数)</span>");this.container.append(n)}}},urule.MethodAction.prototype.toXml=function(){if(!this.name||""==this.name)throw"请选择要执行的方法！";var t='<execute-method bean="'+this.bean+'" bean-label="'+this.name+'" method-label="'+this.methodLabel+'" method-name="'+this.method+'"';if("invokeKnowledgePackage"===this.method){if(!this.knowledgePackage)throw"请选择要调用的知识包！";t+=' knowledge-package="'+this.knowledgePackage+'"',t+=">"}else{t+=">";for(var e=0;e<this.parameters.length;e++){t+=this.parameters[e].toXml()}}return t+="</execute-method>"},urule.MethodAction.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.ParameterValue=function(t,e,n){this.arithmetic=t,this.container=$("<span>"),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#6b3db0"}),URule.setDomContent(this.label,"请选择参数"),t&&this.container.append(t.getContainer()),e&&this.initData(e),window._ParameterValueArray.push(this),this.act=n,this.initMenu()},urule.ParameterValue.prototype.getDisplayContainer=function(){var t="参数.";this.keylabel?t+=this.keylabel+"."+this.parameterLabel:t+=this.parameterLabel;var e=$("<span>"+t+"</span>");if(this.arithmetic){var n=this.arithmetic.getDisplayContainer();n&&e.append(n)}return e},urule.ParameterValue.prototype.matchAct=function(t){return!this.act||!t||t.indexOf(this.act)>-1},urule.ParameterValue.prototype.registerClick=function(t){this.callback=t},urule.ParameterValue.prototype.initMenu=function(t){var e,n,i,r=window._uruleEditorParameterLibraries;(t&&(r=t),r)&&(e=this,n=function(t){var n={keyName:t.keyname,keyLabel:t.keylabel,variableName:t.name,variableLabel:t.label,datatype:t.datatype};e.setValue(n),e.callback&&(n.type="parameter",e.callback(n))},i={menuItems:[]},$.each(r,function(t,r){$.each(r||[],function(t,r){if(e.matchAct(r.act)){var a={name:r.name,label:r.label,datatype:r.type,act:r.act,onClick:n},o=e.buildVariableSubMenusByType(r,n);o&&o.length>0&&(a.subMenu={menuItems:o}),i.menuItems.push(a)}})}),e.menu?e.menu.setConfig(i):e.menu=new URule.menu.Menu(i),this.label.click(function(t){e.menu.show(t)}))},urule.ParameterValue.prototype.buildVariableSubMenusByType=function(t,e){var n=t.dataType;if("String"==n||"Integer"==n||"Char"==n||"Double"==n||"Long"==n||"Float"==n||"BigDecimal"==n||"Boolean"==n||"Date"==n||"List"==n||"Set"==n||"Map"==n||"Enum"==n||"Object"==n)return null;var i=window._uruleEditorVariableLibraries||[],r=[],a=!0,o=!1,s=void 0;try{for(var c,l=i[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var u=c.value,f=!1,h=!0,d=!1,p=void 0;try{for(var b,g=u[Symbol.iterator]();!(h=(b=g.next()).done);h=!0){var y=b.value;if(y.name===n){var m=y.variables||[],v=!0,A=!1,w=void 0;try{for(var M,I=m[Symbol.iterator]();!(v=(M=I.next()).done);v=!0){var x=M.value;r.push({keyname:t.name,keylabel:t.label,name:x.name,label:x.label,datatype:x.type,onClick:e})}}catch(t){A=!0,w=t}finally{try{!v&&I.return&&I.return()}finally{if(A)throw w}}f=!0;break}}}catch(t){d=!0,p=t}finally{try{!h&&g.return&&g.return()}finally{if(d)throw p}}if(f)break}}catch(t){o=!0,s=t}finally{try{!a&&l.return&&l.return()}finally{if(o)throw s}}return r},urule.ParameterValue.prototype.setValue=function(t){this.parameterName=t.variableName,this.parameterLabel=t.variableLabel,this.datatype=t.datatype,this.keyname=t.keyName,this.keylabel=t.keyLabel;var e="参数";this.keylabel?e+="."+this.keylabel+"."+this.parameterLabel:e+="."+this.parameterLabel,URule.setDomContent(this.label,e),window._setDirty()},urule.ParameterValue.prototype.initData=function(t){this.setValue(t),this.arithmetic&&this.arithmetic.initData(t.arithmetic)},urule.ParameterValue.prototype.toXml=function(){if(!this.parameterLabel||""==this.parameterLabel)throw"参数不能为空！";var t=' var-category="参数" var="'+this.parameterName+'" var-label="'+this.parameterLabel+'" datatype="'+this.datatype+'"';return this.keylabel&&(t+=' key-label="'+this.keylabel+'" key-name="'+this.keyname+'"'),t},urule.ParameterValue.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.MethodValue=function(t,e){this.arithmetic=t,this.container=$("<span>"),this.rightParn=$("<span style='color:blue'>]</span>"),this.label=generateContainer(),this.fetchLength=!1,this.uppercase=!1,this.lowercase=!1,this.fetchSize=!1,this.container.append(this.label),this.label.css({color:"blue"}),this.actionContainer=$("<span></span>"),this.container.append(this.actionContainer),URule.setDomContent(this.label,"请选择方法"),t&&this.container.append(t.getContainer()),e&&(this.setAction(e),t.initData(e.arithmetic)),window._ActionTypeArray.push(this),this.initMenu()},urule.MethodValue.prototype.initMenu=function(t){var e,n,i,r=window._uruleEditorActionLibraries;t&&(r=t),e=this,n=function(t){var n=t.parent.parent;e.setAction({beanLabel:n.label,beanId:n.name,methodLabel:t.label,methodName:t.name,parameters:t.parameters})},i={menuItems:[]},$.each(r||[],function(t,e){var r=e.springBeans||[];$.each(r,function(t,e){var r={name:e.id,label:e.name},a=e.methods||[];$.each(a,function(t,e){r.subMenu||(r.subMenu={menuItems:[]}),r.subMenu.menuItems.push({name:e.methodName,label:e.name,parameters:e.parameters,onClick:n})}),i.menuItems.push(r)})}),e.menu?e.menu.setConfig(i):e.menu=new URule.menu.Menu(i),this.label.click(function(t){e.menu.show(t)})},urule.MethodValue.prototype.setAction=function(t){window._setDirty(),this.action&&this.action.getContainer().remove(),this.action=new urule.MethodAction,URule.setDomContent(this.label,"["),this.actionContainer.append(this.action.getContainer()),this.actionContainer.append(this.rightParn),this.action.initData(t)},urule.MethodValue.prototype.getDisplayContainer=function(){var t="";this.action&&(this.action.name,t=this.action.methodLabel);var e=$("<span>"+t+"</span>");if(this.arithmetic){var n=this.arithmetic.getDisplayContainer();n&&e.append(n)}return e},urule.MethodValue.prototype.toXml=function(){if(!this.action.bean||""==this.action.name)throw"执行方法不能为空！";var t='bean-name="'+this.action.bean+'"';return t+=' bean-label="'+this.action.name+'"',t+=' method-name="'+this.action.method+'"',t+=' method-label="'+this.action.methodLabel+'"'},urule.MethodValue.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.FunctionProperty=function(){this.container=$("<span>"),this.label=generateContainer(),this.container.append(this.label),URule.setDomContent(this.label,"选择属性"),this.label.css({color:"#004C85"})},urule.FunctionProperty.prototype.toXml=function(){if(!this.variableName)throw"请选择函数属性";var t='property-name="'+this.variableName+'"';return t+=' property-label="'+this.variableLabel+'"'},urule.FunctionProperty.prototype.initMenu=function(t){if(t){var e=this,n=function(t){e.setProperty({name:t.name,label:t.label,datatype:t.type})},i={menuItems:[]};$.each(t,function(t,e){i.menuItems.push({name:e.name,label:e.label,datatype:e.type,onClick:n})}),this.menu=new URule.menu.Menu(i),this.label.click(function(t){e.menu.show(t)})}},urule.FunctionProperty.prototype.setProperty=function(t){window._setDirty(),this.variableName=t.name,this.variableLabel=t.label,URule.setDomContent(this.label,this.variableLabel)},urule.FunctionProperty.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.FunctionParameter=function(t,e){this.container=$("<span>"),this.nameContainer=$("<span>"),this.rule=t,this.functionName=e,this.container.append(this.nameContainer),this.nameContainer.css({color:"gray"})},urule.FunctionParameter.prototype.initData=function(t){if(t){this.name=t.name,URule.setDomContent(this.nameContainer,this.name+":"),(t.needProperty||t.property)&&(this.functionProperty=new urule.FunctionProperty,this.functionProperty.setProperty({name:t.property,label:t.propertyLabel})),this.inputType=new urule.InputType(null,null,this.functionProperty,this.rule,this.functionName);var e=t.objectParameter;if(e){var n=e.valueType;this.inputType.setValueType(n,e)}this.container.append(this.inputType.getContainer()),this.functionProperty&&(this.container.append($("<span>，</span>")),this.container.append($("<span style='color:gray'>属性:</span>")),this.container.append(this.functionProperty.getContainer()))}},urule.FunctionParameter.prototype.toXml=function(){if(!this.name)return"";var t="<function-parameter ";t+='name="'+this.name+'" ',this.functionProperty&&(t+=this.functionProperty.toXml()),t+=">";var e=this.inputType.toXml();if(!e)throw"函数参数值【"+this.name+"】不能为空";return t+=e,t+="</function-parameter>"},urule.FunctionParameter.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.FunctionValue=function(t,e,n){this.arithmetic=t,this.container=$("<span>"),this.rule=n,this.leftParn=$("<span style='color:blue'>(</span>"),this.rightParn=$("<span style='color:blue'>)</span>"),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#008080"}),this.functionContainer=$("<span></span>"),this.container.append(this.functionContainer),URule.setDomContent(this.label,"请选择函数"),t&&this.container.append(t.getContainer()),e&&(this.setFunction(e),t&&t.initData(e.arithmetic)),window._FunctionValueArray.push(this),this.initMenu()},urule.FunctionValue.prototype.getDisplayContainer=function(){var t=$("<span>"+this.functionName+"</span>");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.FunctionValue.prototype.toXml=function(){if(!this.functionLabel||!this.functionName)throw"请选择函数";var t=' function-label="'+this.functionLabel+'"';return t+=' function-name="'+this.functionName+'"'},urule.FunctionValue.prototype.initMenu=function(t){var e,n,i,r=window._uruleEditorFunctionLibraries;t&&(r=t),e=this,n=function(t){e.setFunction({parameter:t.parameter,label:t.label,name:t.name})},i={menuItems:[]},$.each(r||[],function(t,e){i.menuItems.push({name:e.name,label:e.label,parameter:e.argument,onClick:n})}),e.menu?e.menu.setConfig(i):e.menu=new URule.menu.Menu(i),this.label.click(function(t){e.menu.show(t)})},urule.FunctionValue.prototype.initData=function(t){t&&this.setFunction(t)},urule.FunctionValue.prototype.setFunction=function(t){window._setDirty(),this.functionContainer.empty(),URule.setDomContent(this.label,t.label),this.functionContainer.append(this.leftParn),this.functionLabel=t.label,this.functionName=t.name,this.parameter=new urule.FunctionParameter(this.rule,t.name),this.parameter.initData(t.parameter),this.functionContainer.append(this.parameter.getContainer()),this.functionContainer.append(this.rightParn)},urule.FunctionValue.prototype.getFirstParameter=function(){return this.firstParameter},urule.FunctionValue.prototype.getParameter=function(){return this.parameter},urule.FunctionValue.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";var i,r=n(236),a=(i=r)&&i.__esModule?i:{default:i},o=n(4);urule.SimpleValue=function(t,e,n){this.container=$("<span>"),this.valueContainer=generateContainer(),this.valueContainer.css({color:"rgb(180,95,4)"}),this.editor=$('<input type=\'text\' class="form-control rule-text-editor" title="按Esc可取消编辑状态" style="height: 22px;">');var i=this;this.container.append(this.valueContainer).append(this.editor),this.editor.blur(function(){i.editor.hide();var t=i.editor.prop("value");""!=t&&URule.setDomContent(i.valueContainer,t),i.valueContainer.show(),$(this).trigger("DOMSubtreeModified"),window._setDirty()}).mousedown(function(t){t.stopPropagation()}).keydown(function(t){t.stopPropagation()}),(n&&"ActiveAgenda"===n||"ActivePended"===n)&&this.editor.dblclick(function(){(new a.default).show(function(t){i.editor.val(t),i.editor.hide(),URule.setDomContent(i.valueContainer,t),i.valueContainer.show(),$(this).trigger("DOMSubtreeModified")})}),i.editor.hide(),this.valueContainer.prop("innerText","请输入值"),this.valueContainer.click(function(){i.valueContainer.hide();var t=i.container.parent(),e=120;if(t&&t.parent()&&t.parent().parent()){var n=(t=t.parent().parent()).prop("class");n&&"htMiddle htDimmed current"==n&&(e=t.width()-20)}i.editor.css({width:e}),i.editor.css({display:"inline"}),i.editor.focus(),window._simple_value_input=i.editor,$(this).trigger("DOMSubtreeModified")}),this.arithmetic=t,this.container.append(t.getContainer()),this.initData(e)},urule.SimpleValue.prototype.getDisplayContainer=function(){var t=$("<span>"+this.editor.prop("value")+"</span>");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.SimpleValue.prototype.initData=function(t){if(t){var e=t.content;URule.setDomContent(this.valueContainer,e),this.editor.prop("value",e),this.arithmetic&&this.arithmetic.initData(t.arithmetic)}},urule.SimpleValue.prototype.getValue=function(){var t=this.editor.prop("value");return(0,o.escapeXml)(t)},urule.SimpleValue.prototype.getContainer=function(){return this.container}},,,function(t,e,n){"use strict";t.exports=n(96)},function(t,e,n){var i=n(229);"string"==typeof i&&(i=[[t.i,i,""]]);n(18)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(17)(!1)).push([t.i,"/**\r\n * ContextJS Styles\r\n * For use WITHOUT Twitters Bootstrap CSS\r\n */\r\n\r\n.nav-header {\r\n\tdisplay: block;\r\n\tpadding: 3px 15px;\r\n\tfont-size: 11px;\r\n\tfont-weight: bold;\r\n\tline-height: 20px;\r\n\tcolor: #999;\r\n\ttext-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);\r\n\ttext-transform: uppercase;\r\n}\r\n.dropdown-menu {\r\n\tposition: absolute;\r\n\ttop: 100%;\r\n\tleft: 0;\r\n\tz-index: 1000;\r\n\tdisplay: none;\r\n\tfloat: left;\r\n\tmin-width: 160px;\r\n\tpadding: 5px 0;\r\n\tmargin: 2px 0 0;\r\n\tlist-style: none;\r\n\tbackground-color: #ffffff;\r\n\tborder: 1px solid #ccc;\r\n\tborder: 1px solid rgba(0, 0, 0, 0.2);\r\n\tfont-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\r\n\tfont-size: 14px;\r\n\t*border-right-width: 2px;\r\n\t*border-bottom-width: 2px;\r\n\t-webkit-border-radius: 6px;\r\n\t-moz-border-radius: 6px;\r\n\tborder-radius: 6px;\r\n\t-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\r\n\t-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\r\n\tbox-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\r\n\t-webkit-background-clip: padding-box;\r\n\t-moz-background-clip: padding;\r\n\tbackground-clip: padding-box;\r\n\ttext-align:left;\r\n}\r\n.dropdown-menu.pull-right {\r\n\tright: 0;\r\n\tleft: auto;\r\n}\r\n.dropdown-menu .divider {\r\n\t*width: 100%;\r\n\theight: 1px;\r\n\tmargin: 9px 1px;\r\n\t*margin: -5px 0 5px;\r\n\toverflow: hidden;\r\n\tbackground-color: #e5e5e5;\r\n\t*border-bottom: 1px solid #ffffff;\r\n}\r\n.dropdown-menu a {\r\n\tdisplay: block;\r\n\tpadding: 3px 20px;\r\n\tclear: both;\r\n\tfont-weight: normal;\r\n\tline-height: 20px;\r\n\tcolor: #333333;\r\n\twhite-space: nowrap;\r\n\ttext-decoration: none;\r\n}\r\n.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a {\r\n\tcolor: #ffffff;\r\n\ttext-decoration: none;\r\n\tbackground-color: #0088cc;\r\n\tbackground-color: #0081c2;\r\n\tbackground-image: -moz-linear-gradient(top, #0088cc, #0077b3);\r\n\tbackground-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));\r\n\tbackground-image: -webkit-linear-gradient(top, #0088cc, #0077b3);\r\n\tbackground-image: -o-linear-gradient(top, #0088cc, #0077b3);\r\n\tbackground-image: linear-gradient(to bottom, #0088cc, #0077b3);\r\n\tbackground-repeat: repeat-x;\r\n\tfilter: progid: dximagetransform.microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);\r\n}\r\n.dropdown-menu .active > a, .dropdown-menu .active > a:hover {\r\n\tcolor: #ffffff;\r\n\ttext-decoration: none;\r\n\tbackground-color: #0088cc;\r\n\tbackground-color: #0081c2;\r\n\tbackground-image: linear-gradient(to bottom, #0088cc, #0077b3);\r\n\tbackground-image: -moz-linear-gradient(top, #0088cc, #0077b3);\r\n\tbackground-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));\r\n\tbackground-image: -webkit-linear-gradient(top, #0088cc, #0077b3);\r\n\tbackground-image: -o-linear-gradient(top, #0088cc, #0077b3);\r\n\tbackground-repeat: repeat-x;\r\n\toutline: 0;\r\n}\r\n.dropdown-menu .disabled > a, .dropdown-menu .disabled > a:hover {\r\n\tcolor: #999999;\r\n}\r\n.dropdown-menu .disabled > a:hover {\r\n\ttext-decoration: none;\r\n\tcursor: default;\r\n\tbackground-color: transparent;\r\n}\r\n.open {\r\n\t*z-index: 1000;\r\n}\r\n.open > .dropdown-menu {\r\n\tdisplay: block;\r\n}\r\n.pull-right > .dropdown-menu {\r\n\tright: 0;\r\n\tleft: auto;\r\n}\r\n.dropup .caret, .navbar-fixed-bottom .dropdown .caret {\r\n\tborder-top: 0;\r\n\tborder-bottom: 4px solid #000000;\r\n\tcontent: \"\\2191\";\r\n}\r\n.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu {\r\n\ttop: auto;\r\n\tbottom: 100%;\r\n\tmargin-bottom: 1px;\r\n}\r\n.dropdown-submenu {\r\n\tposition: relative;\r\n}\r\n.dropdown-submenu > .dropdown-menu {\r\n\ttop: 0;\r\n\tleft: 100%;\r\n\tmargin-top: -6px;\r\n\tmargin-left: -1px;\r\n\t-webkit-border-radius: 0 6px 6px 6px;\r\n\t-moz-border-radius: 0 6px 6px 6px;\r\n\tborder-radius: 0 6px 6px 6px;\r\n}\r\n.dropdown-submenu > .dropdown-menu.drop-left{\r\n\tleft:-80%;\r\n}\r\n.dropdown-submenu:hover .dropdown-menu {\r\n\tdisplay: block;\r\n}\r\n.dropdown-submenu > a:after {\r\n\tdisplay: block;\r\n\tfloat: right;\r\n\twidth: 0;\r\n\theight: 0;\r\n\tmargin-top: 5px;\r\n\tmargin-right: -10px;\r\n\tborder-color: transparent;\r\n\tborder-left-color: #cccccc;\r\n\tborder-style: solid;\r\n\tborder-width: 5px 0 5px 5px;\r\n\tcontent: \" \";\r\n}\r\n.dropdown-submenu:hover > a:after {\r\n\tborder-left-color: #ffffff;\r\n}\r\n.dropdown .dropdown-menu .nav-header {\r\n\tpadding-right: 20px;\r\n\tpadding-left: 20px;\r\n}\r\n/**\r\n * \tContext Styles\r\n */\r\n\r\n.dropdown-context .nav-header {\r\n\tcursor: default;\r\n}\r\n.dropdown-context:before, .dropdown-context-up:before {\r\n\tposition: absolute;\r\n\ttop: -7px;\r\n\tleft: 9px;\r\n\tdisplay: inline-block;\r\n\tborder-right: 7px solid transparent;\r\n\tborder-bottom: 7px solid #ccc;\r\n\tborder-left: 7px solid transparent;\r\n\tborder-bottom-color: rgba(0, 0, 0, 0.2);\r\n\tcontent: '';\r\n}\r\n.dropdown-context:after, .dropdown-context-up:after {\r\n\tposition: absolute;\r\n\ttop: -6px;\r\n\tleft: 10px;\r\n\tdisplay: inline-block;\r\n\tborder-right: 6px solid transparent;\r\n\tborder-bottom: 6px solid #ffffff;\r\n\tborder-left: 6px solid transparent;\r\n\tcontent: '';\r\n}\r\n.dropdown-context-up:before, .dropdown-context-up:after {\r\n\ttop: auto;\r\n\tbottom: -7px;\r\n\tz-index: 9999;\r\n}\r\n.dropdown-context-up:before {\r\n\tborder-right: 7px solid transparent;\r\n\tborder-top: 7px solid #ccc;\r\n\tborder-bottom: none;\r\n\tborder-left: 7px solid transparent;\r\n}\r\n.dropdown-context-up:after {\r\n\tborder-right: 6px solid transparent;\r\n\tborder-top: 6px solid #ffffff;\r\n\tborder-left: 6px solid transparent;\r\n\tborder-bottom: none;\r\n}\r\n.dropdown-context-sub:before, .dropdown-context-sub:after {\r\n\tdisplay: none;\r\n}\r\n.dropdown-context .dropdown-submenu:hover .dropdown-menu {\r\n\tdisplay: none;\r\n}\r\n.dropdown-context .dropdown-submenu:hover > .dropdown-menu {\r\n\tdisplay: none;\r\n}\r\n\r\n.compressed-context a{\r\n\tpadding-left: 14px;\r\n\tpadding-top: 0;\r\n\tpadding-bottom: 0;\r\n\tfont-size: 13px;\r\n\t}\r\n.compressed-context .divider{\r\n\tmargin: 5px 1px;\r\n\t}\r\n.compressed-context .nav-header{\r\n\tpadding:1px 13px;\r\n\t}\r\n",""])},function(t,e,n){(t.exports=n(17)(!1)).push([t.i,".rule {\r\n    margin: 5px;\r\n    padding: 8px;\r\n    border: none;\r\n    background: #ffffff;\r\n    border-bottom: solid 1px #d2d2d2;\r\n    box-shadow: none;\r\n    border-radius: inherit;\r\n}\r\n\r\n.rule-delete {\r\n    color: #F44336;\r\n    vertical-align: text-top;\r\n    cursor: pointer;\r\n}\r\n\r\n.rule-text-editor {\r\n    width: 260px;\r\n    display: inline-block;\r\n    height: 26px;\r\n    padding: 3px 3px;\r\n}\r\n\r\n.rule-property {\r\n    padding-right: 10px;\r\n    padding-left: 10px;\r\n    line-height: 28px;\r\n    display: inline-block;\r\n    border: solid gray 1px;\r\n    margin-left: 5px;\r\n}\r\n\r\n.rule-add-property {\r\n    cursor: pointer;\r\n    padding-left: 10px;\r\n    line-height: 30px;\r\n    color: blue;\r\n}\r\n\r\n.rule-property-del {\r\n    padding: 5px;\r\n    cursor: pointer;\r\n    color: #ff0600;\r\n}\r\n\r\n.rule-add-action {\r\n    color: blue;\r\n    cursor: pointer;\r\n    padding-left: 5px;\r\n    padding-bottom: 5px;\r\n}\r\n\r\n.rule-action {\r\n    padding: 1px;\r\n    line-height: 27px;\r\n}\r\n\r\n.rule-delete-action {\r\n    font-size: 10pt;\r\n    cursor: pointer;\r\n    color: #FF9800\r\n}\r\n\r\n.rule-join-node {\r\n    color: #795548;\r\n    font-size: 10pt;\r\n    vertical-align: text-top;\r\n    margin-left: 2px\r\n}\r\n\r\n.rule-join-container {\r\n    border: solid #999 1px;\r\n    padding: 1px;\r\n    background: #fff;\r\n}\r\n\r\n.rule-condition-delete{\r\n    color: #019dff;\r\n    cursor: pointer;\r\n    font-size: 9pt;\r\n    padding-left: 5px\r\n}\r\n\r\n.operation-container {\r\n    height: 20px;\r\n    cursor:pointer;\r\n    margin:0px;\r\n    color:white;\r\n    border:dashed transparent 1px;\r\n    padding: 1px;\r\n}",""])},function(t,e,n){"use strict";$,window.URule||(window.URule={}),URule.setDomContent=function(t,e){navigator.userAgent.indexOf("Firefox")>0?t.prop("textContent",e):t.prop("innerText",e)},URule.getDomContent=function(t){return navigator.userAgent.indexOf("Firefox")>0?t.prop("textContent"):t.prop("innerText")}},function(t,e,n){"use strict";urule.ComplexArithmetic=function(t){this.container=$("<span>"),this.operator="",this.rule=t,this.selectorLabel=generateContainer(),this.selectorLabel.css({fontWeight:"blod"}),this.container.append(this.selectorLabel),this.nextType=null;var e=this,n=function(t){e.setOperator(t.name)};e.menu=new URule.menu.Menu({menuItems:[{label:"+",name:"Add",onClick:n},{label:"-",name:"Sub",onClick:n},{label:"x",name:"Mul",onClick:n},{label:"÷",name:"Div",onClick:n},{label:"%",name:"Mod",onClick:n},{label:">",name:"Gt",onClick:n},{label:"<",name:"Lt",onClick:n},{label:"≥",name:"Gte",onClick:n},{label:"≤",name:"Lte",onClick:n},{label:"==",name:"Eq",onClick:n},{label:"≠",name:"NotEq",onClick:n},{label:"删除",onClick:function(){window._setDirty(),e.nextType&&(e.nextType.getContainer().remove(),e.nextType=null,URule.setDomContent(e.selectorLabel,""),e.selectorLabel.css({color:"#fff","padding-left":"0px","padding-right":"0px"}))}}]}),this.selectorLabel.click(function(t){e.menu.show(t)})},urule.ComplexArithmetic.prototype.setOperator=function(t){switch(window._setDirty(),this.operator=t,this.info="",t){case"Add":this.info="+";break;case"Sub":this.info="-";break;case"Mul":this.info="x";break;case"Div":this.info="÷";break;case"Mod":this.info="%";break;case"Gt":this.info=">";break;case"Gte":this.info="≥";break;case"Lt":this.info="<";break;case"Lte":this.info="≤";break;case"Eq":this.info="==";break;case"NotEq":this.info="≠"}URule.setDomContent(this.selectorLabel,this.info),this.selectorLabel.css({color:"green","padding-left":"4px","font-size":"14px"}),this.nextType||(this.nextType=new urule.NextType(this.rule),this.container.append(this.nextType.getContainer()))},urule.ComplexArithmetic.prototype.initData=function(t){if(t){var e=t.type;this.setOperator(e),this.nextType.initData(t)}},urule.ComplexArithmetic.prototype.getDisplayContainer=function(){if(this.nextType){var t=$("<span>"+this.info+"</span>");return t.append(this.nextType.getDisplayContainer()),t}return null},urule.ComplexArithmetic.prototype.toXml=function(){if(!this.nextType)return"";var t='<complex-arith type="'+this.operator+'">';return t+=this.nextType.toXml(),t+="</complex-arith>"},urule.ComplexArithmetic.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";urule.VariableValue=function(t,e,n,i){this.arithmetic=t,this.container=$("<span>");this.label=generateContainer(),this.functionProperty=i,this.container.append(this.label),this.label.css({color:"darkcyan"}),URule.setDomContent(this.label,"请选择变量"),t&&this.container.append(t.getContainer()),e&&this.initData(e),window._VariableValueArray.push(this),this.act=n,this.initMenu()},urule.VariableValue.prototype.registerClick=function(t){this.callback=t},urule.VariableValue.prototype.getDisplayContainer=function(){var t=$("<span style='color: #607d8b'>"+this.category+window._variable_link+this.variableLabel+"</span>");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.VariableValue.prototype.matchAct=function(t){return!this.act||t.indexOf(this.act)>-1},urule.VariableValue.prototype.initMenu=function(t){var e=window._uruleEditorVariableLibraries;if(t&&(e=t),e){var n,i,r,a=void 0;n=this,i=function(t){var e={variableCategory:t.label,variables:t.variables};n.setValue(e),n.callback&&(e.type="variable",n.callback(e))},r=function(t){var e={variables:t.parent.parent.variables,variableCategory:t.parent.parent.label,variableLabel:t.label,variableName:t.name,datatype:t.datatype};n.setValue(e),n.callback&&(e.type="variable",n.callback(e))},a={menuItems:[]},$.each(e,function(t,e){$.each(e,function(t,e){var o=e.variables;n.functionProperty&&n.category&&e.name==n.category&&n.functionProperty.initMenu(o);var s={label:e.name,variables:o,onClick:i};$.each(o||[],function(t,e){if(s.subMenu||(s.subMenu={menuItems:[]}),n.matchAct(e.act)){var i={name:e.name,label:e.label,datatype:e.type,act:e.act,variables:o,onClick:r};s.subMenu.menuItems.push(i)}}),a.menuItems.push(s)})}),n.menu?n.menu.setConfig(a):n.menu=new URule.menu.Menu(a),this.label.click(function(t){n.menu.show(t)})}},urule.VariableValue.prototype.setValue=function(t){this.category=t.variableCategory,this.variableName=t.variableName,this.variableLabel=t.variableLabel,this.datatype=t.datatype,this.functionProperty&&this.functionProperty.initMenu(t.variables),this.variableLabel?URule.setDomContent(this.label,this.category+window._variable_link+this.variableLabel):URule.setDomContent(this.label,this.category),window._setDirty()},urule.VariableValue.prototype.initData=function(t){this.setValue(t),this.arithmetic&&this.arithmetic.initData(t.arithmetic)},urule.VariableValue.prototype.toXml=function(){if(!this.category||""==this.category)throw"变量不能为空！";var t='var-category="'+this.category+'"';return this.variableName&&(t+=' var="'+this.variableName+'" var-label="'+this.variableLabel+'" datatype="'+this.datatype+'"'),t},urule.VariableValue.prototype.getType=function(){return this.variableName?"Variable":"VariableCategory"},urule.VariableValue.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";var i=n(4);urule.ConstantValue=function(t,e){this.arithmetic=t,this.container=$("<span>"),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#0174DF"}),this.label.prop("innerText","请选择常量"),t&&this.container.append(t.getContainer()),e&&(this.setValue(e),t.initData(e.arithmetic)),this.initMenu(),window._ConstantValueArray.push(this)},urule.ConstantValue.prototype.setValue=function(t){this.category=t.constantCategory,this.constantName=t.constantName,this.constantLabel=t.constantLabel,this.dataType=t.datatype,window._constant_link?URule.setDomContent(this.label,this.category+window._constant_link+this.constantLabel):URule.setDomContent(this.label,this.constantLabel),window._setDirty()},urule.ConstantValue.prototype.initMenu=function(t){var e,n,i,r=window._uruleEditorConstantLibraries;(t&&(r=t),r)&&(e=this,n=function(t){e.setValue({constantCategory:t.parent.parent.label,constantLabel:t.label,constantName:t.name,datatype:t.type})},i={menuItems:[]},$.each(r,function(t,e){var r=e.categories;$.each(r,function(t,e){var r={label:e.label},a=e.constants;$.each(a,function(t,e){r.subMenu||(r.subMenu={menuItems:[]}),r.subMenu.menuItems.push({name:e.name,label:e.label,type:e.type,onClick:n})}),i.menuItems.push(r)})}),e.menu?e.menu.setConfig(i):e.menu=new URule.menu.Menu(i),this.label.click(function(t){e.menu.show(t)}))},urule.ConstantValue.prototype.getDisplayContainer=function(){var t=$("<span>"+this.constantLabel+"</span>");if(window._constant_link&&(t=$("<span>"+this.category+window._constant_link+this.constantLabel+"</span>")),this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.ConstantValue.prototype.toXml=function(){if(!this.category)throw"常量不能为空！";var t='const-category="'+this.category+'" const="'+(0,i.escapeXml)(this.constantName)+'" const-label="'+this.constantLabel+'"';return this.dataType&&(t+=' data-type="'+this.dataType+'"'),t},urule.ConstantValue.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(90),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.rule=e.rule,this.arithmetic=e,this.container=$('<span><img src="'+o.default+'" style="height: 16px"></span>'),this.container.append(this.arithmetic.getContainer()),this.initData(n)}return r(t,[{key:"initData",value:function(t){t&&t.arithmetic&&this.arithmetic.initData(t.arithmetic)}},{key:"toXml",value:function(){return""}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(4);var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dialog=$('<div class="modal fade" style="overflow: auto" role="dialog" aria-hidden="true">\n            <div class="modal-dialog modal-lg">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            执行组选择\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>');var e=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(e,n)}return i(t,[{key:"initBody",value:function(t,e){var n=$("<div><h3>数据加载中，请稍后...</h3></div>");t.append(n);var i=$('<div style="margin: 5px"><label>执行组名：</label></div>');t.append(i);var a=$('<input type="text" class="form-control" style="width:300px;display: inline-block">');i.append(a);var o=$('<button type="button" class="btn btn-default" style="margin-left: 10px">查询</button>');i.append(o);var s=$('<div style="margin: 5px"></div>');t.append(s);var c=$('<table class="table table-bordered"><thead><tr style="background: #f1f1f1"><td style="width: 260px">执行组名</td><td>所在文件</td></tr></thead></table>');s.append(c);var l=$("<tbody></tbody>");c.append(l);var u=this,f=[];$.ajax({url:window._server+"/ruleseteditor/loadProjectPendedGroups",type:"POST",data:{project:window._project},success:function(t){n.hide();var e=function(e){var n=$('<tr title="双击选择当前执行组"><td class="gname">'+e+"</td><td>"+t[e]+"</td></tr>");l.append(n),f.push(n),n.dblclick(function(){u.callback(e),u.dialog.modal("hide")})};for(var i in t)e(i)},error:function(t){n.hide(),(0,r.handleError)(t)}}),o.click(function(){var t=a.val(),e=!0,n=!1,i=void 0;try{for(var r,o=f[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var s=r.value;if(t)s.find(".gname").html().indexOf(t)>-1?s.show():s.hide();else s.show()}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}})}},{key:"show",value:function(t){this.callback=t,this.currentGroupName=null,this.dialog.modal("show")}}]),t}();e.default=a},function(t,e,n){n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(112)},function(t,e,n){var i;!function(){"use strict";var r=function(){var t,e,n=[],i=-1,r=0,a=!1;return e=function(t,e){return t&&"function"==typeof t[e]?(a=!0,t[e](),a=!1,this):this},{add:function(e){return a?this:(n.splice(i+1,n.length-i),n.push(e),r&&n.length>r&&(s=0,c=-(r+1),(o=n).splice(s,!c||1+c-s+(!(c<0^s>=0)&&(c<0||-1)*o.length)),o.length),i=n.length-1,t&&t(),this);var o,s,c},setCallback:function(e){t=e},undo:function(){var r=n[i];return r?(e(r,"undo"),i-=1,t&&t(),this):this},redo:function(){var r=n[i+1];return r?(e(r,"redo"),i+=1,t&&t(),this):this},clear:function(){var e=n.length;n=[],i=-1,t&&e>0&&t()},hasUndo:function(){return-1!==i},hasRedo:function(){return i<n.length-1},getCommands:function(){return n},getIndex:function(){return i},setLimit:function(t){r=t}}};void 0===(i=function(){return r}.call(e,n,e,t))||(t.exports=i)}()},function(t,e,n){(function(i){var r;!function(a){"use strict";var o,s,c,l;a?function(){var t=a.crypto||a.msCrypto;if(!o&&t&&t.getRandomValues)try{var e=new Uint8Array(16);l=o=function(){return t.getRandomValues(e),e},o()}catch(t){}if(!o){var n=new Array(16);s=o=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}():function(){try{var t=n(115).randomBytes;c=o=t&&function(){return t(16)},o()}catch(t){}}();for(var u="function"==typeof i?i:Array,f=[],h={},d=0;d<256;d++)f[d]=(d+256).toString(16).substr(1),h[f[d]]=d;function p(t,e){var n=e||0,i=f;return i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]}var b=o(),g=[1|b[0],b[1],b[2],b[3],b[4],b[5]],y=16383&(b[6]<<8|b[7]),m=0,v=0;function A(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new u(16):null,t=null);var r=(t=t||{}).random||(t.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var a=0;a<16;a++)e[i+a]=r[a];return e||p(r)}var w=A;w.v1=function(t,e,n){var i=e&&n||0,r=e||[],a=null!=(t=t||{}).clockseq?t.clockseq:y,o=null!=t.msecs?t.msecs:(new Date).getTime(),s=null!=t.nsecs?t.nsecs:v+1,c=o-m+(s-v)/1e4;if(c<0&&null==t.clockseq&&(a=a+1&16383),(c<0||o>m)&&null==t.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=o,v=s,y=a;var l=(1e4*(268435455&(o+=122192928e5))+s)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=255&l;var u=o/4294967296*1e4&268435455;r[i++]=u>>>8&255,r[i++]=255&u,r[i++]=u>>>24&15|16,r[i++]=u>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a;for(var f=t.node||g,h=0;h<6;h++)r[i+h]=f[h];return e||p(r)},w.v4=A,w.parse=function(t,e,n){var i=e&&n||0,r=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){r<16&&(e[i+r++]=h[t])});r<16;)e[i+r++]=0;return e},w.unparse=p,w.BufferClass=u,w._rng=o,w._mathRNG=s,w._nodeRNG=c,w._whatwgRNG=l,t.exports?t.exports=w:void 0===(r=function(){return w}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof window?window:null)}).call(this,n(3).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PushDialog=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(197);!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r);e.PushDialog=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true" data-backdrop="static">\n            <div class="modal-dialog">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            推送知识包【'+n+'】到客户端\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>');var r=this.dialog.find(".modal-body"),a=this.dialog.find(".modal-footer");this.initBody(r,a,e,n,i)}return i(t,[{key:"initBody",value:function(t,e,n,i,a){var o=$('<table class="table table-bordered"></table>');t.append(o);var s=$('<thead><tr style="background: #fdfdfd">\n            <td style="width: 200px">客户端名称</td>\n            <td>URL</td>\n            <td style="width: 50px">操作</td>\n        </tr></thead>');o.append(s);var c=$("<tbody></tbody>");o.append(c);var l=$('<button class="btn btn-default">推送到所有客户端</button>');e.append(l),l.click(function(){0!==window._clientSize?(0,r.pushToClients)(n,i,null,a):bootbox.alert("当前未定义任何客户端，不能进行此操作！")}),(0,r.loadClients)(n,function(t){window._clientSize=t.length;var e=function(t){var e=$("<tr><td>"+t.name+"</td><td>"+t.client+"</td></tr>"),o=$("<td></td>"),s=$('<button class="btn btn-link" title="将知识包推送到当前客户端"><i class="glyphicon glyphicon-send"></i></button>');o.append(s),s.click(function(){(0,r.pushToClients)(n,i,t.client,a)}),e.append(o),c.append(e)},o=!0,s=!1,l=void 0;try{for(var u,f=t[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){e(u.value)}}catch(t){s=!0,l=t}finally{try{!o&&f.return&&f.return()}finally{if(s)throw l}}})}},{key:"show",value:function(){this.dialog.modal("show")}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(203),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.output=e,this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true">\n            <div class="modal-dialog">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            添加字段\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>');var n=this.dialog.find(".modal-body"),i=this.dialog.find(".modal-footer");this.initBody(n,i)}return r(t,[{key:"initBody",value:function(t,e){var n=this,i=$('<div class="form-group"><label>请选择字段：</label></div>');t.append(i),this.fieldSelect=$('<select class="form-control"></select>'),i.append(this.fieldSelect),this.fieldSelect.change(function(){var t=$(this).val();n.field=t?n.findVariable(t):null});var r=$('<button type="button" class="btn btn-default">确定</button>');e.append(r),r.click(function(){if(n.field){var t=new o.default(n.field,n.output);n.callback(t),n.dialog.modal("hide")}else bootbox.alert("请先选择变量!")})}},{key:"findVariable",value:function(t){var e=null,n=!0,i=!1,r=void 0;try{for(var a,o=this.variables[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.name===t){e=s;break}}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}return e}},{key:"initData",value:function(t){this.fieldSelect.append("<option></option>");var e=!0,n=!1,i=void 0;try{for(var r,a=t[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;this.fieldSelect.append('<option value="'+o.name+'">'+o.label+"</option>")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"show",value:function(t,e){this.variables=t,this.callback=e,this.initData(t),this.dialog.modal("show")}}]),t}();e.default=s},,function(t,e,n){"use strict";urule.ComparisonOperator=function(t,e){this.parentJoin=e,this.inputType=null,this.operator="",this.container=generateContainer(),URule.setDomContent(this.container,"请选择比较操作符"),this.container.css({"font-size":"12px",color:"red",fontWeight:"bold","margin-right":"1px"});var n=this,i=function(t){n.setOperator(t.name)};n.menu=new URule.menu.Menu({onHide:function(){t()},menuItems:[{label:"大于",name:"GreaterThen",onClick:i},{label:"大于或等于",name:"GreaterThenEquals",onClick:i},{label:"小于",name:"LessThen",onClick:i},{label:"小于或等于",name:"LessThenEquals",onClick:i},{label:"等于",name:"Equals",onClick:i},{label:"等于(不分大小写)",name:"EqualsIgnoreCase",onClick:i},{label:"开始于",name:"StartWith",onClick:i},{label:"不开始于",name:"NotStartWith",onClick:i},{label:"结束于",name:"EndWith",onClick:i},{label:"不结束于",name:"NotEndWith",onClick:i},{label:"不等于",name:"NotEquals",onClick:i},{label:"不等于(不分大小写)",name:"NotEqualsIgnoreCase",onClick:i},{label:"在集合",name:"In",onClick:i},{label:"不在集合",name:"NotIn",onClick:i},{label:"为空",name:"Null",onClick:i},{label:"不为空",name:"NotNull",onClick:i},{label:"匹配正则表达式",name:"Match",onClick:i},{label:"不匹配正则表达式",name:"NotMatch",onClick:i},{label:"包含",name:"Contain",onClick:i},{label:"不包含",name:"NotContain",onClick:i}]}),this.container.click(function(t){n.menu.show(t)})},urule.ComparisonOperator.prototype.initRightValue=function(t){this.inputType&&t&&this.inputType.setValueType(t.valueType,t)},urule.ComparisonOperator.prototype.setOperator=function(t){switch(t){case"GreaterThen":this.operator="GreaterThen",URule.setDomContent(this.container,"大于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"GreaterThenEquals":this.operator="GreaterThenEquals",URule.setDomContent(this.container,"大于或等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"LessThen":this.operator="LessThen",URule.setDomContent(this.container,"小于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"LessThenEquals":this.operator="LessThenEquals",URule.setDomContent(this.container,"小于或等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"StartWith":this.operator="StartWith",URule.setDomContent(this.container,"开始于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"Equals":this.operator="Equals",URule.setDomContent(this.container,"等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"EqualsIgnoreCase":this.operator="EqualsIgnoreCase",URule.setDomContent(this.container,"等于(不分大小写)"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotStartWith":this.operator="NotStartWith",URule.setDomContent(this.container,"不开始于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"EndWith":this.operator="EndWith",URule.setDomContent(this.container,"结束于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotEndWith":this.operator="NotEndWith",URule.setDomContent(this.container,"不结束于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotEquals":this.operator="NotEquals",URule.setDomContent(this.container,"不等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotEqualsIgnoreCase":this.operator="NotEqualsIgnoreCase",URule.setDomContent(this.container,"不等于(不分大小写)"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"In":this.operator="In",URule.setDomContent(this.container,"在集合"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType("之中");break;case"NotIn":this.operator="NotIn",URule.setDomContent(this.container,"不在集合"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType("之中");break;case"Null":this.operator="Null",URule.setDomContent(this.container,"为空"),this.inputType&&(this.inputType.getContainer().remove(),this.inputType=null);break;case"NotNull":this.operator="NotNull",URule.setDomContent(this.container,"不为空"),this.inputType&&(this.inputType.getContainer().remove(),this.inputType=null);break;case"Match":this.operator="Match",URule.setDomContent(this.container,"匹配正则表达式"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotMatch":this.operator="NotMatch",URule.setDomContent(this.container,"不匹配正则表达式"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"Contain":this.operator="Contain",URule.setDomContent(this.container,"包含"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotContain":this.operator="NotContain",URule.setDomContent(this.container,"不包含"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType}window._setDirty()},urule.ComparisonOperator.prototype.getOperator=function(){if(""==this.operator)throw"请选择比较操作符！";return this.operator},urule.ComparisonOperator.prototype.getInputType=function(){return this.inputType},urule.ComparisonOperator.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";var i=n(26),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(14));urule.ConfigActionDialog=function(t){this.parent=t,this.init()},urule.ConfigActionDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("动作库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){r.eventEmitter.emit(r.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ActionLibrary",callback:function(e,n){var r="jcr:"+e;"LATEST"!==n&&(r+=":"+n),-1===window.actionLibraries.indexOf(r)?(t.tbody.append(t.newLibRow(r)),window.actionLibraries.push(r),window.refreshActionLibraries(),window._setDirty()):i.MsgBox.alert("动作库文件已存在")}})}}])},urule.ConfigActionDialog.prototype.init=function(){var t=$('<table class="table table-bordered">\n\t\t<thead><tr style="background: #f9f9f9">\n\t\t\t<td>动作库文件</td><td style="width: 70px">操作</td>\n\t\t</tr></thead>\n\t</table>');this.tbody=$("<tbody></tbody>"),t.append(this.tbody),this.dialogContent=$("<div>"),this.dialogContent.append(t);for(var e=0;e<window.actionLibraries.length;e++){var n=window.actionLibraries[e];this.tbody.append(this.newLibRow(n))}},urule.ConfigActionDialog.prototype.newLibRow=function(t){var e=$("<tr>\n\t\t\t<td>"+t+"</td>\n\t\t</tr>"),n=$("<td></td>"),i=$('<button type="button" class="btn btn-link">删除</button>');return n.append(i),i.click(function(){var n=window.actionLibraries.indexOf(t);window.actionLibraries.splice(n,1),e.remove(),window.refreshActionLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";var i=n(26),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(14));urule.ConfigConstantDialog=function(t){this.parent=t,this.init()},urule.ConfigConstantDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("常量库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){r.eventEmitter.emit(r.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ConstantLibrary",callback:function(e,n){var r="jcr:"+e;"LATEST"!==n&&(r+=":"+n),-1===window.constantLibraries.indexOf(r)?(t.tbody.append(t.newLibRow(r)),window.constantLibraries.push(r),window.refreshConstantLibraries(),window._setDirty()):i.MsgBox.alert("常量库文件已存在")}})}}])},urule.ConfigConstantDialog.prototype.init=function(){var t=$('<table class="table table-bordered">\n\t\t<thead><tr style="background: #f9f9f9">\n\t\t\t<td>常量库文件</td><td style="width: 70px">操作</td>\n\t\t</tr></thead>\n\t</table>');this.tbody=$("<tbody></tbody>"),t.append(this.tbody),this.dialogContent=$("<div>"),this.dialogContent.append(t);for(var e=0;e<window.constantLibraries.length;e++){var n=window.constantLibraries[e];this.tbody.append(this.newLibRow(n))}},urule.ConfigConstantDialog.prototype.newLibRow=function(t){var e=$("<tr>\n\t\t\t<td>"+t+"</td>\n\t\t</tr>"),n=$("<td></td>"),i=$('<button type="button" class="btn btn-link">删除</button>');return n.append(i),i.click(function(){var n=window.constantLibraries.indexOf(t);window.constantLibraries.splice(n,1),e.remove(),window.refreshConstantLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";var i=n(26),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(14));urule.ConfigParameterDialog=function(t){this.parent=t,this.init()},urule.ConfigParameterDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("参数库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){r.eventEmitter.emit(r.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ParameterLibrary",callback:function(e,n){var r="jcr:"+e;"LATEST"!==n&&(r+=":"+n),-1===window.parameterLibraries.indexOf(r)?(t.tbody.append(t.newLibRow(r)),window.parameterLibraries.push(r),window.refreshParameterLibraries(),window._setDirty()):i.MsgBox.alert("参数库文件已存在")}})}}])},urule.ConfigParameterDialog.prototype.init=function(){var t=$('<table class="table table-bordered">\n\t\t<thead><tr style="background: #f9f9f9">\n\t\t\t<td>参数库文件</td><td style="width: 70px">操作</td>\n\t\t</tr></thead>\n\t</table>');this.tbody=$("<tbody></tbody>"),t.append(this.tbody),this.dialogContent=$("<div>"),this.dialogContent.append(t);for(var e=0;e<window.parameterLibraries.length;e++){var n=window.parameterLibraries[e];this.tbody.append(this.newLibRow(n))}},urule.ConfigParameterDialog.prototype.newLibRow=function(t){var e=$("<tr>\n\t\t\t<td>"+t+"</td>\n\t\t</tr>"),n=$("<td></td>"),i=$('<button type="button" class="btn btn-link">删除</button>');return n.append(i),i.click(function(){var n=window.parameterLibraries.indexOf(t);window.parameterLibraries.splice(n,1),e.remove(),window.refreshParameterLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";var i=n(26),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(14));urule.ConfigVariableDialog=function(t){this.parent=t,this.init()},urule.ConfigVariableDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("变量库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){r.eventEmitter.emit(r.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"VariableLibrary",callback:function(e,n){var r="jcr:"+e;"LATEST"!==n&&(r+=":"+n),-1===window.variableLibraries.indexOf(r)?(t.tbody.append(t.newLibRow(r)),window.variableLibraries.push(r),window.refreshVariableLibraries(),window._setDirty()):i.MsgBox.alert("变量库文件已存在")}})}}])},urule.ConfigVariableDialog.prototype.init=function(){var t=$('<table class="table table-bordered">\n\t\t<thead><tr style="background: #f9f9f9">\n\t\t\t<td>变量库文件</td><td style="width: 70px">操作</td>\n\t\t</tr></thead>\n\t</table>');this.tbody=$("<tbody></tbody>"),t.append(this.tbody),this.dialogContent=$("<div>"),this.dialogContent.append(t);for(var e=0;e<window.variableLibraries.length;e++){var n=window.variableLibraries[e];this.tbody.append(this.newLibRow(n))}},urule.ConfigVariableDialog.prototype.newLibRow=function(t){var e=$("<tr>\n\t\t\t<td>"+t+"</td>\n\t\t</tr>"),n=$("<td></td>"),i=$('<button type="button" class="btn btn-link">删除</button>');return n.append(i),i.click(function(){var n=window.variableLibraries.indexOf(t);window.variableLibraries.splice(n,1),e.remove(),window.refreshVariableLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";urule.SimpleArithmetic=function(){this.container=$("<span>"),this.selectorLabel=generateContainer(),URule.setDomContent(this.selectorLabel,"."),this.selectorLabel.css({color:"#FFF"}),this.operator="",this.container.append(this.selectorLabel),this.value=null;var t=this,e=function(e){t.setOperator(e.name)};t.menu=new URule.menu.Menu({menuItems:[{label:"+",name:"Add",onClick:e},{label:"-",name:"Sub",onClick:e},{label:"x",name:"Mul",onClick:e},{label:"÷",name:"Div",onClick:e},{label:"%",name:"Mod",onClick:e},{label:"删除",onClick:function(){t.value&&(t.value.getContainer().remove(),t.operator=null,t.value=null,URule.setDomContent(t.selectorLabel,"."),t.selectorLabel.css({color:"#FFF","padding-left":"0px","padding-right":"0px"}))}}]}),this.selectorLabel.click(function(e){t.menu.show(e)})},urule.SimpleArithmetic.prototype.initData=function(t){if(t){var e=t.type;this.setOperator(e),this.value.initData(t.value)}},urule.SimpleArithmetic.prototype.setOperator=function(t){window._setDirty(),this.operator=t;var e="";switch(t){case"Add":e="+";break;case"Sub":e="-";break;case"Mul":e="x";break;case"Div":e="÷";break;case"Mod":e="%"}this.selectorLabel.css({color:"green",fontWeight:"blod","padding-left":"5px","padding-right":"5px"}),URule.setDomContent(this.selectorLabel,e),this.value||(this.simpleArithmetic=new urule.SimpleArithmetic,this.value=new urule.SimpleValue(this.simpleArithmetic),this.container.append(this.value.getContainer()))},urule.SimpleArithmetic.prototype.toXml=function(){if(!this.operator||""==this.operator)return"";if(!this.value)throw"请输入具体值！";var t=this.value.getValue();if(""==t)throw"请输入具体值！";var e='<simple-arith type="'+this.operator+'" value="'+t+'">';return e+=this.simpleArithmetic.toXml(),e+="</simple-arith>"},urule.SimpleArithmetic.prototype.getContainer=function(){return this.container}},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjIuOTgwMzkyIiB3aWR0aD0iMi45ODAzOTIiIHk9Ii0xIiB4PSItMSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8cGF0aCBzdHJva2U9Im51bGwiIGlkPSJzdmdfMSIgZmlsbD0iIzAwMDAwMCIgZD0ibTEwLjcxNzA2NywxMC40ODMzNTJsLTYuNTM2MDI2LC05LjEzODU2NWw5LjY5NzI0NCwwYzEuOTY1MDgsMCAzLjYzMTEyMywxLjIxMTQ1MyA1LjAxMjM3NywzLjYzNDM1OGwwLjMyNzUxMiwwbC0wLjY5Nzc0NSwtNC44MDYzMDlsLTE3Ljg1NjU5MSwwbDcuODE3NTk4LDEwLjMyMzY5MWwtNy44MTc1OTgsOS4yOTY1ODJsMTcuODU2NTkxLDBsMC42OTc3NDUsLTQuODE5NDcybC0wLjMyNzUxMiwwYy0xLjMxMDA1NywxLjk0ODg1MiAtMi44MDUyMzEsMi45MjMyODQgLTQuNDcxMjc1LDIuOTIzMjg0bC0xMC4yNTI1ODQsMGw2LjU1MDI2NCwtNy40MTM1N2wwLDAuMDAwMDAxeiIvPg0KIDwvZz4NCjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTgzNzMzNjUxMTkyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijg4NSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik03MjAuODYxMDUyMyAyNzguMTI5ODgzMjhjMCA4LjY5NDQxMjA3LTAuNTEyMTc1MzMgMjEuMjI1NDI1OTQtMS41MzQ5NTQ5MiAzNy41ODk4OTk0MS0zLjA2ODMzODc4IDExMS40OTA4MzA5OC00LjYwMzI5MzcyIDE4OS45OTE5MTQwOC00LjYwMzI5MzcyIDIzNS41MDk1MzM2M3Y2Mi45MDY0NDM3NGMwIDg2LjQzMDM3NDM1IDQuMzQ3MjA2MDMgMTQxLjAyNDE4MDg2IDEzLjA0MTYxODExIDE2My43ODE0MTk1NSA4LjY5NDQxMjA3IDIyLjc1ODgwOTc5IDI0LjgwNDM2ODk2IDM0LjEzODIxNDY4IDQ4LjMyOTg3MDY5IDM0LjEzODIxNDY4IDI5LjE1MTU3NTAxIDAgNTEuMDEzMjkyNDItMTQuODMxMDg5NjMgNjUuNTg5ODY1NDQtNDQuNDkzMjY4OSAxNC41NzUwMDE5Ni0yOS42NjIxNzkyNiAyMy4xNDIxNTU3NS03Ni40NTg2NjYwOSAyNS42OTgzMTkxOS0xNDAuMzg2MzE4MzJoMzkuMTI0ODU0MzV2Ny42NzE2MzI0OWMwIDgzLjg3NDIxMDkxLTEzLjQyNDk2NDA3IDE0NS42Mjc0NzQ1Ny00MC4yNzQ4OTIyNCAxODUuMjYyOTMzMTctMjYuODQ5OTI4MTUgMzkuNjM1NDU4Ni02OC45MTQyOTE5IDU5LjQ1MzE4NzktMTI2LjE5MzA5MTIzIDU5LjQ1MzE4NzktNTkuODM4MTA0OTUgMC0xMDEuNzczNjM5MzItMjAuNTg0NDIxMjMtMTI1LjgwOTc0NTI3LTYxLjc1NDgzNDc2LTI0LjAzNzY3NzA1LTQxLjE3MDQxMzU0LTM2LjA1NjUxNTU3LTEyNy4yMTU4NzA4My0zNi4wNTY1MTU1Ni0yNTguMTQxMDg1MTMgMC0xNS44NTIyOTgxMyAwLjc2ODI2MzAyLTU2Ljg5NTQ1MzM4IDIuMzAxNjQ2ODQtMTIzLjEyNDc1MjQ1IDEuNTM0OTU0OTMtNjYuMjI5Mjk5MDcgMi44MTIyNTExLTEyMC41NjcwMTc5MyAzLjgzNjYwMTgxLTE2My4wMTYyOTg3Mi0xOC45MjM3NzkwOC0xLjAyMTIwODUtNDUuMDA1NDQ0MjMtMS45MTY3Mjk4LTc4LjI0ODEzNzYzLTIuNjg0OTkyODItMzMuMjQ0MjY0NDctMC43NjY2OTE5LTczLjY0NDg0Mzg5LTEuNDA2MTI1NTUtMTIxLjIwODAyMjYyLTEuOTE2NzI5ODIgMCAyNDIuNDE0NDc0MjItMTEuODkwMDA5MTMgNDA0Ljc5MTMzOTMyLTM1LjY3MTU5ODU0IDQ4Ny4xMjkwMjQyLTIzLjc4MDAxODMgODIuMzQwODI3MDctNjUuODQ0MzgyMDQgMTIzLjUwOTY2OTUtMTI2LjE5MzA5MTIzIDEyMy41MDk2Njk1LTM2LjgyMzIwNzQ4IDAtNjQuMzEwOTk4MTgtMTQuOTU5OTE5LTgyLjQ2NjUxNDI3LTQ0Ljg3ODE4NTk0LTE4LjE1NTUxNjA3LTI5LjkxODI2NjkyLTI3LjIzMzI3NDEyLTc1LjA1MDk2OTQ1LTI3LjIzMzI3NDExLTEzNS4zOTgxMDc1NXYtMjkuOTE4MjY2OTRoMzcuNTg5ODk5NDFjMS4wMjEyMDg1IDI4LjYzOTM5OTY2IDYuMTM2Njc3NTYgNDkuNDc5OTA4NTQgMTUuMzQxNjkzODkgNjIuNTE5OTU1NTcgOS4yMDY1ODc0MSAxMy4wNDE2MTgxMSAyMy41MjU1MDE3MyAxOS41NjMyMTI3MyA0Mi45NTk4ODUwNSAxOS41NjMyMTI3NCA0Mi45NTk4ODUwNSAwIDczLjM4ODc1NjItMzIuNjAzMjU5NzUgOTEuMjg4MTg0NjItOTcuODA5Nzc5MjMgMTcuOTAwOTk5NS02NS4yMDY1MTk1IDI4LjEyODc5NTQyLTE5My40NDUxNjk4OSAzMC42ODY1Mjk5NC0zODQuNzE3NTIyMzVoLTM0LjUyMTU2MDY1Yy0zOS4zNzkzNzA5MyAwLTcwLjU3NjUwNTEyIDYuOTAzMzY5NDYtOTMuNTg5ODMxNDYgMjAuNzExNjc5NTMtMjMuMDE0ODk3NDcgMTMuODA5ODgxMTMtMzcuMzMzODExNzQgMzQuNTIxNTYwNjMtNDIuOTU5ODg1MDcgNjIuMTM4MTgwNzFoLTM2LjA1NjUxNTU1YzMuNTgyMDg1MTktNzEuNTk5Mjg0NzEgMjMuNTI3MDcyNzktMTIxLjcxODYyNjg5IDU5LjgzODEwNDk1LTE1MC4zNTgwMjY1NyAzNi4zMTEwMzIxNS0yOC42NDA5NzA3NSA5OS43MjY1MDkwNS00Mi45NTk4ODUwNSAxOTAuMjQ4MDAxNzUtNDIuOTU5ODg1MDUgMTcuOTAwOTk5NSAwIDcxLjIxNTkzODc0IDEuNjYyMjEzMjMgMTU5Ljk0Nzk1OTkzIDQuOTg2NjM5NjggODguNzMyMDIxMTkgMy4zMjQ0MjY0NSAxNjguMzg2Mjg0MzYgNC45ODY2Mzk2OCAyMzguOTYyNzg5NDcgNC45ODY2Mzk2NiAzNC43NzYwNzcyMiAwIDYwLjczMDQ4NDA3LTMuNzA3NzcyMzkgNzcuODYzMjIwNTctMTEuMTIzMzE3MjMgMTcuMTMyNzM2NDgtNy40MTU1NDQ4MSAyNS42OTk4OTAyOC0xOC41Mzg4NjIwNSAyNS42OTk4OTAyNi0zMy4zNjk5NTE2NnYtMS41MzQ5NTQ5MmgzNi4wNTQ5NDQ0OXY0LjYwMzI5MzdjMCA1My42OTk4NTYzMi0xMi4xNDYwOTY4MiA5Mi41NjcwNTE5LTM2LjQzODI5MDQ0IDExNi42MDMxNTc4Ni0yNC4yOTM3NjQ3MyAyNC4wMzc2NzcwNS02My4yODgyMTg1OSAzNi4wNTY1MTU1Ny0xMTYuOTg4MDc0OTEgMzYuMDU2NTE1NTYtOS43MTcxOTE2NiAwLTE3LjI2MTU2NTg4LTAuMTI4ODI5MzktMjIuNjMxNTUxNDktMC4zODMzNDU5N2EzMDIuODM1NDUzNTQgMzAyLjgzNTQ1MzU0IDAgMCAxLTE1LjcyNjYxMDkzLTEuMTUxNjA4OTV6IiBmaWxsPSIjMzMzMzMzIiBwLWlkPSI4ODYiPjwvcGF0aD48cGF0aCBkPSJNMTMxLjk2NzgxNTM2LTI2LjM3MDkyNTY5YzguODQwNTIzNDUgMC44MDc1NDAyNiAxMy4yNjc4NTUwNy0xLjE3ODMxNzQ5IDEyLjk4NTA1ODg3LTYuMDQ3MTI1NDItMC4zNjQ0OTI5LTYuMjQ4MjI0OTQtMi40NjY2MTEzMi03LjEzMTE3NzUzLTEyLjc0OTM5NTM4LTcuMTI5NjA2NDNIMTMyLjAwMjM3OTM0YTAuMzkyNzcyNSAwLjM5Mjc3MjUgMCAwIDAgMCAwLjc4NTU0NWgwLjIwMTA5OTUxYzkuOTEwNDM1NzIgMCAxMS42MzM5MjE0NyAwLjcyMjcwMTQxIDExLjk2Mzg1MDM3IDYuMzg5NjIzMDUgMC4yNDY2NjExMyA0LjIxOTk0NzczLTMuNjk4MzQ1ODcgNS45ODg5OTUwOS0xMi4xMjg4MTQ4MiA1LjIxOTE2MWEwLjM5Mjc3MjUgMC4zOTI3NzI1IDAgMSAwLTAuMDcwNjk5MDQgMC43ODI0MDI4ek0xMzAuNDMxMjg5MzEtMjEuNDgxNjkzNTloMTQuOTYxNDkwMTJhMC4zOTI3NzI1IDAuMzkyNzcyNSAwIDAgMCAwLTAuNzg1NTQ0OTlIMTMwLjQzMTI4OTMxYTAuMzkyNzcyNSAwLjM5Mjc3MjUgMCAwIDAgMCAwLjc4NTU0NDk5eiIgZmlsbD0iIzY2NjY2NiIgcC1pZD0iODg3Ij48L3BhdGg+PHBhdGggZD0iTTcyMC44NjEwNTIzIDI3OC4xMjk4ODMyOGMwIDguNjk0NDEyMDctMC41MTIxNzUzMyAyMS4yMjU0MjU5NC0xLjUzNDk1NDkyIDM3LjU4OTg5OTQxLTMuMDY4MzM4NzggMTExLjQ5MDgzMDk4LTQuNjAzMjkzNzIgMTg5Ljk5MTkxNDA4LTQuNjAzMjkzNzIgMjM1LjUwOTUzMzYzdjYyLjkwNjQ0Mzc0YzAgODYuNDMwMzc0MzUgNC4zNDcyMDYwMyAxNDEuMDI0MTgwODYgMTMuMDQxNjE4MTEgMTYzLjc4MTQxOTU1IDguNjk0NDEyMDcgMjIuNzU4ODA5NzkgMjQuODA0MzY4OTYgMzQuMTM4MjE0NjggNDguMzI5ODcwNjkgMzQuMTM4MjE0NjggMjkuMTUxNTc1MDEgMCA1MS4wMTMyOTI0Mi0xNC44MzEwODk2MyA2NS41ODk4NjU0NC00NC40OTMyNjg5IDE0LjU3NTAwMTk2LTI5LjY2MjE3OTI2IDIzLjE0MjE1NTc1LTc2LjQ1ODY2NjA5IDI1LjY5ODMxOTE5LTE0MC4zODYzMTgzMmgzOS4xMjQ4NTQzNXY3LjY3MTYzMjQ5YzAgODMuODc0MjEwOTEtMTMuNDI0OTY0MDcgMTQ1LjYyNzQ3NDU3LTQwLjI3NDg5MjI0IDE4NS4yNjI5MzMxNy0yNi44NDk5MjgxNSAzOS42MzU0NTg2LTY4LjkxNDI5MTkgNTkuNDUzMTg3OS0xMjYuMTkzMDkxMjMgNTkuNDUzMTg3OS01OS44MzgxMDQ5NSAwLTEwMS43NzM2MzkzMi0yMC41ODQ0MjEyMy0xMjUuODA5NzQ1MjctNjEuNzU0ODM0NzYtMjQuMDM3Njc3MDUtNDEuMTcwNDEzNTQtMzYuMDU2NTE1NTctMTI3LjIxNTg3MDgzLTM2LjA1NjUxNTU2LTI1OC4xNDEwODUxMyAwLTE1Ljg1MjI5ODEzIDAuNzY4MjYzMDItNTYuODk1NDUzMzggMi4zMDE2NDY4NC0xMjMuMTI0NzUyNDUgMS41MzQ5NTQ5My02Ni4yMjkyOTkwNyAyLjgxMjI1MTEtMTIwLjU2NzAxNzkzIDMuODM2NjAxODEtMTYzLjAxNjI5ODcyLTE4LjkyMzc3OTA4LTEuMDIxMjA4NS00NS4wMDU0NDQyMy0xLjkxNjcyOTgtNzguMjQ4MTM3NjMtMi42ODQ5OTI4Mi0zMy4yNDQyNjQ0Ny0wLjc2NjY5MTktNzMuNjQ0ODQzODktMS40MDYxMjU1NS0xMjEuMjA4MDIyNjItMS45MTY3Mjk4MiAwIDI0Mi40MTQ0NzQyMi0xMS44OTAwMDkxMyA0MDQuNzkxMzM5MzItMzUuNjcxNTk4NTQgNDg3LjEyOTAyNDItMjMuNzgwMDE4MyA4Mi4zNDA4MjcwNy02NS44NDQzODIwNCAxMjMuNTA5NjY5NS0xMjYuMTkzMDkxMjMgMTIzLjUwOTY2OTUtMzYuODIzMjA3NDggMC02NC4zMTA5OTgxOC0xNC45NTk5MTktODIuNDY2NTE0MjctNDQuODc4MTg1OTQtMTguMTU1NTE2MDctMjkuOTE4MjY2OTItMjcuMjMzMjc0MTItNzUuMDUwOTY5NDUtMjcuMjMzMjc0MTEtMTM1LjM5ODEwNzU1di0yOS45MTgyNjY5NGgzNy41ODk4OTk0MWMxLjAyMTIwODUgMjguNjM5Mzk5NjYgNi4xMzY2Nzc1NiA0OS40Nzk5MDg1NCAxNS4zNDE2OTM4OSA2Mi41MTk5NTU1NyA5LjIwNjU4NzQxIDEzLjA0MTYxODExIDIzLjUyNTUwMTczIDE5LjU2MzIxMjczIDQyLjk1OTg4NTA1IDE5LjU2MzIxMjc0IDQyLjk1OTg4NTA1IDAgNzMuMzg4NzU2Mi0zMi42MDMyNTk3NSA5MS4yODgxODQ2Mi05Ny44MDk3NzkyMyAxNy45MDA5OTk1LTY1LjIwNjUxOTUgMjguMTI4Nzk1NDItMTkzLjQ0NTE2OTg5IDMwLjY4NjUyOTk0LTM4NC43MTc1MjIzNWgtMzQuNTIxNTYwNjVjLTM5LjM3OTM3MDkzIDAtNzAuNTc2NTA1MTIgNi45MDMzNjk0Ni05My41ODk4MzE0NiAyMC43MTE2Nzk1My0yMy4wMTQ4OTc0NyAxMy44MDk4ODExMy0zNy4zMzM4MTE3NCAzNC41MjE1NjA2My00Mi45NTk4ODUwNyA2Mi4xMzgxODA3MWgtMzYuMDU2NTE1NTVjMy41ODIwODUxOS03MS41OTkyODQ3MSAyMy41MjcwNzI3OS0xMjEuNzE4NjI2ODkgNTkuODM4MTA0OTUtMTUwLjM1ODAyNjU3IDM2LjMxMTAzMjE1LTI4LjY0MDk3MDc1IDk5LjcyNjUwOTA1LTQyLjk1OTg4NTA1IDE5MC4yNDgwMDE3NS00Mi45NTk4ODUwNSAxNy45MDA5OTk1IDAgNzEuMjE1OTM4NzQgMS42NjIyMTMyMyAxNTkuOTQ3OTU5OTMgNC45ODY2Mzk2OCA4OC43MzIwMjExOSAzLjMyNDQyNjQ1IDE2OC4zODYyODQzNiA0Ljk4NjYzOTY4IDIzOC45NjI3ODk0NyA0Ljk4NjYzOTY2IDM0Ljc3NjA3NzIyIDAgNjAuNzMwNDg0MDctMy43MDc3NzIzOSA3Ny44NjMyMjA1Ny0xMS4xMjMzMTcyMyAxNy4xMzI3MzY0OC03LjQxNTU0NDgxIDI1LjY5OTg5MDI4LTE4LjUzODg2MjA1IDI1LjY5OTg5MDI2LTMzLjM2OTk1MTY2di0xLjUzNDk1NDkyaDM2LjA1NDk0NDQ5djQuNjAzMjkzN2MwIDUzLjY5OTg1NjMyLTEyLjE0NjA5NjgyIDkyLjU2NzA1MTktMzYuNDM4MjkwNDQgMTE2LjYwMzE1Nzg2LTI0LjI5Mzc2NDczIDI0LjAzNzY3NzA1LTYzLjI4ODIxODU5IDM2LjA1NjUxNTU3LTExNi45ODgwNzQ5MSAzNi4wNTY1MTU1Ni05LjcxNzE5MTY2IDAtMTcuMjYxNTY1ODgtMC4xMjg4MjkzOS0yMi42MzE1NTE0OS0wLjM4MzM0NTk3YTMwMi44MzU0NTM1NCAzMDIuODM1NDUzNTQgMCAwIDEtMTUuNzI2NjEwOTMtMS4xNTE2MDg5NXoiIGZpbGw9IiMzMzMzMzMiIHAtaWQ9Ijg4OCI+PC9wYXRoPjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjIyIiB3aWR0aD0iMjIiIHk9Ii0xIiB4PSItMSIvPg0KICA8ZyBkaXNwbGF5PSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIgaWQ9ImNhbnZhc0dyaWQiPg0KICAgPHJlY3QgZmlsbD0idXJsKCNncmlkcGF0dGVybikiIHN0cm9rZS13aWR0aD0iMCIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIvPg0KICA8L2c+DQogPC9nPg0KIDxnPg0KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+DQogIDx0ZXh0IGZvbnQtc3R5bGU9Im5vcm1hbCIgZm9udC13ZWlnaHQ9ImJvbGQiIHN0cm9rZT0iIzAwMCIgdHJhbnNmb3JtPSJtYXRyaXgoMC44NzI4MTczMzcxNDczNTMyLDAsMCwxLjE0MzAwNDk5NDU3MTA3MjMsMi4wODgxNzU3ODc5NDYxMjYyLC0xLjQxMDMyOTg1MjkyOTk4NTMpICIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgdGV4dC1hbmNob3I9InN0YXJ0IiBmb250LWZhbWlseT0iSnVuY3Rpb24sIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGlkPSJzdmdfMSIgeT0iMTMuODU1Mjg2IiB4PSItMS40ODEzNzEiIHN0cm9rZS13aWR0aD0iMCIgZmlsbD0iIzAwMDAwMCI+bG9nPC90ZXh0Pg0KIDwvZz4NCjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjIyIiB3aWR0aD0iMjIiIHk9Ii0xIiB4PSItMSIvPg0KICA8ZyBkaXNwbGF5PSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIgaWQ9ImNhbnZhc0dyaWQiPg0KICAgPHJlY3QgZmlsbD0idXJsKCNncmlkcGF0dGVybikiIHN0cm9rZS13aWR0aD0iMCIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIvPg0KICA8L2c+DQogPC9nPg0KIDxnPg0KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+DQogIDx0ZXh0IGZvbnQtc3R5bGU9Im5vcm1hbCIgZm9udC13ZWlnaHQ9ImJvbGQiIHN0cm9rZT0iIzAwMCIgdHJhbnNmb3JtPSJtYXRyaXgoMS4zNDA3ODA1MDk2MjA2MzIyLDAsMCwxLjI5OTA3MzM4NzE2MzgyNzYsLTEuNjgyNTUyMTg2NzQ1MjE0NywtNC4wMTMwNTI2NjYzODk1NzEpICIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgdGV4dC1hbmNob3I9InN0YXJ0IiBmb250LWZhbWlseT0iSnVuY3Rpb24sIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGlkPSJzdmdfMSIgeT0iMTUuOTgxMzk5IiB4PSIyLjc1NjQ0OSIgc3Ryb2tlLXdpZHRoPSIwIiBmaWxsPSIjMDAwMDAwIj5sbjwvdGV4dD4NCiA8L2c+DQo8L3N2Zz4="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgeD0iLTEiIHk9Ii0xIiB3aWR0aD0iMjIiIGhlaWdodD0iNDIiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgZmlsbD0ibm9uZSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8cGF0aCBzdHJva2U9Im51bGwiIGQ9Im0xMi44NTQ4NDYsMzkuOTUyMzg2bC0xLjQ0Nzg5OSwwbC02LjAzOTczNSwtMjAuNDc4MjYxbC0xLjM5Mzk5NywwLjA3MDQyM2wtMy45NzMyMTUsLTAuMTk0ODA1Yy0wLjAyOTg5NSwtMC42Mzk4NTkgMC4wNTUzMTUsLTAuNTkzNDQ1IDAsLTAuODkwMTY3bDAsLTEuMTQ5OTA3bDYuNTcxMDkyLC0wLjAwNTQ4OGw1LjM5MzA0MiwxOC43Njg0MDRsNi40OTExNzksLTM2LjA3NjkzbDEuNTM3Mzg0LDBsLTMuNTY4OTI1LDE5Ljk3ODM2NWwtMC44OTIyMzEsNC45OTQ1OTJsLTAuODkyMjMyLDQuOTk0NTkxbC0wLjg5MjIzMiw0Ljk5NDU5MWwtMC44OTIyMzEsNC45OTQ1OTJ6IiBpZD0ic3ZnXzEiLz4NCiA8L2c+DQo8L3N2Zz4="},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(202),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.output=e,this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true">\n            <div class="modal-dialog">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            添加变量分类\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>');var n=this.dialog.find(".modal-body"),i=this.dialog.find(".modal-footer");this.initBody(n,i)}return r(t,[{key:"initBody",value:function(t,e){var n=$('<div class="form-group"><label>请选择变量分类：</label></div>');this.categorySelect=$('<select class="form-control"></select>'),n.append(this.categorySelect),t.append(n);var i=this;this.categorySelect.change(function(){var t=$(this).val();i.variableCategory=t?i.findVariableCategory(t):null});var r=$('<button type="button" class="btn btn-default">确定</button>');e.append(r),r.click(function(){if(i.variableCategory){var t=new o.default(i.variableCategory,i.output);i.callback(t),i.dialog.modal("hide")}else bootbox.alert("请先选择变量分类!")})}},{key:"initData",value:function(t){this.categorySelect.append("<option></option>");var e=!0,n=!1,i=void 0;try{for(var r,a=t[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;this.categorySelect.append('<option value="'+o.name+'">'+o.name+"</option>")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"findVariableCategory",value:function(t){var e=null,n=!0,i=!1,r=void 0;try{for(var a,o=this.variableCategories[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.name===t){e=s;break}}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}return e}},{key:"show",value:function(t,e){this.callback=e,this.initData(t),this.variableCategories=t,this.dialog.modal("show")}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.isList=e,this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true">\n            <div class="modal-dialog">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            选择变量分类\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>');var n=this.dialog.find(".modal-body"),i=this.dialog.find(".modal-footer");this.initBody(n,i)}return i(t,[{key:"initBody",value:function(t,e){var n=$('<div class="form-group"><label>请选择变量分类：</label></div>');this.categorySelect=$('<select class="form-control"></select>'),n.append(this.categorySelect),t.append(n);var i=this;this.categorySelect.change(function(){var t=$(this).val();i.variableCategory=t?i.findVariableCategory(t):null});var r=$('<button type="button" class="btn btn-default">确定</button>');e.append(r),r.click(function(){if(i.variableCategory){var t="";if(i.isList){t="[",t+="{",t+='"name":"'+i.variableCategory.name+'",',t+='"fields":{';var e=0,n=!0,r=!1,a=void 0;try{for(var o,s=(i.variableCategory.variables||[])[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;e>0&&(t+=","),t+='"'+c.label+'":',"List"===c.type||"Set"===c.type?t+="[]":"Object"===c.type||"Map"===c.type?t+="null":"Integer"===c.type||"Char"===c.type||"Double"===c.type||"Long"===c.type||"Float"===c.type||"BigDecimal"===c.type?t+="0":"Boolean"===c.type?t+="false":"Date"===c.type?t+='"2019-11-11 19:20:30"':t+='""',e++}}catch(t){r=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw a}}t+="}",t+="}",t+="]"}else{t+="{",t+='"name":"'+i.variableCategory.name+'",',t+='"fields":{';var l=0,u=!0,f=!1,h=void 0;try{for(var d,p=(i.variableCategory.variables||[])[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var b=d.value;l>0&&(t+=","),t+='"'+b.label+'":',"List"===b.type||"Set"===b.type?t+="[]":"Object"===b.type||"Map"===b.type?t+="null":"Integer"===b.type||"Char"===b.type||"Double"===b.type||"Long"===b.type||"Float"===b.type||"BigDecimal"===b.type?t+="0":"Boolean"===b.type?t+="false":"Date"===b.type?t+='"2019-11-11 19:20:30"':t+='""',l++}}catch(t){f=!0,h=t}finally{try{!u&&p.return&&p.return()}finally{if(f)throw h}}t+="}",t+="}"}var g=JSON.parse(t);i.callback(JSON.stringify(g,null,4)),i.dialog.modal("hide")}else bootbox.alert("请先选择变量分类!")})}},{key:"initData",value:function(t){this.categorySelect.append("<option></option>");var e=!0,n=!1,i=void 0;try{for(var r,a=t[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;this.categorySelect.append('<option value="'+o.name+'">'+o.name+"</option>")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"findVariableCategory",value:function(t){var e=null,n=!0,i=!1,r=void 0;try{for(var a,o=this.variableCategories[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.name===t){e=s;break}}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}return e}},{key:"show",value:function(t,e){this.callback=e,this.initData(t),this.variableCategories=t,this.dialog.modal("show")}}]),t}();e.default=r},,,function(t,e,n){"use strict";var i,r=n(198),a=(i=r)&&i.__esModule?i:{default:i};urule.Context=function(t,e){this.container=t,this.paper=new a.default(this.container.get(0),"100%","100%"),this.rule=e},urule.Context.prototype.getCanvas=function(){return this.container},urule.Context.prototype.getPaper=function(){return this.paper},urule.Context.prototype.setRootJoin=function(t){this.rootJoin=t},urule.Context.prototype.getRootJoin=function(){return this.rootJoin},urule.Context.prototype.getTotalChildrenCount=function(){return this.rootJoin.getChildrenCount()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(197)),a=l(n(254)),o=n(4),s=n(50),c=l(n(202));function l(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.project=window._project,this.file=decodeURI(decodeURI((0,o.getParameter)("file"))),this.inputCategories=[],this.outputCategories=[],this.variableCategories=null,this.dialog=$('<div class="modal fade" role="dialog" style="overflow: auto" aria-hidden="true" data-backdrop="static">\n            <div class="modal-dialog modal-lg">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            对文件['+this.file+']进行快速测试\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>'),this.file="jcr:"+this.file;var e=this.dialog.find(".modal-body"),n=this.dialog.find(".modal-footer");this.initBody(e,n);var i=$('<button type="button" class="close" title="最小化/最大化窗口" style="margin-left: 5px">\n                            <i class="glyphicon glyphicon-minus" style="font-size: 16px"></i>\n                        </button>');this.dialog.find(".modal-header").prepend(i);var r=!0;i.click(function(){r?(e.slideUp(),i.find("i").removeClass("glyphicon-minus").addClass("glyphicon-plus"),r=!1):(e.slideDown(),i.find("i").removeClass("glyphicon-plus").addClass("glyphicon-minus"),r=!0)})}return i(t,[{key:"initBody",value:function(t,e){var n=this,i=$('<div style="margin-bottom: 15px;padding-bottom: 10px;"></div>');t.append(i);var r=$('<div class="well"></div>');t.append(r),r.hide();var c=$('<button type="button" class="btn btn-danger">开始测试</button>');i.append(c),c.click(function(){var t=window._core_version;t&&(t=(0,s.encrypt)(t));var e=n.toData();window.quickTestData=e;var i=JSON.stringify(e.input),a=JSON.stringify(e.output),l=window._server+"/packageeditor/doQuickTest";$.ajax({url:l,type:"POST",data:{version:t,files:n.file,input:i,output:a},beforeSend:function(){r.empty(),r.show(),r.append('<h4 style="text-align: center">测试进行中，请稍后...</h4>'),c.prop("disabled",!0)},success:function(t){c.prop("disabled",!1),window._setDirty(),r.empty();var e=t.output,n=t.time;r.append('<div style="margin: 2px">执行规则耗时'+n+'毫秒，<a href="'+t.logUrl+'" target="_blank">查看详细日志</a>(是否有日志生成取决于规则的日志输出属性是否打开)</div>');var i=$('<div style="margin: 2px">期望返回的结果：</div>');r.append(i);var a=!0,o=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var f=l.value;i.append('<div style="margin-left: 30px;font-weight: bold;font-size: 13pt">'+f.name+"</div>");var h=$('<div style="margin-left: 60px"></div>');i.append(h);var d=!0,p=!1,b=void 0;try{for(var g,y=(f.fields||[])[Symbol.iterator]();!(d=(g=y.next()).done);d=!0){var m=g.value,v=m.value;v&&(v=JSON.stringify(m.value)),h.append('<span style="margin:2px 10px 5px 0px"><span style="font-weight: bold;font-style: italic">'+m.name+"：</span>"+v+"</span>")}}catch(t){p=!0,b=t}finally{try{!d&&y.return&&y.return()}finally{if(p)throw b}}}}catch(t){o=!0,s=t}finally{try{!a&&u.return&&u.return()}finally{if(o)throw s}}},error:function(t){(0,o.handleError)(t),r.empty(),r.hide(),c.prop("disabled",!1)}})});var l=$('<button type="button" class="btn btn-primary" style="margin-left: 5px">查看规则树</button>');i.append(l),l.click(function(){var t=window._server+"/retediagram?files="+n.file+",LATEST";window.open(t,"_blank")}),this.inputContainer=$('<fieldset style="margin-bottom: 10px"></fieldset>'),t.append(this.inputContainer);var u=$('<legend style="margin-bottom:10px">输入信息</legend>');this.inputContainer.append(u);var f=$('<button type="button" class="btn btn-link">添加</button>');u.append(f),f.click(function(){new a.default(!1).show(n.variableCategories,function(t){n.inputCategories.push(t),t.categoryItems=n.inputCategories,t.variableCategories=n.variableCategories,n.inputContainer.append(t.container)})}),this.outputContainer=$("<fieldset></fieldset>");var h=$('<legend style="margin-bottom:10px">期望输出信息</legend>');this.outputContainer.append(h),t.append(this.outputContainer);var d=$('<button type="button" class="btn btn-link">添加</button>');h.append(d),d.click(function(){new a.default(!0).show(n.variableCategories,function(t){n.outputCategories.push(t),t.categoryItems=n.outputCategories,n.outputContainer.append(t.container)})})}},{key:"initData",value:function(t,e){if(window.quickTestData){var n=null;n=e?window.quickTestData.output:window.quickTestData.input;var i=!0,r=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value,u=l.categoryName,f=this.findVariableCategory(u);if(f){var h=new c.default(f,e,l.fields,this.variableCategories);e?(this.outputCategories.push(h),h.categoryItems=this.outputCategories):(this.inputCategories.push(h),h.categoryItems=this.inputCategories),t.append(h.container)}}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}}}},{key:"findVariableCategory",value:function(t){var e=null,n=!0,i=!1,r=void 0;try{for(var a,o=this.variableCategories[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(s.name===t){e=s;break}}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}return e}},{key:"loadData",value:function(){var t=this;r.loadSimulatorCategoryData(this.file,function(e){t.variableCategories=e,t.initData(t.inputContainer,!1),t.initData(t.outputContainer,!0)})}},{key:"toData",value:function(){var t={input:[],output:[]},e=!0,n=!1,i=void 0;try{for(var r,a=this.inputCategories[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;t.input.push(o.toData())}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}var s=!0,c=!1,l=void 0;try{for(var u,f=this.outputCategories[Symbol.iterator]();!(s=(u=f.next()).done);s=!0){var h=u.value;t.output.push(h.toData())}}catch(t){c=!0,l=t}finally{try{!s&&f.return&&f.return()}finally{if(c)throw l}}return t}},{key:"show",value:function(){this.dialog.modal("show"),this.loadData()}}]),t}();e.default=u},,,,function(t,e,n){"use strict";window.Remark=function(t,e){this.remark="",this.defaultRemark="请输入备注内容",this.init(t,e)},Remark.prototype.init=function(t,e){var n=$("<div style='cursor:pointer;color:#777;font-size:12px'>"+(e?"规则备注":"备注")+"</div>");t.append(n);var i=$("<i class='glyphicon glyphicon-circle-arrow-down'></i>");n.append(i);var r=$("<div class='collapse in'></div>");t.append(r),this.remarkLabel=$("<div style='color:#999;background: #fdfdfd;padding:5px;border:solid 1px #ddd;border-radius: 5px;font-size: 12px'>"+this.defaultRemark+"</div>"),r.append(this.remarkLabel),this.remarkEditor=$("<textarea class='form-control' rows='4'>"+this.defaultRemark+"</textarea>"),r.append(this.remarkEditor),this.remarkEditor.hide();var a=this;this.remarkLabel.click(function(){a.remarkEditor.show(),a.remarkEditor.focus(),a.remarkLabel.hide()}),this.remarkEditor.change(function(){a.remark=$(this).val(),""===a.remark?a.remarkLabel.text(a.defaultRemark):a.remarkLabel.html(a.parseBreak(a.remark)),window.setDirty&&window.setDirty(),window._setDirty&&window._setDirty()}),this.remarkEditor.blur(function(){a.remarkEditor.hide(),a.remarkLabel.show()}),n.click(function(){r.collapse("toggle")}),r.on("show.bs.collapse",function(){i.removeClass("glyphicon-circle-arrow-right"),i.addClass("glyphicon-circle-arrow-down")}),r.on("hide.bs.collapse",function(){i.removeClass("glyphicon-circle-arrow-down"),i.addClass("glyphicon-circle-arrow-right")}),r.collapse("hide")},Remark.prototype.setData=function(t){t&&""!==t&&(this.remark=t,this.remarkEditor.val(t),this.remarkLabel.html(this.parseBreak(t)))},Remark.prototype.toXml=function(){return"<remark><![CDATA["+this.remark+"]]></remark>"},Remark.prototype.parseBreak=function(t){return t=(t=(t=t.replace(new RegExp("<","gm"),"&lt;")).replace(new RegExp(">","gm"),"&gt;")).replace(new RegExp("\n","gm"),"</br>")}},function(t,e,n){"use strict";var i=n(4);urule.RuleProperty=function(t,e,n,r){this.parent=t,this.value=n,this.editorType=r,this.container=$("<span class='rule-property'>");var a=$("<span>");this.name=e;var o=this.getLabel();URule.setDomContent(a,o+"："),this.container.append(a);var s=$("<span>"),c=generateContainer();""==n&&(n="无"),c.css({color:"#000"}),URule.setDomContent(c,n),s.append(c),this.container.append(s);var l=null;this.radioName=(0,i.generateId)(),this.yesRadio=null,this.noRadio=null,1==r?l=$("<input type='text' size='30' class='form-control rule-text-editor'>"):2==r?(l=$("<input type='datetime' size='30' class='form-control rule-text-editor' title='日期格式为:yyyy-MM-dd HH:mm:ss，如2016-10-11 12:50:06'>")).datetimepicker({autoclose:!0,format:"Y-m-d H:m:s"}):3==r&&(this.yesRadio=$("<input type='radio' value='是' name='"+this.radioName+"'> 是 </input>"),this.noRadio=$("<input type='radio' value='否' name='"+this.radioName+"'> 否</input>"));var u=this;if(3!=r){if(l.blur(function(){u.value=l.prop("value"),l.hide(),""==u.value?URule.setDomContent(c,"无"):URule.setDomContent(c,u.value),u.parent&&u.parent.parent&&u.parent.parent.rulesNav&&"salience"===u.name&&u.parent.parent.rulesNav.changePriority(u.parent.uuid,u.value),c.show(),window._setDirty()}),c.click(function(){c.hide(),l.prop("value",u.value),l.show(),l.focus()}),this.container.append(l),l.hide(),2==r&&"无"!==n){new Date(n);this.value=n,URule.setDomContent(c,this.value)}}else 1==n?this.yesRadio.prop("checked",!0):this.noRadio.prop("checked",!0),this.yesRadio.change(function(){"enabled"===u.name&&u.parent&&u.parent.parent&&u.parent.parent.rulesNav&&(u.yesRadio.prop("checked")?u.parent.parent.rulesNav.changeStatus(u.parent.uuid,"no"):u.parent.parent.rulesNav.changeStatus(u.parent.uuid,"yes")),window._setDirty()}),this.noRadio.change(function(){"enabled"===u.name&&u.parent&&u.parent.parent&&u.parent.parent.rulesNav&&(u.yesRadio.prop("checked")?u.parent.parent.rulesNav.changeStatus(u.parent.uuid,"no"):u.parent.parent.rulesNav.changeStatus(u.parent.uuid,"yes")),window._setDirty()}),c.hide(),this.container.append(this.yesRadio),this.container.append(this.noRadio);var f=$('<i class="glyphicon glyphicon-remove rule-property-del">');f.click(function(){u.container.remove();var t=u.parent.properties.indexOf(u);u.parent.properties.splice(t,1),u.parent&&u.parent.parent&&u.parent.parent.rulesNav&&("salience"===u.name?u.parent.parent.rulesNav.changePriority(u.parent.uuid,"del"):"enabled"===u.name&&u.parent.parent.rulesNav.changeStatus(u.parent.uuid,"no")),window._setDirty()}),this.container.append(f)},urule.RuleProperty.prototype.getLabel=function(){var t="";return"salience"==this.name?t="优先级":"loop"==this.name?t="允许循环触发":"effective-date"==this.name?t="生效日期":"expires-date"==this.name?t="失效日期":"enabled"==this.name?t="是否启用":"debug"==this.name?t="允许调试信息输出":"mutex-group"==this.name?t="互斥组":"pended-group"==this.name?t="执行组":"auto-focus"==this.name?t="自动获取焦点":"ruleflow-group"==this.name&&(t="规则流组"),t},urule.RuleProperty.prototype.toXml=function(){var t=this.name;if(3==this.editorType)this.yesRadio.prop("checked")?t+='="true"':t+='="false"';else{if(!this.value||""==this.value)throw"请输入属性"+this.name+"的具体值!";t+='="'+this.value+'"'}return t},urule.RuleProperty.prototype.getContainer=function(){return this.container}},,,,,,,,,,,,,function(t,e,n){"use strict";var i=_(n(278)),r=_(n(279)),a=_(n(249)),o=_(n(280)),s=_(n(281)),c=_(n(282)),l=_(n(250)),u=_(n(251)),f=_(n(252)),h=_(n(283)),d=_(n(284)),p=_(n(285)),b=_(n(286)),g=_(n(287)),y=_(n(288)),m=_(n(289)),v=_(n(290)),A=_(n(291)),w=_(n(292)),M=_(n(293)),I=_(n(294)),x=_(n(295)),C=_(n(296)),E=_(n(299));function _(t){return t&&t.__esModule?t:{default:t}}urule.MathValue=function(t,e){this.arithmetic=t,this.mathMap=new Map,this.map=new Map,this.initMaths(),this.container=$("<span></span>"),this.container.data("pi",!0),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#6b3db0"}),URule.setDomContent(this.label,"请选择数学符号"),this.mathContainer=$("<span></span>"),this.container.append(this.mathContainer),t&&this.container.append(t.getContainer()),this.initData(e),this.initMenu()},urule.MathValue.prototype.initData=function(t){if(t&&t.mathSign){var e=t.mathSign;this.setMath(e.type,e,t.arithmetic)}},urule.MathValue.prototype.initMaths=function(){var t=new p.default;this.mathMap.set(t.getType(),t);var e=new b.default;this.mathMap.set(e.getType(),e);var n=new g.default;this.mathMap.set(n.getType(),n);var i=new y.default;this.mathMap.set(i.getType(),i);var r=new m.default;this.mathMap.set(r.getType(),r);var a=new v.default;this.mathMap.set(a.getType(),a);var o=new A.default;this.mathMap.set(o.getType(),o);var s=new w.default;this.mathMap.set(s.getType(),s);var c=new M.default;this.mathMap.set(c.getType(),c);var l=new I.default;this.mathMap.set(l.getType(),l);var u=new x.default;this.mathMap.set(u.getType(),u);var f=new C.default;this.mathMap.set(f.getType(),f);var h=new E.default;this.mathMap.set(h.getType(),h)},urule.MathValue.prototype.setMath=function(t,e,n){var i=!1,r=!1;t.startsWith("triangle-")&&(t=t.substring(9),i=!0),t.startsWith("extremum-")&&(t=t.substring(9),r=!0),this.math&&this.math.getContainer().hide(),this.type=t,i?(this.map.has("triangle")?this.math=this.map.get("triangle"):(this.math=this.mathMap.get("triangle"),URule.setDomContent(this.label,""),this.map.set("triangle",this.math),this.math.init(this.arithmetic.rule),this.mathContainer.append(this.math.getContainer())),this.math.setName(t)):r?(this.map.has("extremum")?this.math=this.map.get("extremum"):(this.math=this.mathMap.get("extremum"),URule.setDomContent(this.label,""),this.map.set("extremum",this.math),this.math.init(this.arithmetic.rule),this.mathContainer.append(this.math.getContainer())),this.math.setName(t)):this.map.has(t)?this.math=this.map.get(t):(this.math=this.mathMap.get(t),this.map.set(t,this.math),this.math.init(this.arithmetic.rule),this.mathContainer.append(this.math.getContainer()),URule.setDomContent(this.label,""),e&&(this.math.initData(e),this.arithmetic.initData(n))),this.math.getContainer().show()},urule.MathValue.prototype.initMenu=function(){var t=this,e=function(e){t.setMath(e.name),window._setDirty()},n={menuItems:[{name:"radical",image:i.default,label:"平方根",onClick:e},{name:"nradical",image:r.default,label:"方根",onClick:e},{name:"sigma",image:a.default,label:"求和",onClick:e},{name:"fraction",image:o.default,label:"分数",onClick:e},{name:"power",image:s.default,label:"指数",onClick:e},{name:"absolute",image:c.default,label:"绝对值",onClick:e},{name:"pi",image:l.default,label:"圆周率",onClick:e},{name:"log",image:u.default,label:"对数",onClick:e},{name:"ln",image:f.default,label:"自然对数",onClick:e},{name:"upRound",image:h.default,label:"向上取整",onClick:e},{name:"downRound",image:d.default,label:"向下取整",onClick:e}]},p={label:"极值",subMenu:{menuItems:[{name:"extremum-max",label:"max",onClick:e},{name:"extremum-min",label:"min",onClick:e}]}};n.menuItems.push(p);var b={label:"三角函数",subMenu:{menuItems:[{name:"triangle-sin",label:"sin",onClick:e},{name:"triangle-cos",label:"cos",onClick:e},{name:"triangle-tan",label:"tan",onClick:e},{name:"triangle-cot",label:"cot",onClick:e},{name:"triangle-sec",label:"sec",onClick:e},{name:"triangle-csc",label:"csc",onClick:e}]}};n.menuItems.push(b);var g={label:"反三角函数",subMenu:{menuItems:[{name:"triangle-arcsin",label:"arcsin",onClick:e},{name:"triangle-arccos",label:"arccos",onClick:e},{name:"triangle-arctan",label:"arctan",onClick:e},{name:"triangle-arccot",label:"arccot",onClick:e},{name:"triangle-arcsec",label:"arcsec",onClick:e},{name:"triangle-arccsc",label:"arccsc",onClick:e}]}};n.menuItems.push(g),this.menu?this.menu.setConfig(n):this.menu=new URule.menu.Menu(n),this.label.click(function(e){t.menu.show(e)})},urule.MathValue.prototype.toXml=function(){if(!this.math)throw"请选择具体的数学符号";return""},urule.MathValue.prototype.getContainer=function(){return this.container},urule.MathValue.prototype.getDisplayContainer=function(){bootbox.alert("不支持的操作！")}},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjIyIiB3aWR0aD0iMjIiIHk9Ii0xIiB4PSItMSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8cGF0aCBzdHJva2U9Im51bGwiIGlkPSJzdmdfMSIgZD0ibTUuNjg5ODEzLDE3LjI2MDExN2wtMC42Nzc3OTQsMGwtMi44MjczMTQsLTcuODYyNjI1bC0xLjQ0Njk3NSwwbDAsLTAuODMzMTU1bDIuMDEwNTM0LDBsMi41MjQ1OTEsNy4yMDYxMzRsMy4wMzg2NDgsLTEzLjg1MTc0MmwwLjcxOTY4LDBsLTMuMzQxMzcxLDE1LjM0MTM4OHptMTAuNTQ1Nzg1LC0xLjUyNjcyM2wtMi41NDkzNDIsLTQuMjUwODM0bC0yLjU1Njk1OCw0LjI1MDgzNGwtMC44NTg2NjYsMGwyLjk1ODY4NCwtNC44NzY3OWwtMi44MTk2OTgsLTQuNjM0Njk2bDAuODkxMDMyLDBsMi4zODU2MDYsNC4wMDY1NThsMi4zNzc5OSwtNC4wMDY1NThsMC44OTg2NDgsMGwtMi44MTAxNzksNC42MTUwNjZsMi45OTEwNTEsNC44OTQyMzlsLTAuOTA4MTY3LDBsMCwwLjAwMjE4MXoiLz4NCiAgPHBhdGggc3Ryb2tlPSJudWxsIiBpZD0ic3ZnXzIiIGQ9Im0xOC42NDkwNDYsMi40MTc4NTdsLTkuODY5NTQ3LDBsMCwtMC41MTczMTlsOS44Njk1NDcsMGwwLDAuNTE3MzE5eiIvPg0KIDwvZz4NCjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgeD0iLTEiIHk9Ii0xIiB3aWR0aD0iMy4xMjM1OTEiIGhlaWdodD0iMy4xMjM1OTEiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgZmlsbD0ibm9uZSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8cGF0aCBkPSJtNi4yMTkyMjUsMTcuMjYwMTE3bC0wLjY3Nzc5NCwwbC0yLjgyNzMxNCwtNy44NjI2MjVsLTEuNDQ2OTc1LDBsMCwtMC44MzMxNTVsMi4wMTA1MzQsMGwyLjUyNDU5MSw3LjIwNjEzNGwzLjAzODY0OCwtMTMuODUxNzQybDAuNzE5NjgsMGwtMy4zNDEzNzEsMTUuMzQxMzg4bDAuMDAwMDAxLDB6bTEwLjU0NTc4NSwtMS41MjY3MjNsLTIuNTQ5MzQyLC00LjI1MDgzNGwtMi41NTY5NTgsNC4yNTA4MzRsLTAuODU4NjY2LDBsMi45NTg2ODQsLTQuODc2NzlsLTIuODE5Njk4LC00LjYzNDY5NmwwLjg5MTAzMiwwbDIuMzg1NjA2LDQuMDA2NTU4bDIuMzc3OTksLTQuMDA2NTU4bDAuODk4NjQ4LDBsLTIuODEwMTc5LDQuNjE1MDY2bDIuOTkxMDUxLDQuODk0MjM5bC0wLjkwODE2NywwbDAsMC4wMDIxODFsLTAuMDAwMDAxLDB6IiBpZD0ic3ZnXzEiIHN0cm9rZT0ibnVsbCIvPg0KICA8cGF0aCBkPSJtMTkuMTc4NDU4LDIuNDE3ODU3bC05Ljg2OTU0NywwbDAsLTAuNTE3MzE5bDkuODY5NTQ3LDBsMCwwLjUxNzMxOXoiIGlkPSJzdmdfMiIgc3Ryb2tlPSJudWxsIi8+DQogIDx0ZXh0IGZpbGw9IiMwMDAwMDAiIHN0cm9rZT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIwIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgZmlsbC1vcGFjaXR5PSJudWxsIiB4PSIxLjk3MjE5MSIgeT0iNy40MDEyMzMiIGlkPSJzdmdfMyIgZm9udC1zaXplPSIxMCIgZm9udC1mYW1pbHk9IkhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWYiIHRleHQtYW5jaG9yPSJzdGFydCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+bjwvdGV4dD4NCiA8L2c+DQo8L3N2Zz4="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkuOTk5OTk5OTk5OTk5OTk2IiBoZWlnaHQ9IjE5Ljk5OTk5OTk5OTk5OTk5NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiA8IS0tIENyZWF0ZWQgd2l0aCBNZXRob2QgRHJhdyAtIGh0dHA6Ly9naXRodWIuY29tL2R1b3BpeGVsL01ldGhvZC1EcmF3LyAtLT4NCg0KIDxnPg0KICA8dGl0bGU+YmFja2dyb3VuZDwvdGl0bGU+DQogIDxnIGRpc3BsYXk9Im5vbmUiIGlkPSJjYW52YXNHcmlkIj4NCiAgIDxyZWN0IGZpbGw9InVybCgjZ3JpZHBhdHRlcm4pIiBzdHJva2Utd2lkdGg9IjAiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiIGlkPSJzdmdfMSIvPg0KICA8L2c+DQogPC9nPg0KIDxnPg0KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+DQogIDx0ZXh0IGZpbGw9IiMwMDAwMDAiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIwIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgZmlsbC1vcGFjaXR5PSJudWxsIiB4PSI3LjE0MDYxMyIgeT0iNy4xNjIxMzUiIGlkPSJzdmdfMiIgZm9udC1zaXplPSIxMyIgZm9udC1mYW1pbHk9IkhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWYiIHRleHQtYW5jaG9yPSJzdGFydCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+YTwvdGV4dD4NCiAgPHRleHQgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjAiIHN0cm9rZS1vcGFjaXR5PSJudWxsIiBmaWxsLW9wYWNpdHk9Im51bGwiIHg9IjcuMTg3OTczIiB5PSIxOS43OTg2ODMiIGlkPSJzdmdfMyIgZm9udC1zaXplPSIxMyIgZm9udC1mYW1pbHk9IkhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWYiIHRleHQtYW5jaG9yPSJzdGFydCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+YjwvdGV4dD4NCiAgPGxpbmUgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW9wYWNpdHk9Im51bGwiIGZpbGwtb3BhY2l0eT0ibnVsbCIgeDE9IjEuMTg0MDEiIHkxPSI5LjA2NDg4NCIgeDI9IjE4LjgxNTk5MSIgeTI9IjguOTM1ODUyIiBpZD0ic3ZnXzQiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiLz4NCiA8L2c+DQo8L3N2Zz4="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkuOTk5OTk5OTk5OTk5OTk2IiBoZWlnaHQ9IjE5Ljk5OTk5OTk5OTk5OTk5NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiA8IS0tIENyZWF0ZWQgd2l0aCBNZXRob2QgRHJhdyAtIGh0dHA6Ly9naXRodWIuY29tL2R1b3BpeGVsL01ldGhvZC1EcmF3LyAtLT4NCg0KIDxnPg0KICA8dGl0bGU+YmFja2dyb3VuZDwvdGl0bGU+DQogIDxnIGlkPSJjYW52YXNHcmlkIiBkaXNwbGF5PSJub25lIj4NCiAgIDxyZWN0IGlkPSJzdmdfMSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgeD0iMCIgeT0iMCIgc3Ryb2tlLXdpZHRoPSIwIiBmaWxsPSJ1cmwoI2dyaWRwYXR0ZXJuKSIvPg0KICA8L2c+DQogPC9nPg0KIDxnPg0KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+DQogIDx0ZXh0IGZpbGw9IiMwMDAwMDAiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIwIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgZmlsbC1vcGFjaXR5PSJudWxsIiB4PSIzLjYxOTQwMyIgeT0iMTYuNzQ2NzM1IiBpZD0ic3ZnXzgiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtZmFtaWx5PSJIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiB0ZXh0LWFuY2hvcj0ic3RhcnQiIHhtbDpzcGFjZT0icHJlc2VydmUiPlg8L3RleHQ+DQogIDx0ZXh0IGZpbGw9IiMwMDAwMDAiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIwIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgZmlsbC1vcGFjaXR5PSJudWxsIiB4PSIxNC4xNDA5NTQiIHk9IjYuODc2NzA0IiBpZD0ic3ZnXzkiIGZvbnQtc2l6ZT0iOCIgZm9udC1mYW1pbHk9IkhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWYiIHRleHQtYW5jaG9yPSJzdGFydCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+bjwvdGV4dD4NCiA8L2c+DQo8L3N2Zz4="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9Imljb24iPg0KIDxkZWZzPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiLz4NCiA8L2RlZnM+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjIuOTgwMzkyIiB3aWR0aD0iMi45ODAzOTIiIHk9Ii0xIiB4PSItMSIvPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8bGluZSBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1saW5lY2FwPSJudWxsIiBzdHJva2UtbGluZWpvaW49Im51bGwiIGlkPSJzdmdfMiIgeTI9IjE5LjY2NjIxMSIgeDI9IjEuODQ3MDY0IiB5MT0iMC4xMzcxMTEiIHgxPSIxLjg0NzA2NCIgc3Ryb2tlLXdpZHRoPSJudWxsIiBmaWxsPSJub25lIi8+DQogIDxsaW5lIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgaWQ9InN2Z18zIiB5Mj0iMTkuNjkwMTEyIiB4Mj0iMTguNTM3NzM2IiB5MT0iMC4xMTMyMTIiIHgxPSIxOC41Mzc3MzYiIHN0cm9rZS13aWR0aD0ibnVsbCIgZmlsbD0ibm9uZSIvPg0KICA8dGV4dCBzdHJva2U9IiMwMDAwMDAiIHRyYW5zZm9ybT0ibWF0cml4KDEuMTY3MTA3OTY1ODExMjE5OCwwLDAsMS4wODg5OTU1NzQ4MTYxMzEsLTEuNjQzMjUwMDA1NzgwNTkyOCwtMi41NDQyMjg1MTk4ODUyNTc0KSAiIHhtbDpzcGFjZT0icHJlc2VydmUiIHRleHQtYW5jaG9yPSJzdGFydCIgZm9udC1mYW1pbHk9IkhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjAiIGlkPSJzdmdfNiIgeT0iMTYuOTY0MTU1IiB4PSI0LjY4Nzg3NyIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIwIiBmaWxsPSIjMDAwMDAwIj5hPC90ZXh0Pg0KIDwvZz4NCjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPGcgZGlzcGxheT0ibm9uZSIgb3ZlcmZsb3c9InZpc2libGUiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiIGlkPSJjYW52YXNHcmlkIj4NCiAgIDxyZWN0IGZpbGw9InVybCgjZ3JpZHBhdHRlcm4pIiBzdHJva2Utd2lkdGg9IjAiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiLz4NCiAgPC9nPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8bGluZSBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z18xIiB5Mj0iMi41NjQxNyIgeDI9IjE4LjY1MjAxIiB5MT0iMi41NjQxNyIgeDE9IjEyLjUwNzgwNSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iIzAwMCIgZmlsbD0ibm9uZSIvPg0KICA8bGluZSBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z18yIiB5Mj0iMTguNjczMjg4IiB4Mj0iMTcuOTQwNzcyIiB5MT0iMS44MzQ5MDUiIHgxPSIxNy45NDA3NzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiLz4NCiAgPGxpbmUgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIGlkPSJzdmdfMyIgeTI9IjIuNjY1Nzk2IiB4Mj0iOC4wODI5MTYiIHkxPSIyLjY2NTc5NiIgeDE9IjEuOTM4NzEyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIi8+DQogIDxsaW5lIHN0cm9rZS1saW5lY2FwPSJ1bmRlZmluZWQiIHN0cm9rZS1saW5lam9pbj0idW5kZWZpbmVkIiBpZD0ic3ZnXzQiIHkyPSIxOC43NzQ5MTQiIHgyPSIyLjY5Njg4NyIgeTE9IjEuOTM2NTMxIiB4MT0iMi42OTY4ODciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiLz4NCiA8L2c+DQo8L3N2Zz4="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPGcgZGlzcGxheT0ibm9uZSIgb3ZlcmZsb3c9InZpc2libGUiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiIGlkPSJjYW52YXNHcmlkIj4NCiAgIDxyZWN0IGZpbGw9InVybCgjZ3JpZHBhdHRlcm4pIiBzdHJva2Utd2lkdGg9IjAiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiLz4NCiAgPC9nPg0KIDwvZz4NCiA8Zz4NCiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPg0KICA8bGluZSBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z18xIiB5Mj0iMTguMDExMzA4IiB4Mj0iMTguNjUyMDEiIHkxPSIxOC4wMTEzMDgiIHgxPSIxMi41MDc4MDUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiLz4NCiAgPGxpbmUgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIGlkPSJzdmdfMiIgeTI9IjE4LjY3MzI4OCIgeDI9IjE3Ljk0MDc3MiIgeTE9IjEuODM0OTA1IiB4MT0iMTcuOTQwNzcyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIi8+DQogIDxsaW5lIHN0cm9rZS1saW5lY2FwPSJ1bmRlZmluZWQiIHN0cm9rZS1saW5lam9pbj0idW5kZWZpbmVkIiBpZD0ic3ZnXzMiIHkyPSIxOC4xMTI5MzQiIHgyPSI4LjA4MjkxNiIgeTE9IjE4LjExMjkzNCIgeDE9IjEuOTM4NzEyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIi8+DQogIDxsaW5lIHN0cm9rZS1saW5lY2FwPSJ1bmRlZmluZWQiIHN0cm9rZS1saW5lam9pbj0idW5kZWZpbmVkIiBpZD0ic3ZnXzQiIHkyPSIxOC43NzQ5MTQiIHgyPSIyLjY5Njg4NyIgeTE9IjEuOTM2NTMxIiB4MT0iMi42OTY4ODciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiLz4NCiA8L2c+DQo8L3N2Zz4="},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(87)),a=o(n(88));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$("<table border='0' cellpadding='0' cellspacing='0' style='display: inline-block;vertical-align: middle' title='乘方'></table>");var e=$("<tbody></tbody>");this.container.append(e);var n=$('<tr><td style="background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 15px;" rowspan="2"></td><td></td></tr>'),i=$('<td style="line-height: normal"></td>');n.append(i),e.append(n),this.exponentContainer=$('<span style="margin-left: -15px"></span>'),i.append(this.exponentContainer),this.exponentInputType=new urule.InputType(null,null,null,this.rule),this.exponentContainer.append(this.exponentInputType.getContainer()),URule.setDomContent(this.exponentInputType.label,"请定义乘方指数"),this.exponentInputType.getContainer().prop("title","乘方指数"),n.append('<td style="background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 15px;" rowspan="2"></td>');var o=$("<tr></tr>");e.append(o);var s=$('<td style="line-height: normal"></td>');o.append(s),o.append('<td style="line-height: normal"></td>'),this.baseContainer=$("<span></span>"),s.append(this.baseContainer),this.baseInputType=new urule.InputType(null,null,null,this.rule),this.baseContainer.append(this.baseInputType.getContainer()),URule.setDomContent(this.baseInputType.label,"请定义乘方底数"),this.baseInputType.getContainer().prop("title","乘方底数")}},{key:"initData",value:function(t){if(t){var e=t.power,n=t.base;this.exponentInputType.setValueType(e.valueType,e),this.baseInputType.setValueType(n.valueType,n)}}},{key:"toXml",value:function(){var t="<power-sign>";return t+="<power>"+this.exponentInputType.toXml()+"</power>",t+="<base>"+this.baseInputType.toXml()+"</base>",t+="</power-sign>"}},{key:"getType",value:function(){return"power"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellpadding="0" cellspacing="0" style=\'display: inline-block;vertical-align: middle\' title="分数"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$("<tr></tr>"),i=$('<td style="line-height:normal;border-bottom:solid 1px;text-align: center"></td>');n.append(i),e.append(n),this.upContainer=$("<span></span>"),i.append(this.upContainer),this.upInputType=new urule.InputType(null,null,null,this.rule),this.upContainer.append(this.upInputType.getContainer()),URule.setDomContent(this.upInputType.label,"请定义分子"),this.upInputType.getContainer().prop("title","分子");var r=$("<tr></tr>");e.append(r);var a=$('<td style="line-height:normal;;text-align: center"></td>');r.append(a),this.downContainer=$("<span></span>"),a.append(this.downContainer),this.downInputType=new urule.InputType(null,null,null,this.rule),this.downContainer.append(this.downInputType.getContainer()),URule.setDomContent(this.downInputType.label,"请定义分母"),this.downInputType.getContainer().prop("title","分母")}},{key:"initData",value:function(t){if(t){var e=t.numerator,n=t.denominator;this.upInputType.setValueType(e.valueType,e),this.downInputType.setValueType(n.valueType,n)}}},{key:"toXml",value:function(){var t="<fraction-sign>";return t+="<numerator>",t+=this.upInputType.toXml(),t+="</numerator>",t+="<denominator>",t+=this.downInputType.toXml(),t+="</denominator>",t+="</fraction-sign>"}},{key:"getType",value:function(){return"fraction"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=c(n(87)),a=c(n(88)),o=c(n(249)),s=c(n(90));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellpadding="0" cellspacing="0" style="display: inline-block;vertical-align: middle" title="求和"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$('<tr><td style="background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 15px;" rowspan="3"></td></tr>');e.append(n);var i=$('<td style="line-height:normal;text-align: center"></td>');n.append(i),this.upContainer=$('<span style="white-space: nowrap"></span>'),i.append(this.upContainer),this.upInputType=new urule.InputType(null,null,null,this.rule),this.upContainer.append(this.upInputType.getContainer()),URule.setDomContent(this.upInputType.label,"请定义求和上标"),this.upInputType.getContainer().prop("title","求和上标"),n.append("<td></td>"),n.append('<td style="background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 15px;" rowspan="3"></td>');var c=$('<tr><td style="background: url('+o.default+') no-repeat;background-size: 100% 100%;line-height: normal;height: 35px"></td></tr>');e.append(c);var l=$("<td></td>");l.data("sigma",!0),c.append(l),this.exprContainer=$("<span></span>"),l.append(this.exprContainer),this.exprInputType=new urule.InputType(null,null,null,this.rule,null),this.exprContainer.append(this.exprInputType.getContainer()),URule.setDomContent(this.exprInputType.label,"请定义求和表达式"),this.exprInputType.getContainer().prop("title","求和表达式");var u=$("<tr></tr>"),f=$('<td style="text-align: center"></td>');u.append(f),e.append(u),this.downContainer=$('<span style="white-space: nowrap"><span><img src="'+s.default+'" style="height: 12px">=</span></span>'),f.append(this.downContainer),this.downInputType=new urule.InputType(null,null,null,this.rule),this.downContainer.append(this.downInputType.getContainer()),URule.setDomContent(this.downInputType.label,"请定义求和下标"),this.downInputType.getContainer().prop("title","求和下标"),u.append("<td></td>")}},{key:"initData",value:function(t){if(t){var e=t.ivalue;this.downInputType.setValueType(e.valueType,e);var n=t.superior;this.upInputType.setValueType(n.valueType,n);var i=t.expr;this.exprInputType.setValueType(i.valueType,i)}}},{key:"toXml",value:function(){var t="<sigma-sign>";return t+="<expr>"+this.exprInputType.toXml()+"</expr>",t+="<ivalue>"+this.downInputType.toXml()+"</ivalue>",t+="<superior>"+this.upInputType.toXml()+"</superior>",t+="</sigma-sign>"}},{key:"getType",value:function(){return"sigma"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(253),o=(i=a)&&i.__esModule?i:{default:i};var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$("<tr></tr>");e.append(n);var i=$('<td rowspan="2" style="background: url('+o.default+') no-repeat;background-size: 100% 100%;line-height: normal;width: 14px">&nbsp;</td>');n.append(i),n.append('<td style="border-top: solid 1px;line-height: normal;height: 1px;font-size: 0"></td>');var r=$("<tr></tr>");e.append(r);var a=$('<td style="line-height: normal"></td>');r.append(a),this.inputType=new urule.InputType(null,null,null,this.rule),a.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"请定义表达式"),this.inputType.getContainer().prop("title","表达式")}},{key:"initData",value:function(t){if(t){var e=t.value;this.inputType.setValueType(e.valueType,e)}}},{key:"toXml",value:function(){var t="<radical-sign>";return t+=""+this.inputType.toXml(),t+="</radical-sign>"}},{key:"getType",value:function(){return"radical"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=s(n(87)),a=s(n(88)),o=s(n(253));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellpadding="0" cellspacing="0" style="vertical-align: middle;margin-top: 2px;display: inline-block"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$('<tr><td style="background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 15px;" rowspan="2"></td></tr>'),i=$('<td style="line-height: normal" rowspan="2"></td>');n.append(i);var s=$("<span></span>");i.append(s),this.powerInputType=new urule.InputType(null,null,null,this.rule),s.append(this.powerInputType.getContainer()),URule.setDomContent(this.powerInputType.label,"请定义指数"),this.powerInputType.getContainer().prop("title","指数"),n.append('<td rowspan="2" style="background: url('+o.default+') no-repeat;background-size: 100% 100%;line-height: normal;width: 14px">&nbsp;</td>'),n.append('<td style="border-top: solid 1px;line-height: normal;height: 1px;font-size: 0"></td>'),n.append('<td style="background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 15px;" rowspan="2"></td>'),e.append(n);var c=$("<tr></tr>");e.append(c);var l=$('<td style="line-height: normal"></td>');c.append(l),this.inputType=new urule.InputType(null,null,null,this.rule),l.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"请定义表达式"),this.inputType.getContainer().prop("title","表达式")}},{key:"initData",value:function(t){if(t){var e=t.value,n=t.power;this.inputType.setValueType(e.valueType,e),this.powerInputType.setValueType(n.valueType,n)}}},{key:"toXml",value:function(){var t="<nradical-sign>";return t+="<power>"+this.powerInputType.toXml()+"</power>",t+="<value>"+this.inputType.toXml()+"</value>",t+="</nradical-sign>"}},{key:"getType",value:function(){return"nradical"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<div style="vertical-align: center;border-left:solid 2px #00BCD4;border-right: solid 2px #00BCD4;display:inline-block" title="绝对值"></div>'),this.inputType=new urule.InputType(null,null,null,this.rule),this.container.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"绝对值")}},{key:"initData",value:function(t){if(t){var e=t.value;this.inputType.setValueType(e.valueType,e)}}},{key:"toXml",value:function(){var t="<absolute-sign>";return t+=this.inputType.toXml(),t+="</absolute-sign>"}},{key:"getType",value:function(){return"absolute"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=(a(n(90)),a(n(250)));a(n(87)),a(n(88));function a(t){return t&&t.__esModule?t:{default:t}}var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<span title="圆周率"><img src="'+r.default+'" style="height: 16px"></span>')}},{key:"initData",value:function(t){}},{key:"toXml",value:function(){return"<pi-sign></pi-sign>"}},{key:"getContainer",value:function(){return this.container}},{key:"getType",value:function(){return"pi"}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=(o(n(252)),o(n(87))),a=o(n(88));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$('<tr><td style="line-height: normal;vertical-align: middle;font-size: 22px;font-weight: bold">ln</td></tr>');e.append(n),n.append('<td style="line-height: normal;background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 11px;"></td>');var i=$('<td style="line-height: normal"></td>');n.append(i);var o=$("<span></span>");i.append(o),n.append('<td style="line-height: normal;background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 11px;"></td>'),this.inputType=new urule.InputType(null,null,null,this.rule),o.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"请定义表达式"),this.inputType.getContainer().prop("title","表达式")}},{key:"initData",value:function(t){if(t){var e=t.value;this.inputType.setValueType(e.valueType,e)}}},{key:"toXml",value:function(){var t="<ln-sign>";return t+=""+this.inputType.toXml(),t+="</ln-sign>"}},{key:"getType",value:function(){return"ln"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=s(n(251)),a=s(n(87)),o=s(n(88));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$('<tr><td style="line-height: normal;background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 11px;" rowspan="2"></td></tr>');e.append(n);var i=$('<td rowspan="2" style="background: url('+r.default+') no-repeat;background-size: 100% 100%;line-height: normal;width: 22px">&nbsp;</td>');n.append(i);var s=$('<td style="line-height: normal"></td>');n.append(s);var c=$("<span></span>");s.append(c),this.inputType=new urule.InputType(null,null,null,this.rule),c.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"请定义表达式"),this.inputType.getContainer().prop("title","表达式"),n.append('<td style="line-height: normal;background: url('+o.default+') no-repeat;background-size: 100% 100%;width: 11px;" rowspan="2"></td>');var l=$("<tr></tr>");e.append(l);var u=$('<td style="line-height: normal"></td>');l.append(u),this.baseInputType=new urule.InputType(null,null,null,this.rule),u.append(this.baseInputType.getContainer()),URule.setDomContent(this.baseInputType.label,"请定义底数"),this.baseInputType.getContainer().prop("title","底数")}},{key:"initData",value:function(t){if(t){var e=t.value;this.inputType.setValueType(e.valueType,e);var n=t.baseValue;this.baseInputType.setValueType(n.valueType,n)}}},{key:"toXml",value:function(){var t="<log-sign>";return t+="<real>"+this.inputType.toXml()+"</real>",t+="<base>"+this.baseInputType.toXml()+"</base>",t+="</log-sign>"}},{key:"getType",value:function(){return"log"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(87)),a=o(n(88));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$("<tr></tr>");e.append(n);var i=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(i),this.nameContainer=$('<span style="font-size: 20px;font-weight: bold"></span>'),i.append(this.nameContainer),n.append('<td style="line-height: normal;background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 11px;"></td>');var o=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(o),this.inputType=new urule.InputType(null,null,null,this.rule),o.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"请定义表达式"),this.inputType.getContainer().prop("title","表达式"),n.append('<td style="line-height: normal;background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 11px;"></td>')}},{key:"setName",value:function(t){this.name=t,this.nameContainer.html(t)}},{key:"initData",value:function(t){if(t){this.setName(t.name);var e=t.value;this.inputType.setValueType(e.valueType,e)}}},{key:"toXml",value:function(){var t='<triangle name="'+this.name+'">';return t+=""+this.inputType.toXml(),t+="</triangle>"}},{key:"getType",value:function(){return"triangle"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(87)),a=o(n(88));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$("<tr></tr>");e.append(n);var i=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(i),this.nameContainer=$('<span style="font-size: 20px;font-weight: bold"></span>'),i.append(this.nameContainer),n.append('<td style="line-height: normal;background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 11px;"></td>');var o=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(o);var s=$("<span></span>");o.append(s),o.append('<span style="font-size: 12pt;font-weight: bold">,</span>');var c=$("<span></span>");o.append(c),this.inputType1=new urule.InputType(null,null,null,this.rule),s.append(this.inputType1.getContainer()),URule.setDomContent(this.inputType1.label,"表达式1"),this.inputType1.getContainer().prop("title","表达式1"),this.inputType2=new urule.InputType(null,null,null,this.rule),c.append(this.inputType2.getContainer()),URule.setDomContent(this.inputType2.label,"表达式2"),this.inputType2.getContainer().prop("title","表达式2"),n.append('<td style="line-height: normal;background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 11px;"></td>')}},{key:"setName",value:function(t){this.name=t,this.nameContainer.html(t)}},{key:"initData",value:function(t){if(t){this.setName(t.name);var e=t.value1,n=t.value2;this.inputType1.setValueType(e.valueType,e),this.inputType2.setValueType(n.valueType,n)}}},{key:"toXml",value:function(){var t='<extremum name="'+this.name+'">';return t+="<value1>"+this.inputType1.toXml()+"</value1>",t+="<value2>"+this.inputType2.toXml()+"</value2>",t+="</extremum>"}},{key:"getType",value:function(){return"extremum"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(297)),a=o(n(298));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$("<tr></tr>");e.append(n);var i=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(i),this.nameContainer=$('<span style="font-size: 20px;font-weight: bold"></span>'),i.append(this.nameContainer),n.append('<td style="line-height: normal;background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 8px;"></td>');var o=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(o);var s=$("<span></span>");o.append(s),this.inputType=new urule.InputType(null,null,null,this.rule),s.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"向上取整表达式"),this.inputType.getContainer().prop("title","向上取整表达式"),n.append('<td style="line-height: normal;background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 8px;"></td>')}},{key:"initData",value:function(t){if(t){var e=t.value;this.inputType.setValueType(e.valueType,e)}}},{key:"toXml",value:function(){var t="<up-round>";return t+=this.inputType.toXml(),t+="</up-round>"}},{key:"getType",value:function(){return"upRound"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHBhdGggaWQ9InN2Z18xIiBkPSJtMTQwLjUsMzEuNDUzMTI1IiBvcGFjaXR5PSIwLjUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9IiNmZmYiLz4NCiA8L2c+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPGcgc3Ryb2tlPSJudWxsIiBpZD0ic3ZnXzEzIj4NCiAgIDxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgaWQ9InN2Z181IiB5Mj0iMS4zNDY3NzgiIHgyPSIwLjkyNjY1OCIgeTE9IjEuMzQ2Nzc4IiB4MT0iOS4wOTc0NTgiIGZpbGwtb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLW9wYWNpdHk9Im51bGwiIHN0cm9rZS13aWR0aD0iMS41IiBmaWxsPSJub25lIi8+DQogICA8bGluZSBzdHJva2U9IiMwMDAiIHN0cm9rZS1saW5lY2FwPSJudWxsIiBzdHJva2UtbGluZWpvaW49Im51bGwiIGlkPSJzdmdfNiIgeTI9IjI0LjU0MDk3NSIgeDI9IjEuNjI2ODU5IiB5MT0iMC42NjMxODkiIHgxPSIxLjYyNjg1OSIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGZpbGw9Im5vbmUiLz4NCiAgPC9nPg0KIDwvZz4NCjwvc3ZnPg=="},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHBhdGggaWQ9InN2Z18xIiBkPSJtMTQwLjUsMzEuNDUzMTI1IiBvcGFjaXR5PSIwLjUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9IiNmZmYiLz4NCiA8L2c+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPGxpbmUgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0ibnVsbCIgc3Ryb2tlLWxpbmVqb2luPSJudWxsIiBpZD0ic3ZnXzUiIHkyPSIxLjM0Njc3OCIgeDI9IjguODAwNjczIiB5MT0iMS4zNDY3NzgiIHgxPSIwLjkwODQ4MiIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGZpbGw9Im5vbmUiLz4NCiAgPGxpbmUgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0ibnVsbCIgc3Ryb2tlLWxpbmVqb2luPSJudWxsIiBpZD0ic3ZnXzYiIHkyPSIyNC41NDA5NzUiIHgyPSI4LjEyNDM0OCIgeTE9IjAuNjYzMTg5IiB4MT0iOC4xMjQzNDgiIGZpbGwtb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLW9wYWNpdHk9Im51bGwiIHN0cm9rZS13aWR0aD0iMS41IiBmaWxsPSJub25lIi8+DQogPC9nPg0KPC9zdmc+"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(300)),a=o(n(301));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(t){this.rule=t,this.container=$('<table border="0" cellspacing="0" cellpadding="0" style="display: inline-block;vertical-align: middle;margin-top: 2px"></table>');var e=$("<tbody></tbody>");this.container.append(e);var n=$("<tr></tr>");e.append(n);var i=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(i),this.nameContainer=$('<span style="font-size: 20px;font-weight: bold"></span>'),i.append(this.nameContainer),n.append('<td style="line-height: normal;background: url('+r.default+') no-repeat;background-size: 100% 100%;width: 8px;"></td>');var o=$('<td style="line-height: normal;vertical-align: middle"></td>');n.append(o);var s=$("<span></span>");o.append(s),this.inputType=new urule.InputType(null,null,null,this.rule),s.append(this.inputType.getContainer()),URule.setDomContent(this.inputType.label,"向下取整表达式"),this.inputType.getContainer().prop("title","向下取整表达式"),n.append('<td style="line-height: normal;background: url('+a.default+') no-repeat;background-size: 100% 100%;width: 8px;"></td>')}},{key:"initData",value:function(t){if(t){var e=t.value;this.inputType.setValueType(e.valueType,e)}}},{key:"toXml",value:function(){var t="<down-round>";return t+=this.inputType.toXml(),t+="</down-round>"}},{key:"getType",value:function(){return"downRound"}},{key:"getContainer",value:function(){return this.container}}]),t}();e.default=s},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHBhdGggaWQ9InN2Z18xIiBkPSJtMTQwLjUsMzEuNDUzMTI1IiBvcGFjaXR5PSIwLjUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9IiNmZmYiLz4NCiA8L2c+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPGcgc3Ryb2tlPSJudWxsIiBpZD0ic3ZnXzEzIj4NCiAgIDxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgaWQ9InN2Z181IiB5Mj0iMjMuNDU0MzAyIiB4Mj0iMC44NDc5MTgiIHkxPSIyMy40NTQzMDIiIHgxPSI5LjAxODcxOCIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGZpbGw9Im5vbmUiLz4NCiAgIDxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgaWQ9InN2Z182IiB5Mj0iMC42MDM5NjgiIHgyPSIxLjU0ODExOSIgeTE9IjI0LjEyNzc1NyIgeDE9IjEuNTQ4MTE5IiBmaWxsLW9wYWNpdHk9Im51bGwiIHN0cm9rZS1vcGFjaXR5PSJudWxsIiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIvPg0KICA8L2c+DQogPC9nPg0KPC9zdmc+"},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHBhdGggaWQ9InN2Z18xIiBkPSJtMTQwLjUsMzEuNDUzMTI1IiBvcGFjaXR5PSIwLjUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9IiNmZmYiLz4NCiA8L2c+DQogPGc+DQogIDx0aXRsZT5iYWNrZ3JvdW5kPC90aXRsZT4NCiAgPGcgc3Ryb2tlPSJudWxsIiBpZD0ic3ZnXzEzIj4NCiAgIDxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgaWQ9InN2Z181IiB5Mj0iMjMuMzc1NTYyIiB4Mj0iOS4yNzMxMTQiIHkxPSIyMy4zNzU1NjIiIHgxPSIwLjY3MjI2MyIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGZpbGw9Im5vbmUiLz4NCiAgIDxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLWxpbmVjYXA9Im51bGwiIHN0cm9rZS1saW5lam9pbj0ibnVsbCIgaWQ9InN2Z182IiB5Mj0iMC41MjUyMjgiIHgyPSI4LjUzNjA2IiB5MT0iMjQuMDQ5MDE3IiB4MT0iOC41MzYwNiIgZmlsbC1vcGFjaXR5PSJudWxsIiBzdHJva2Utb3BhY2l0eT0ibnVsbCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGZpbGw9Im5vbmUiLz4NCiAgPC9nPg0KIDwvZz4NCjwvc3ZnPg=="},,,,,,,,,,,,,,function(t,e,n){"use strict";window._conditionId=0,urule.CellCondition=function(t){this.container=$(t),this.container.css({height:"40px",position:"relative"});var e=new urule.Context(this.container);this.join=new urule.Join(e),this.join.init(null),this.join.initTopJoin(this.container),this.join.setType("and"),this.id=window._conditionId++},urule.CellCondition.prototype.clean=function(){this.join.clean(),window._setDirty()},urule.CellCondition.prototype.getId=function(){return this.id},urule.CellCondition.prototype.renderTo=function(t){t.append(this.container)},urule.CellCondition.prototype.getDisplayContainer=function(){var t=null;return this.join&&(t=this.join.getDisplayContainer()),t||(t=$("<span style='color:gray'>无</span>")),t},urule.CellCondition.prototype.initData=function(t){this.join&&this.join.initData(t)},urule.CellCondition.prototype.toXml=function(){return this.join.toXml()}},function(t,e,n){"use strict";urule.Condition=function(t){this.container=$("<condition></condition>"),t.append(this.container);var e=this;this.operator=new urule.ComparisonOperator(function(){e.inputType=e.operator.getInputType(),e.inputType&&e.container.append(e.inputType.getContainer())}),e.container.append(this.operator.getContainer())},urule.Condition.prototype.initData=function(t){var e=t.op;this.operator.setOperator(e),this.operator.initRightValue(t.value),this.inputType=this.operator.getInputType(),this.inputType&&this.container.append(this.inputType.getContainer())},urule.Condition.prototype.getDisplayContainer=function(){var t=$("<span>"),e=URule.getDomContent(this.operator.getContainer());return t.append($("<span style='color:blue'>"+e+"</span>")),this.inputType&&t.append(this.inputType.getDisplayContainer()),t},urule.Condition.prototype.toXml=function(){var t='<condition op="'+this.operator.getOperator()+'">';return this.inputType&&(t+=this.inputType.toXml()),t+="</condition>"},urule.Condition.prototype.getOperator=function(){return this.operator},urule.Condition.prototype.getInputType=function(){return this.inputType}},function(t,e,n){"use strict";urule.Join=function(t){this.type="and",this.context=t,this.H=30,this.W=60,this.children=[],this.joinContainer=$("<span class='btn btn-default dropdown-toggle'></span>"),this.joinContainer.css({border:"solid gray 1px",padding:"3px",background:"#fff"}),this.joinLabel=$("<span>并且</span>"),this.joinContainer.append(this.joinLabel)},urule.Join.prototype.initData=function(t){var e=[],n=t.conditions,i=t.joints;if(this.setType(t.type),n&&(e=n),i&&(e=e.concat(i)),0!=e.length)for(var r=0;r<e.length;r++){var a=e[r],o=!1;a.type&&(o=!0);var s=this.addItem(o);o?s.getJoin().initData(a):s.getCondition().initData(a)}},urule.Join.prototype.setType=function(t){this.type=t,"or"==t?URule.setDomContent(this.joinLabel,"或者"):URule.setDomContent(this.joinLabel,"并且"),window._setDirty()},urule.Join.prototype.init=function(t){t&&(this.parentConnection=t,this.parent=t.getParentJoin());var e=$('<i class="glyphicon glyphicon-chevron-down rule-join-node"></i>'),n=this;n.menu=new URule.menu.Menu({menuItems:[{label:"并且",onClick:function(){n.setType("and")}},{label:"或者",onClick:function(){n.setType("or")}},{label:"添加条件",onClick:function(){n.addItem(!1)}}]}),this.joinContainer.click(function(t){n.menu.show(t)}),this.joinContainer.append(e)},urule.Join.prototype.clean=function(){for(;this.children.length>0;){var t=this.children[0];this.removeConnection(t)}},urule.Join.prototype.removeConnection=function(t){var e=this.children.indexOf(t);this.children.length>1&&this.resetItemPosition(e+1,!1),t.remove(),this.children.splice(e,1),this.resetContainerSize(),window._setDirty()},urule.Join.prototype.addItem=function(t){window._setDirty();var e=this.getChildrenCount();if(e>0&&this.parent){var n=this.parent.getChildren().indexOf(this.parentConnection);this.parent.resetItemPosition(n+1,!0)}var i=e*this.H,r=parseInt(this.joinContainer.css("left")),a=parseInt(this.joinContainer.css("top")),o=r+this.W/2,s=a+this.H/5,c=o+this.W-25,l=s+i;t&&(l-=5);var u=new urule.Connection(this.context,t,this);return u.drawPath(o,s,c,l),this.children.push(u),this.resetContainerSize(),u},urule.Join.prototype.toXml=function(){for(var t='<joint type="'+this.type+'">',e=0;e<this.children.length;e++){t+=this.children[e].toXml()}return t+="</joint>"},urule.Join.prototype.resetItemPosition=function(t,e){if(-1!=t){for(var n=t;n<this.children.length;n++){var i=this.children[n],r=this.H;e||(r=-this.H),i.setEndY(i.getEndY()+r),0==t&&i.setStartY(i.getStartY()+r),i.update(e)}if(t>0&&this.parent){var a=this.parent.getChildren().indexOf(this.parentConnection);this.parentConnection.getParentJoin().resetItemPosition(a+1,e)}window._setDirty()}},urule.Join.prototype.resetContainerSize=function(){var t=this.context.getCanvas(),e=t.css("height");e=parseInt(e);var n=this.context.getTotalChildrenCount();0==n&&(n=1);var i=n*this.H+10;t.css({height:i+"px"})},urule.Join.prototype.getChildrenCount=function(){for(var t=0,e=0;e<this.children.length;e++){var n=this.children[e].getJoin();if(n){var i=n.getChildrenCount();0==i&&(i=1),t+=i}else t++}return t},urule.Join.prototype.initTopJoin=function(t){this.joinContainer.css({position:"absolute",left:5,top:5}),t.append(this.joinContainer),this.context.setRootJoin(this)},urule.Join.prototype.getDisplayContainer=function(){if(0==this.children.length)return null;for(var t=$("<span>"),e=0;e<this.children.length;e++){var n=this.children[e].getDisplayContainer();n&&(e>0&&("or"==this.type?t.append($("<span style='color:green'>&nbsp或&nbsp</span>")):t.append($("<span style='color:red'>&nbsp并且&nbsp</span>"))),t.append(n))}return t},urule.Join.prototype.getChildren=function(){return this.children},urule.Join.prototype.getContainer=function(){return this.joinContainer}},function(t,e,n){"use strict";urule.Connection=function(t,e,n){this.isJoin=e,this.context=t,this.parentJoin=n},urule.Connection.prototype.drawPath=function(t,e,n,i){this.startX=t,this.endX=n,this.isJoin?(this.startY=e-3,this.endY=i+2):(this.startY=e-3,this.endY=i-3),this.path=this.context.getPaper().path(this.buildPathInfo()),this.path.attr({stroke:"#777"}),this.isJoin?this.initJoin():this.initCondition()},urule.Connection.prototype.toXml=function(){return this.isJoin?this.join.toXml():this.condition.toXml()},urule.Connection.prototype.initJoin=function(){this.join=new urule.Join(this.context),this.join.init(this);var t=this.join.getContainer(),e=this.endX+10+"px",n=this.endY+"px";t.css({position:"absolute",left:e,top:n}),this.context.getCanvas().append(t)},urule.Connection.prototype.getDisplayContainer=function(){return this.join?this.join.getDisplayContainer():this.condition.getDisplayContainer()},urule.Connection.prototype.remove=function(){this.path.remove(),this.join?this.join.getContainer().remove():this.conditionContainer.remove(),window._setDirty()},urule.Connection.prototype.initCondition=function(){this.conditionContainer=$("<div>");var t=this.endX+10+"px",e=this.endY+"px";this.conditionContainer.css({position:"absolute",left:t,top:e}),this.condition=new urule.Condition(this.conditionContainer);var n=$('<i class="glyphicon glyphicon-trash" style="color: #019dff;cursor: pointer;font-size: 9pt;padding-left:5px"></i>'),i=this;n.click(function(){i.parentJoin.removeConnection(i)}),this.conditionContainer.append(n),this.context.getCanvas().append(this.conditionContainer)},urule.Connection.prototype.update=function(t){var e=this.buildPathInfo();this.path.attr("path",e);var n=this.endY+"px";this.conditionContainer?this.conditionContainer.css({top:n}):this.join.getContainer().css({top:n}),this.join&&this.join.resetItemPosition(0,t)},urule.Connection.prototype.getParentJoin=function(){return this.parentJoin},urule.Connection.prototype.getCondition=function(){return this.condition},urule.Connection.prototype.getJoin=function(){return this.join},urule.Connection.prototype.getStartX=function(){return this.startX},urule.Connection.prototype.getStartY=function(){return this.startY},urule.Connection.prototype.getEndX=function(){return this.endX},urule.Connection.prototype.getEndY=function(){return this.endY},urule.Connection.prototype.setStartX=function(t){this.startX=t},urule.Connection.prototype.setStartY=function(t){this.startY=t},urule.Connection.prototype.setEndX=function(t){this.endX=t},urule.Connection.prototype.setEndY=function(t){this.endY=t},urule.Connection.prototype.buildPathInfo=function(){return"M"+(this.startX+10)+","+(this.startY+8)+" C"+(this.startX+10)+","+(this.endY+8)+","+(this.startX+10)+","+(this.endY+8)+","+(this.endX+10)+","+(this.endY+8)}},,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e.cells.push(this),this.row=e,this.col=n,this.td=$('<td style="border:1px solid #b4b2b2;position: relative"></td>');var r=this,a=function(t){window._currentConditionCell=r;var n=$(this),i=n.get(0).clientWidth,a=n.get(0).clientHeight,o=e.scoreCardTable.getHighlightDiv();o.css({width:i+"px",height:a+"px"}),n.prepend(o),o.currentTD=n,n.on("DOMSubtreeModified",function(){var t=n.get(0).clientWidth,e=n.get(0).clientHeight;o.css({width:t+"px",height:e+"px"})})};this.td.click(a),this.td.contextmenu(a),this.init(i)}return i(t,[{key:"init",value:function(t){this.initCell(t)}},{key:"toXml",value:function(){var t='<card-cell type="'+this.type+'" row="'+this.row.getRowNumber()+'" col="'+this.col.getColNumber()+'"';if("attribute"===this.type){if(!this.variable)throw"请先选择属性";if(this.row.scoreCardTable.weightSupport){if(!this.weight)throw"请先定义["+this.variable.label+"]属性的权重值";t+=' weight="'+this.weight+'"'}t+=' var="'+this.variable.name+'"',t+=' var-label="'+this.variable.label+'"',this.variable.keyLabel&&(t+=' key-label="'+this.variable.keyLabel+'" key-name="'+this.variable.keyName+'"'),t+=' datatype="'+this.variable.type+'">'}else if("condition"===this.type){if(t+=">",!this.cellCondition)throw"请配置好条件.";t+=this.cellCondition.toXml()}else if("score"===this.type){if(!this.inputType)throw"请配置好分值";var e=this.inputType.toXml();if(""===e)throw"请配置好分值";t+=">",t+=e}else if("custom"===this.type){if(!this.inputType)throw"请配置好自定义值";var n=this.inputType.toXml();if(""===n)throw"请配置好自定义值";t+=">",t+=n}return t+="</card-cell>"}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scoreCardTable=e}return i(t,[{key:"buildColResizeTrigger",value:function(){return this.resizeTrigger=$('<span class="col-resize-trigger">&nbsp;</span>'),this.resizeTrigger}},{key:"getColNumber",value:function(){switch(this.type){case"attribute":return 1;case"condition":return 2;case"score":return 3}return this.scoreCardTable.customCols.indexOf(this)+4}},{key:"bindColResize",value:function(){var t=!1,e=void 0,n=void 0,i=void 0,r=this;this.resizeTrigger.mousedown(function(r){e=$(this).parent(),t=!0,n=r.pageX,i=e.width(),r.preventDefault()}),$(document).mousemove(function(a){if(t){var o=i+(a.pageX-n);r.width=o,e.width(o),a.preventDefault()}}),$(document).mouseup(function(e){t=!1,window._setDirty()})}}]),t}();e.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(337),o=(i=a)&&i.__esModule?i:{default:i},s=n(26),c=n(4);var l=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i));return r.type="custom",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"initCell",value:function(t){if(this.container=$("<div></div>"),this.inputType=new urule.InputType(null,"无"),this.container.append(this.inputType.getContainer()),t&&t.value){var e=t.value;this.inputType.setValueType(e.valueType,e)}this.td.append(this.container),this.initMenu()}},{key:"initMenu",value:function(){var t=this,e={menuItems:[{label:"清空",icon:"glyphicon glyphicon-trash",onClick:function(){s.MsgBox.confirm("真的要清空当前单元格内容吗？",function(){t.inputType.getContainer().remove(),t.inputType=new urule.InputType(null,"无"),t.container.append(t.inputType.getContainer()),window._setDirty()})}},{label:"复制",icon:"glyphicon glyphicon-copy",onClick:function(){var e=t.inputType.toXml();e&&""!==e?(0,c.copyCellData)("value",e):bootbox.alert("当前没有内容可供复制!")}},{label:"粘贴",icon:"glyphicon glyphicon-paste",onClick:function(){(0,c.pasteCellData)("value",function(e){t.inputType.getContainer().remove(),t.inputType=new urule.InputType(null,"无"),t.container.append(t.inputType.getContainer()),t.inputType.setValueType(e.valueType,e)})}}]},n=new URule.menu.Menu(e);this.td.contextmenu(function(t){n.show(t)})}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scoringType="sum",this.notWeight=n,this.scoreCard=i,this.container=e,this.initScoringSetting(),this.initAssignSetting()}return i(t,[{key:"initData",value:function(t){var e=t.scoringType;e&&(this.scoringSettingSelect.val(e),this.scoringType=e,"custom"===e&&(this.customContainer.show(),this.customScoringBean=t.scoringBean,this.customBeanEditor.val(this.customScoringBean)));var n=t.assignTargetType;n&&(this.assignTargetType=n,"variable"===n?(this.variableTarget.getContainer().show(),this.variableTarget.setValue(t),URule.setDomContent(this.assignTargetContainer,"."),this.assignTargetContainer.css({color:"white"})):"parameter"===n?(this.parameterTarget.getContainer().show(),this.parameterTarget.setValue(t),URule.setDomContent(this.assignTargetContainer,"."),this.assignTargetContainer.css({color:"white"})):(URule.setDomContent(this.assignTargetContainer,"不赋值"),this.assignTargetContainer.css({color:"#999"})))}},{key:"initScoringSetting",value:function(){var t=$('<div style="margin: 5px;">得分计算方式：</div>');this.container.append(t),this.scoringSettingSelect=$('<select class="form-control" style="display: inline-block;width:120px;height:30px;padding: 3px;"></select>'),t.append(this.scoringSettingSelect),this.scoringSettingSelect.append('<option value="sum" selected>求和</option>'),this.notWeight||this.scoringSettingSelect.append('<option value="weightsum">加权求和</option>'),this.scoringSettingSelect.append('<option value="custom">自定义</option>'),this.customContainer=$('<span style="margin: 15px;">自定义计算得分的Bean ID：</span>'),t.append(this.customContainer),this.customContainer.hide(),this.customBeanEditor=$('<input type="text" class="form-control" style="width: 200px;display: inline-block">'),this.customContainer.append(this.customBeanEditor);var e=this;this.customBeanEditor.change(function(){e.customScoringBean=$(this).val()}),this.scoringSettingSelect.change(function(){e.scoringType=$(this).val(),"custom"===e.scoringType?e.customContainer.show():e.customContainer.hide()})}},{key:"initAssignSetting",value:function(){var t=$('<div style="margin: 15px 5px">将得分值赋给：</div>');this.container.append(t),this.assignTargetContainer=generateContainer(),t.append(this.assignTargetContainer),URule.setDomContent(this.assignTargetContainer,"请选择值类型"),this.assignTargetContainer.css({color:"blue"}),this.variableTarget=new urule.VariableValue(null,null,"Out"),this.parameterTarget=new urule.ParameterValue(null,null,"Out"),this.variableTarget.getContainer().hide(),this.parameterTarget.getContainer().hide(),t.append(this.variableTarget.getContainer()),t.append(this.parameterTarget.getContainer());var e=this;e.menu=new URule.menu.Menu({menuItems:[{label:"选择变量",onClick:function(){e.parameterTarget.getContainer().hide(),e.variableTarget.getContainer().show(),e.assignTargetType="variable",URule.setDomContent(e.assignTargetContainer,"."),e.assignTargetContainer.css({color:"white"})}},{label:"选择参数",onClick:function(){e.variableTarget.getContainer().hide(),e.parameterTarget.getContainer().show(),e.assignTargetType="parameter",URule.setDomContent(e.assignTargetContainer,"."),e.assignTargetContainer.css({color:"white"})}},{label:"不赋值",onClick:function(){e.variableTarget.getContainer().hide(),e.parameterTarget.getContainer().hide(),e.assignTargetType="none",URule.setDomContent(e.assignTargetContainer,"不赋值"),e.assignTargetContainer.css({color:"#999"})}}]}),this.assignTargetContainer.click(function(t){e.menu.show(t)})}},{key:"toXml",value:function(){if(!this.scoringType)throw"请选择得分计算方式";if(!this.assignTargetType)throw"请选择得分赋值对象";if("custom"===this.scoringType&&(!this.customScoringBean||this.customScoringBean.length<1))throw"请输入自定义计算得分的Bean ID";if(this.scoreCard&&!this.scoreCard.weightSupport&&"weightsum"===this.scoringType)throw"当前评分卡评分项未开启【权重】选项，故不能使用【加权求和】这种计算评分方式。";var t=' scoring-type="'+this.scoringType+'" assign-target-type="'+this.assignTargetType+'" ';return"variable"===this.assignTargetType?t+=this.variableTarget.toXml():"parameter"===this.assignTargetType&&(t+=this.parameterTarget.toXml()),"custom"===this.scoringType&&(t+=' custom-scoring-bean="'+this.customScoringBean+'"'),t}}]),t}();e.default=r},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=s(n(368)),a=s(n(572)),o=s(n(573));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scoreCardTable=e,this.cells=[]}return i(t,[{key:"newConditionCell",value:function(){var t=null;return this.rowData&&(t=this.scoreCardTable.getCell(this.rowData.rowNumber,2)),this.conditionCell=new a.default(this,this.scoreCardTable.conditionCol,t),this.conditionCell.td}},{key:"newScoreCell",value:function(){var t=null;return this.rowData&&(t=this.scoreCardTable.getCell(this.rowData.rowNumber,3)),this.scoreCell=new o.default(this,this.scoreCardTable.scoreCol,t),this.scoreCell.td}},{key:"initCustomCells",value:function(){var t=!0,e=!1,n=void 0;try{for(var i,a=this.scoreCardTable.customCols[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value,s=null;this.rowData&&(s=this.scoreCardTable.getCell(this.rowData.rowNumber,o.getColNumber()));var c=new r.default(this,o,s);o.customCells.push(c),this.tr.append(c.td)}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}}},{key:"getRowNumber",value:function(){if(this.attributeRow)return this.attributeRow.getRowNumber()+(this.attributeRow.conditionRows.indexOf(this)+1);for(var t=this.scoreCardTable.attributeRows,e=t.indexOf(this),n=0,i=0;i<e;i++){n+=1+t[i].conditionRows.length}return n+2}},{key:"cellsToXml",value:function(){var t="",e=!0,n=!1,i=void 0;try{for(var r,a=this.cells[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){t+=r.value.toXml()}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}if(this.conditionRows){var o=!0,s=!1,c=void 0;try{for(var l,u=this.conditionRows[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){t+=l.value.cellsToXml()}}catch(t){s=!0,c=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw c}}}return t}}]),t}();e.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=h(n(569));n(49),n(580),n(228),n(211),n(204);var r=h(n(5)),a=h(n(10));n(263),n(231),n(213),n(212),n(258),n(315),n(316),n(317),n(318),n(243),n(232),n(233),n(234),n(248),n(214),n(277),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(244),n(245),n(246),n(247),n(264);var o=n(4),s=h(n(206)),c=n(4),l=n(50),u=h(n(582)),f=h(n(259));function h(t){return t&&t.__esModule?t:{default:t}}$(document).ready(function(t){var e=(0,o.getParameter)("file");if(e){var n=$("#toolbarContainer"),h=$('<div class="btn-toolbar" style="border: solid 1px #d0d0d0;padding:5px;margin:3px;border-radius: 5px;background: #fdfdfd"></div>');n.append(h);var d=$('<div class="btn-group btn-group-sm"></div>');h.append(d);var p=$("<button type='button' class='btn btn-default'><i class='glyphicon glyphicon-plus'></i> 添加属性行</button>");d.append(p);var b=$("<button type='button' class='btn btn-default'><i class='glyphicon glyphicon-plus-sign'></i> 添加自定义列</button>");d.append(b);var g=new Date,y=new Date(window._date_);if(g.getDate()<y.getDate()){var m="%u5F53%u524D%u4F7F%u7528%u7684%u662F%u8BD5%u7528%u7248",v=window._core_version;v?(v=(0,l.encrypt)(v))!==window._lis_&&bootbox.alert(unescape(m+"%2C%u8BF7%u91C7%u8D2D%u6B63%u7248%u6388%u6743")):bootbox.alert(unescape(m+"%2C%u8BF7%u91C7%u8D2D%u6B63%u7248%u6388%u6743"))}var A=this,w=$('<div class="btn-group btn-group-sm">\n            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">\n                <i class="rf rf-database" style="font-size: 12px"></i> 库文件配置\n                <span class="caret"></span>\n            </button>\n            <ul class="dropdown-menu" role="menu">\n                <li class="btn-sm">\n                    <a href="###" id="configVarButton"><i class="rf rf-variable" style="font-size: 12px"></i> 变量库</a>\n                </li>\n                <li class="btn-sm">\n                    <a href="###" id="configConstantsButton"><i class="rf rf-constant" style="font-size: 12px"></i> 常量库</a>\n                </li>\n                <li class="btn-sm">\n                    <a href="###" id="configActionButton"><i class="rf rf-action" style="font-size: 12px"></i> 动作库</a>\n                </li>\n                <li class="btn-sm">\n                    <a href="###" id="configParameterButton"><i class="rf rf-parameter" style="font-size: 12px"></i> 参数库</a>\n                </li>\n            </ul>\n    </div>');h.append(w);var M=$('<div class="btn-group btn-group-sm"></div>');h.append(M);var I=$('<button type="button" class="btn btn-default disabled"><i class="rf rf-save" style="font-size: 12px"></i> 保存</button>');M.append(I);var x=$('<button type="button" class="btn btn-default disabled"><i class="rf rf-savenewversion" style="font-size: 12px"></i> 保存新版本</button>');M.append(x);var C=$('<div class="btn-group btn-group-sm"></div>');h.append(C);var E=$('<button type="button" class="btn btn-default"><i class="glyphicon glyphicon-share-alt"></i> 导入Excel</button>');C.append(E);var _=$('<button type="button" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-flash"></i> 快速测试</button>');h.append(_),_.click(function(){N(!1,function(){(new f.default).show()})}),E.click(function(){(new u.default).show()}),$("#configVarButton").click(function(){A.configVarDialog||(A.configVarDialog=new urule.ConfigVariableDialog(A)),A.configVarDialog.open()}),$("#configConstantsButton").click(function(){A.configConstantDialog||(A.configConstantDialog=new urule.ConfigConstantDialog(A)),A.configConstantDialog.open()}),$("#configActionButton").click(function(){A.configActionDialog||(A.configActionDialog=new urule.ConfigActionDialog(A)),A.configActionDialog.open()}),$("#configParameterButton").click(function(){A.configParameterDialog||(A.configParameterDialog=new urule.ConfigParameterDialog(A)),A.configParameterDialog.open()}),window._setDirty=function(){A._dirty||(A._dirty=!0,window._dirty=!0,I.html("<i class='rf rf-save' style=\"font-size: 12px\"></i> *保存"),I.removeClass("disabled"),x.html("<i class='rf rf-savenewversion' style=\"font-size: 12px\"></i> *保存新版本"),x.removeClass("disabled"))},p.click(function(){T.addAttributeRow()}),b.click(function(){T.addCustomCol()});var T=new i.default({container:$("#tableContainer"),headers:[]});I.click(function(){N(!1)}),x.click(function(){N(!0)}),a.default.render(r.default.createElement(s.default,null),document.getElementById("dialogContainer"));var D=window._server+"/common/loadXml",k=(0,o.getParameter)("doImport");k&&k.length>1&&(D+="?doImport=true"),$.ajax({url:D,type:"POST",data:{files:e},success:function(t){var e=t[0];e.quickTestData&&(window.quickTestData=JSON.parse(e.quickTestData)),T.init(e);var n=e.libraries;if(n){for(var i=0;i<n.length;i++){var r=n[i],a=r.type,o=r.path;switch(a){case"Constant":constantLibraries.push(o);break;case"Action":actionLibraries.push(o);break;case"Variable":variableLibraries.push(o);break;case"Parameter":parameterLibraries.push(o)}refreshActionLibraries(),refreshConstantLibraries(),refreshVariableLibraries(),setTimeout(function(){refreshParameterLibraries()},500),refreshFunctionLibraries()}S()}},error:function(t){$(window.document.body).empty(),(0,c.handleError)(t)}})}else alert("未指定文件.");function S(){A._dirty&&(A._dirty=!1,window._dirty=!1,I.html("<i class='rf rf-save' style=\"font-size: 12px\"></i> 保存"),I.addClass("disabled"),x.html("<i class='rf rf-savenewversion' style=\"font-size: 12px\"></i> 保存新版本"),x.addClass("disabled"))}function N(t,n){try{var i=T.toXml();i=encodeURIComponent(i);var r=window._server+"/common/saveFile";t?bootbox.prompt("请输入新版本描述.",function(a){a&&(0,o.ajaxSave)(r,{content:i,file:e,newVersion:t,versionComment:a},function(){S(),n&&n()})}):(0,o.ajaxSave)(r,{content:i,file:e,newVersion:t},function(){S(),n&&n()})}catch(t){bootbox.alert(t.message||t)}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=f(n(570)),a=f(n(575)),o=f(n(576)),s=f(n(369)),c=f(n(577)),l=f(n(578)),u=f(n(579));function f(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=$("<div></div>");e.container.append(n),this.remark=new Remark(n),this.weightSupport=!1;var i=$('<div style="margin: 5px;"></div>');this.weightSupportContainer=$('<span style="padding: 8px;margin-right:5px;border:solid 1px #9E9E9E">权重:</span>'),this.initWeightSupportOptions(),i.append(this.weightSupportContainer);var r=$("<span></span>");e.container.append(i),i.append(r),this.propertyConfig=new o.default(r),this.attributeRows=[],this.customCols=[],this.config=e,this.table=$('<table class="table table-bordered" style="width: auto;max-width: none;font-size: 12px"></table>'),e.container.append(this.table);var a=$('<div style="padding:10px"></div>');e.container.append(a),this.tableAction=new s.default(a,!1,this)}return i(t,[{key:"initWeightSupportOptions",value:function(){var t=$("<span></span>");this.weightSupportContainer.append(t);var e=$('<label class="checkbox-inline" style="padding-left: 8px;"></label>');t.append(e),this.weightSupportOption=$('<input type="radio" name="weightSupport">支持</input>'),e.append(this.weightSupportOption);var n=$('<label class="checkbox-inline" style="padding-left: 8px;"></label>');t.append(n),this.weightNonsupportOption=$('<input type="radio" name="weightSupport">不支持</input>'),n.append(this.weightNonsupportOption);var i=this;this.weightSupportOption.change(function(){if("on"===$(this).val()){var t=!0,e=!1,n=void 0;try{for(var r,a=i.attributeRows[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){r.value.attributeCell.showWeight()}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}i.weightSupport=!0}}),this.weightNonsupportOption.change(function(){if("on"===$(this).val()){var t=!0,e=!1,n=void 0;try{for(var r,a=i.attributeRows[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){r.value.attributeCell.hideWeight()}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}i.weightSupport=!1}})}},{key:"init",value:function(t){this.data=t||{},this.data.weightSupport?(this.weightSupport=!0,this.weightSupportOption.prop("checked",!0)):(this.weightSupport=!1,this.weightNonsupportOption.prop("checked",!0)),this.remark.setData(t.remark),this.propertyConfig.initData(t),this.tableAction.initData(t);var e=$("<thead></thead>");this.table.append(e),this.headerRow=$("<tr></tr>"),e.append(this.headerRow),this.body=$("<tbody></tbody>"),this.table.append(this.body),this.initAttributeCol(t),this.initConditionCol(t),this.initScoreCol(t);var n=t.customCols||[],i=!0,r=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var c=o.value;this.addCustomCol(c)}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}var l=t.rows||[],u=!0,f=!1,h=void 0;try{for(var d,p=l[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var b=d.value;this.addAttributeRow(b)}}catch(t){f=!0,h=t}finally{try{!u&&p.return&&p.return()}finally{if(f)throw h}}}},{key:"getCell",value:function(t,e){if(!this.data)return null;var n=this.data.cells,i=!0,r=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var c=o.value;if(c.row===t&&c.col===e)return c}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}throw"Cell ["+t+","+e+"] not exist."}},{key:"initAttributeCol",value:function(t){var e=t.attributeColWidth||"200",n=t.attributeColName||"属性",i=t.attributeColVariableCategory;this.attributeCol=new c.default(this,n,e,i)}},{key:"initConditionCol",value:function(t){var e=t.conditionColWidth||"220",n=t.conditionColName||"条件";this.conditionCol=new l.default(this,n,e)}},{key:"initScoreCol",value:function(t){var e=t.scoreColWidth||"180",n=t.scoreColName||"分值";this.scoreCol=new u.default(this,n,e)}},{key:"addAttributeRow",value:function(t){var e=new r.default(this,t);this.attributeRows.push(e),this.body.append(e.tr),t&&e.initConditionRows(t),window._setDirty()}},{key:"addCustomCol",value:function(t){if(t){var e=new a.default(this,t.name,t.width);this.customCols.push(e),window._setDirty()}else{var n=this;bootbox.prompt("请输入列名",function(t){if(t&&!(t.length<1)){var e=new a.default(n,t);n.customCols.push(e),window._setDirty()}})}}},{key:"getHighlightDiv",value:function(){if(this.highlightDiv){var t=this.highlightDiv.currentTD;t&&t.off("DOMSubtreeModified")}else this.highlightDiv=$('<div style="border:2px solid rgb(82, 146, 247);position:absolute;left: 0;top: 0;"></div>');return this.highlightDiv}},{key:"toXml",value:function(){if(0===this.attributeRows.length)throw"属性至少要有一行";var t='<?xml version="1.0" encoding="UTF-8"?>';t+='<scorecard weight-support="'+this.weightSupport+'" '+this.propertyConfig.toXml()+this.attributeCol.toXml()+this.conditionCol.toXml()+this.scoreCol.toXml()+this.tableAction.toXml()+">",t+=this.remark.toXml(),window.quickTestData&&(t+="<quick-test-data><![CDATA["+JSON.stringify(window.quickTestData)+"]]></quick-test-data>"),$.each(window.parameterLibraries,function(e,n){t+='<import-parameter-library path="'+n+'"/>'}),$.each(window.variableLibraries,function(e,n){t+='<import-variable-library path="'+n+'"/>'}),$.each(window.constantLibraries,function(e,n){t+='<import-constant-library path="'+n+'"/>'}),$.each(window.actionLibraries,function(e,n){t+='<import-action-library path="'+n+'"/>'});var e=!0,n=!1,i=void 0;try{for(var r,a=this.attributeRows[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var o=r.value;t+=o.cellsToXml()}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}var s=!0,c=!1,l=void 0;try{for(var u,f=this.attributeRows[Symbol.iterator]();!(s=(u=f.next()).done);s=!0){var h=u.value;t+=h.toXml()}}catch(t){c=!0,l=t}finally{try{!s&&f.return&&f.return()}finally{if(c)throw l}}var d=!0,p=!1,b=void 0;try{for(var g,y=this.customCols[Symbol.iterator]();!(d=(g=y.next()).done);d=!0){var m=g.value;t+=m.toXml()}}catch(t){p=!0,b=t}finally{try{!d&&y.return&&y.return()}finally{if(p)throw b}}return t+="</scorecard>"}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=c(n(571)),a=c(n(394)),o=c(n(574)),s=c(n(368));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.rowData=n,i.conditionRows=[],i.tr=$('<tr style="min-height: 25px"></tr>'),i.tr.append(i.newAttributeCell()),i.tr.append(i.newConditionCell()),i.tr.append(i.newScoreCell()),i.initCustomCells(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),i(e,[{key:"addCustomCol",value:function(t){var e=new s.default(this,t);this.tr.append(e.td),t.customCells.push(e);var n=!0,i=!1,r=void 0;try{for(var a,o=this.conditionRows[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){a.value.addCustomCol(t)}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}},{key:"removeCustomCol",value:function(t){for(var e=[],n=0;n<this.cells.length;n++){this.cells[n].col===t&&e.push(n)}var i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var c=o.value;this.cells.splice(c,1)}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}var l=!0,u=!1,f=void 0;try{for(var h,d=this.conditionRows[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){h.value.removeCustomCol(t)}}catch(t){u=!0,f=t}finally{try{!l&&d.return&&d.return()}finally{if(u)throw f}}}},{key:"initConditionRows",value:function(t){if(t){var e=t.conditionRows||[],n=!0,i=!1,r=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;this.addConditionRow(s)}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}}},{key:"newAttributeCell",value:function(){var t=null;return this.rowData&&(t=this.scoreCardTable.getCell(this.rowData.rowNumber,1)),this.attributeCell=new r.default(this,this.scoreCardTable.attributeCol,t),this.attributeCell.td}},{key:"remove",value:function(){var t=this.scoreCardTable.attributeRows.indexOf(this);this.scoreCardTable.attributeRows.splice(t,1);var e=!0,n=!1,i=void 0;try{for(var r,a=this.conditionRows[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){r.value.tr.remove()}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}this.tr.remove()}},{key:"removeConditionRow",value:function(t){var e=this.conditionRows.indexOf(t);this.conditionRows.splice(e,1);var n=this.attributeCell.td.prop("rowspan");n=n?parseInt(n)-1:0,this.attributeCell.td.prop("rowspan",n),t.tr.remove()}},{key:"addConditionRow",value:function(t){var e=new o.default(this.scoreCardTable,this,t),n=this.attributeCell.td.prop("rowspan");n=n?parseInt(n)+1:2,this.attributeCell.td.prop("rowspan",n),this.conditionRows.length>0?this.conditionRows[this.conditionRows.length-1].tr.after(e.tr):this.tr.after(e.tr),this.conditionRows.push(e)}},{key:"toXml",value:function(){var t='<attribute-row row-number="'+this.getRowNumber()+'">',e=!0,n=!1,i=void 0;try{for(var r,a=this.conditionRows[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){t+=r.value.toXml()}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}return t+="</attribute-row>"}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(337),o=(i=a)&&i.__esModule?i:{default:i},s=n(26);n(4);var c=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i));return r.type="attribute",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"initCell",value:function(t){var e=$("<div></div>");if(this.td.append(e),this.propContainer=generateContainer(),t){this.variable={name:t.variableName,label:t.variableLabel,type:t.datatype,keyLabel:t.keyLabel,keyName:t.keyName},this.variableLabel=t.variableLabel,this.variableName=t.variableName,this.keyLabel=t.keyLabel,this.keyName=t.keyName,this.weight=t.weight;var n=this.variableLabel||this.variableName;this.keyLabel&&(n=this.keyLabel+"."+n),URule.setDomContent(this.propContainer,n)}else URule.setDomContent(this.propContainer,"请选择属性");e.append(this.propContainer),this.propContainer.css({color:"green",position:"relative"});var i=this;this.row.scoreCardTable.attributeCol.category&&this.refreshAttributeCellMenus(this.row.scoreCardTable.attributeCol.category.variables),this.weightContainer=$("<div style='margin-top: 5px;color:#999'><label>权重：</label></div>"),this.row.scoreCardTable.weightSupport||this.weightContainer.hide(),this.weightEditor=$('<input type="text" class="form-control" style="width:60px;height: 25px;display: inline-block">'),this.weightContainer.append(this.weightEditor),this.weight&&this.weightEditor.val(this.weight),this.weightEditor.change(function(){i.weight=$(this).val()}),e.append(this.weightContainer),this.initMenu()}},{key:"initMenu",value:function(){var t=this,e={menuItems:[{label:"添加条件行",icon:"glyphicon glyphicon-plus",onClick:function(){t.row.addConditionRow()}},{label:"删除当前属性行",icon:"glyphicon glyphicon-minus",onClick:function(){s.MsgBox.confirm("真的要删除当前属性行吗？",function(){t.row.remove(),window._setDirty()})}}]},n=new URule.menu.Menu(e);this.td.contextmenu(function(t){n.show(t)})}},{key:"showWeight",value:function(){this.weightContainer.show(),this.weight=null,this.weightEditor.val("")}},{key:"hideWeight",value:function(){this.weightContainer.hide(),this.weight=null,this.weightEditor.val("")}},{key:"refreshAttributeCellMenus",value:function(t){var e=[],n=this,i=function(t){var e={keyName:t.keyname,keyLabel:t.keylabel,name:t.name,label:t.label,type:t.datatype};n.variable=e;var i=e.label||e.name;e.keyLabel&&(i=e.keyLabel+"."+i),URule.setDomContent(n.propContainer,i)},r=!0,a=!1,o=void 0;try{for(var s,c=t[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var l=s.value,u={label:l.label,name:l.name,datatype:l.type,onClick:i};e.push(u);var f=n.buildVariableSubMenusByType(l,i);f&&f.length>0&&(u.subMenu={menuItems:f})}}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}this.propContainer.menu?this.propContainer.menu.setConfig({menuItems:e}):(this.propContainer.menu=new URule.menu.Menu({menuItems:e}),this.propContainer.click(function(t){n.propContainer.menu.show(t)}))}},{key:"buildVariableSubMenusByType",value:function(t,e){var n=t.dataType;if("String"==n||"Integer"==n||"Char"==n||"Double"==n||"Long"==n||"Float"==n||"BigDecimal"==n||"Boolean"==n||"Date"==n||"List"==n||"Set"==n||"Map"==n||"Enum"==n||"Object"==n)return null;var i=window._uruleEditorVariableLibraries||[],r=[],a=!0,o=!1,s=void 0;try{for(var c,l=i[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var u=c.value,f=!1,h=!0,d=!1,p=void 0;try{for(var b,g=u[Symbol.iterator]();!(h=(b=g.next()).done);h=!0){var y=b.value;if(y.name===n){var m=y.variables||[],v=!0,A=!1,w=void 0;try{for(var M,I=m[Symbol.iterator]();!(v=(M=I.next()).done);v=!0){var x=M.value;r.push({keyname:t.name,keylabel:t.label,name:x.name,label:x.label,datatype:x.type,onClick:e})}}catch(t){A=!0,w=t}finally{try{!v&&I.return&&I.return()}finally{if(A)throw w}}f=!0;break}}}catch(t){d=!0,p=t}finally{try{!h&&g.return&&g.return()}finally{if(d)throw p}}if(f)break}}catch(t){o=!0,s=t}finally{try{!a&&l.return&&l.return()}finally{if(o)throw s}}return r}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(26),o=n(337),s=(i=o)&&i.__esModule?i:{default:i},c=n(4);var l=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i));return r.type="condition",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.default),r(e,[{key:"initCell",value:function(t){var e=$("<div></div>");this.td.append(e),this.conditionContainer=$('<span><span style="color:#999">无</span></span>'),e.append(this.conditionContainer),t&&(this.cellCondition=new urule.CellCondition("<div/>"),this.cellCondition.initData(t.joint),this.conditionContainer.empty(),this.conditionContainer.append(this.cellCondition.getDisplayContainer())),this.initMenu()}},{key:"initMenu",value:function(){var t=this,e={menuItems:[{label:"配置条件",icon:"glyphicon glyphicon-cog",onClick:function(){var e=$("<div/>");t.cellCondition||(t.cellCondition=new urule.CellCondition("<div/>")),t.cellCondition.renderTo(e),a.MsgBox.showDialog("配置条件",e,[],[{name:"hide.bs.modal",callback:function(){t.conditionContainer.empty(),t.conditionContainer.append(t.cellCondition.getDisplayContainer())}}],!0)}},{label:"复制",icon:"glyphicon glyphicon-copy",onClick:function(){var e=null;t.cellCondition&&(e=t.cellCondition.toXml()),e&&""!==e?(0,c.copyCellData)("condition",e):bootbox.alert("当前没有内容可供复制!")}},{label:"粘贴",icon:"glyphicon glyphicon-paste",onClick:function(e){(0,c.pasteCellData)("condition",function(e){t.cellCondition&&t.cellCondition.clean(),t.cellCondition=new urule.CellCondition("<div/>"),t.cellCondition.initData(e),t.conditionContainer.empty(),t.conditionContainer.append(t.cellCondition.getDisplayContainer())})}}]};this.row.rowType&&"condition"===this.row.rowType&&e.menuItems.push({label:"删除当前行",icon:"glyphicon glyphicon-trash",onClick:function(){bootbox.confirm("真的要删除？",function(e){e&&t.row.remove()})}});var n=new URule.menu.Menu(e);this.td.contextmenu(function(t){n.show(t)})}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(337),o=(i=a)&&i.__esModule?i:{default:i},s=n(26),c=n(4);var l=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i));return r.type="score",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"initCell",value:function(t){if(this.container=$('<div style="position: relative;"></div>'),this.inputType=new urule.InputType(null,"无"),this.container.append(this.inputType.getContainer()),t&&t.value){var e=t.value;this.inputType.setValueType(e.valueType,e)}this.td.append(this.container),this.initMenu()}},{key:"initMenu",value:function(){var t=this,e={menuItems:[{label:"清空",icon:"glyphicon glyphicon-trash",onClick:function(){s.MsgBox.confirm("真的要清空当前单元格内容吗？",function(){t.inputType.getContainer().remove(),t.inputType=new urule.InputType(null,"无"),t.container.append(t.inputType.getContainer()),window._setDirty()})}},{label:"复制",icon:"glyphicon glyphicon-copy",onClick:function(){var e=t.inputType.toXml();e&&""!==e?(0,c.copyCellData)("value",e):bootbox.alert("当前没有内容可供复制!")}},{label:"粘贴",icon:"glyphicon glyphicon-paste",onClick:function(){(0,c.pasteCellData)("value",function(e){t.inputType.getContainer().remove(),t.inputType=new urule.InputType(null,"无"),t.container.append(t.inputType.getContainer()),t.inputType.setValueType(e.valueType,e)})}}]},n=new URule.menu.Menu(e);this.td.contextmenu(function(t){n.show(t)})}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=o(n(394)),a=o(n(368));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.attributeRow=n,r.rowData=i,r.rowType="condition",r.tr=$('<tr style="min-height: 25px"></tr>'),r.tr.append(r.newConditionCell()),r.tr.append(r.newScoreCell()),r.initCustomCells(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.default),i(e,[{key:"addCustomCol",value:function(t){var e=new a.default(this,t);t.customCells.push(e),this.tr.append(e.td)}},{key:"removeCustomCol",value:function(t){for(var e=[],n=0;n<this.cells.length;n++){this.cells[n].col===t&&e.push(n)}var i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var c=o.value;this.cells.splice(c,1)}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}}},{key:"remove",value:function(){this.attributeRow.removeConditionRow(this)}},{key:"toXml",value:function(){var t='<condition-row row-number="'+this.getRowNumber()+'">';return t+="</condition-row>"}}]),e}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(338),o=(i=a)&&i.__esModule?i:{default:i};var s=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.customCells=[],r.name=n,r.width=i||160,r.type="custom",r.init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"init",value:function(){var t=this;this.td=$('<td style="width:'+this.width+'px;background: #dbfd60;border:1px solid #607D8B;padding-right: 0px">'+this.name+"</td>");var e=$("<span style='color: #999;margin-left: 4px;cursor: pointer'><i class='glyphicon glyphicon-remove'></i></span>");this.td.append(e),e.click(function(){bootbox.confirm("真的要删除当前列？",function(e){e&&t.remove()})}),this.td.append(this.buildColResizeTrigger());var n=!0,i=!1,r=void 0;try{for(var a,o=this.scoreCardTable.attributeRows[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){a.value.addCustomCol(this)}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}this.scoreCardTable.headerRow.append(this.td),this.bindColResize()}},{key:"remove",value:function(){var t=!0,e=!1,n=void 0;try{for(var i,r=this.scoreCardTable.attributeRows[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){i.value.removeCustomCol(this)}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}var a=this.scoreCardTable.customCols.indexOf(this);this.scoreCardTable.customCols.splice(a,1);var o=!0,s=!1,c=void 0;try{for(var l,u=this.customCells[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){l.value.td.remove()}}catch(t){s=!0,c=t}finally{try{!o&&u.return&&u.return()}finally{if(s)throw c}}this.td.remove(),window._setDirty()}},{key:"toXml",value:function(){return'<custom-col col-number="'+this.getColNumber()+'" name="'+this.name+'" width="'+this.width+'"/>'}}]),e}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e,this.properties=[],this.init()}return i(t,[{key:"init",value:function(){var t=this;this.namePropertyContainer=$("<span>名称：</span>"),this.namePropertyContainer.css({padding:"10px"}),this.container.append(this.namePropertyContainer),this.nameEditor=$("<input type='text' class='form-control' style='display: inline-block;width:160px;height:28px'>"),this.namePropertyContainer.append(this.nameEditor),this.nameEditor.change(function(){t.name=$(this).val(),window._setDirty()}),this.propertyContainer=$("<span>"),this.propertyContainer.css({padding:"10px"});var e=$("<button type='button' class='rule-add-property btn btn-link'>添加属性</button>");this.container.append(e),this.container.append(this.propertyContainer);var n=function(e){var n=null,i=!0,r=!1,a=void 0;try{for(var o,s=t.properties[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){if(o.value.name===e.name){n="当前属性已经添加";break}}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}if(n)bootbox.alert(n);else{var c=new urule.RuleProperty(t,e.name,e.defaultValue,e.editorType);t.addProperty(c)}};t.menu=new URule.menu.Menu({menuItems:[{label:"优先级",name:"salience",defaultValue:"10",editorType:1,onClick:n},{label:"生效日期",name:"effective-date",defaultValue:"",editorType:2,onClick:n},{label:"失效日期",name:"expires-date",defaultValue:"",editorType:2,onClick:n},{label:"是否启用",name:"enabled",defaultValue:!0,editorType:3,onClick:n},{label:"允许调试信息输出",name:"debug",defaultValue:!0,editorType:3,onClick:n}]}),e.click(function(e){t.menu.show(e)})}},{key:"initData",value:function(t){this.name=t.name,this.nameEditor.val(t.name);var e=t.salience;e&&this.addProperty(new urule.RuleProperty(this,"salience",e,1));var n=t.loop;null!=n&&this.addProperty(new urule.RuleProperty(this,"loop",n,3));var i=t.debug;null!=i&&this.addProperty(new urule.RuleProperty(this,"debug",i,3));var r=t.effectiveDate;r&&this.addProperty(new urule.RuleProperty(this,"effective-date",r,2));var a=t.expiresDate;a&&this.addProperty(new urule.RuleProperty(this,"expires-date",a,2));var o=t.enabled;null!=o&&this.addProperty(new urule.RuleProperty(this,"enabled",o,3))}},{key:"addProperty",value:function(t){this.propertyContainer.append(t.getContainer()),this.properties.push(t),window._setDirty()}},{key:"toXml",value:function(){if(!this.name||this.name.length<1)throw"评分卡名称不能为空";for(var t=' name="'+this.name+'"',e=0;e<this.properties.length;e++){t+=" "+this.properties[e].toXml()}return t}}]),t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(338),o=(i=a)&&i.__esModule?i:{default:i};var s=function(t){function e(t,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return a.name=n,a.width=i,a.variableCategory=r,a.type="attribute",a.parameters=null,a.variableCategories=[],a.init(),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"init",value:function(){this.td=$('<td class="dropdown" style="width: '+this.width+'px;padding-right: 0;background: #3c763d;color: #ffffff;border:1px solid #607D8B"></td>');var t=$('<span style="cursor: pointer" class="dropdown-toggle" data-toggle="dropdown"></span>');this.objectContainer=$("<span></span>"),this.variableCategory?URule.setDomContent(this.objectContainer,this.name+" ["+this.variableCategory+"]"):URule.setDomContent(this.objectContainer,this.name),t.append(this.objectContainer),t.append(' <span class="caret"></span>'),this.td.append(t),this.td.append(this.buildColResizeTrigger()),this.scoreCardTable.headerRow.append(this.td),this.initMenu([]),window._VariableValueArray.push(this),window._ParameterValueArray.push(this),this.bindColResize()}},{key:"initMenu",value:function(t,e){var n=this;if(t){e?t.length>0&&(this.parameters=t[0]):t.length>0&&(this.variableCategories=t[0]),t=[],e?(t.push({name:"参数",variables:this.parameters}),this.variableCategories&&(t=t.concat(this.variableCategories)),t=[t]):(this.parameters&&t.push({name:"参数",variables:this.parameters}),t=[t=t.concat(this.variableCategories)]);var i=this;this.menuDef?this.menuDef.empty():(this.menuDef=$('<ul class="dropdown-menu" role="menu"></ul>'),this.td.append(this.menuDef),$(".dropdown-toggle").dropdown());var r=!0,a=!1,o=void 0;try{for(var s,c=t[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var l=s.value,u=function(t){if(!n.category&&n.variableCategory&&t.name===n.variableCategory){n.category=t;var e=t.variables,r=!0,a=!1,o=void 0;try{for(var s,c=i.scoreCardTable.attributeRows[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var l=s.value;if(l.attributeCell.variableLabel){var u=!0,f=!1,h=void 0;try{for(var d,p=e[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var b=d.value;if(b.label===l.attributeCell.variableLabel&&b.name===l.attributeCell.variableName){l.attributeCell.variable=b;break}}}catch(t){f=!0,h=t}finally{try{!u&&p.return&&p.return()}finally{if(f)throw h}}l.attributeCell.refreshAttributeCellMenus(e)}}}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}}var g=$('<li><a href="###">'+t.name+"</a></li>");"参数"===t.name&&(g=$('<li><a href="###"><strong>'+t.name+"</strong></a></li>")),n.menuDef.append(g),g.click(function(){i.category=t,URule.setDomContent(i.objectContainer,i.name+" ["+t.name+"]");var e=!0,n=!1,r=void 0;try{for(var a,o=i.scoreCardTable.attributeRows[Symbol.iterator]();!(e=(a=o.next()).done);e=!0){var s=a.value;s.attributeCell.refreshAttributeCellMenus(t.variables),s.attributeCell.variable=null,URule.setDomContent(s.attributeCell.propContainer,"请选择属性")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}})},f=!0,h=!1,d=void 0;try{for(var p,b=l[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){u(p.value)}}catch(t){h=!0,d=t}finally{try{!f&&b.return&&b.return()}finally{if(h)throw d}}}}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}}}},{key:"toXml",value:function(){if(!this.category)throw"请先定义属性对象";return' attr-col-width="'+this.width+'" attr-col-name="'+this.name+'" attr-col-category="'+this.category.name+'"'}}]),e}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(338),o=(i=a)&&i.__esModule?i:{default:i};var s=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.name=n,r.width=i,r.type="condition",r.init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"init",value:function(){this.td=$('<td style="width: '+this.width+'px;padding-right: 0;background: #607D8B;color: #ffffff;border:1px solid #607D8B">'+this.name+"</td>"),this.td.append(this.buildColResizeTrigger()),this.scoreCardTable.headerRow.append(this.td),this.bindColResize()}},{key:"toXml",value:function(){return' condition-col-width="'+this.width+'" condition-col-name="'+this.name+'"'}}]),e}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(338),o=(i=a)&&i.__esModule?i:{default:i};var s=function(t){function e(t,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.name=n,r.width=i,r.type="score",r.init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"init",value:function(){this.td=$('<td style="width: '+this.width+'px;padding-right: 0;background: #fded02;border:1px solid #607D8B"></td>'),this.td.append(this.buildColResizeTrigger());var t=$('<span style="cursor: pointer">'+this.name+"</span>");this.td.append(t),this.scoreCardTable.headerRow.append(this.td),this.bindColResize()}},{key:"toXml",value:function(){return' score-col-width="'+this.width+'" score-col-name="'+this.name+'"'}}]),e}();e.default=s},function(t,e,n){var i=n(581);"string"==typeof i&&(i=[[t.i,i,""]]);n(18)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(17)(!1)).push([t.i,".col-resize-trigger{\r\n    cursor: col-resize;\r\n    width: 2px;\r\n    float: right;\r\n}\r\n.attribute-operation{\r\n    vertical-align: middle;\r\n    font-size: 12pt;\r\n    margin-left: 3px;\r\n}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(4);var a=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callback=n,this.dialog=$('<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 10000">\n            <div class="modal-dialog">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n                            &times;\n                        </button>\n                        <h4 class="modal-title">\n                            导入Excel\n                        </h4>\n                    </div>\n                    <div class="modal-body"></div>\n                    <div class="modal-footer">\n                    </div>\n                </div>\n            </div>\n        </div>');var i=this.dialog.find(".modal-body"),r=this.dialog.find(".modal-footer");this.initBody(i,r,n)}return i(t,[{key:"initBody",value:function(t,e,n){var i=$('<div><a href="http://www.bstek.com/resources/doc/8ping-fen-qia.html" target="_blank">导入Excel教程</a></div>');t.append(i);var a=window._server+"/scorecardeditor/importExcel?project="+encodeURI(window._project),o=$('<form enctype="multipart/form-data" style="height: 70px;" method="post" target="frame_for_import" action="'+a+'"></form>');t.append(o);var s=$('<div class="form-group"><label>请选择要导入的Excel文件：</label></div>');o.append(s);var c=$('<input type="file" name="excel_file" style="display: inline-block">');s.append(c);var l=$('<input type="submit" value="上传" class="btn btn-default" style="float: right">');o.append(l);var u=$('<iframe name="frame_for_import" style="width: 0;height: 0;border: 0px"></iframe>');t.append(u),u.load(function(){var t=$(this).contents().find("body").text();if(t&&!(t.length<5)){var e=JSON.parse(t);if(e.fail)bootbox.alert("Excel导入失败：<span style='color: #d30e00;'>"+e.msg+"</span>");else{var n=(0,r.getParameter)("file"),i=window._server+"/scorecardeditor?file="+n+"&doImport=true";window.open(i,"_self")}}})}},{key:"show",value:function(t,e){this.dialog.modal("show")}}]),t}();e.default=a}]);